SkyNetPublisher
SkyNetPublisher puts your ASP.NET Core project on your IIS server with one click. It publishes, uploads and updates the site for you, keeps your server settings safe, and tells you clearly what happened.
What SkyNetPublisher does
Updating a site by hand takes many steps: publish, zip, copy to the server, unzip, stop the app pool, copy the files, start the app pool, and check the site. One missed step or one overwritten settings file can break the site.
SkyNetPublisher does all of these steps in the right order. You choose the project and the site once. After that, every update is one click on Deploy.
Before you start
Your PC
- Windows 10 or 11. The Microsoft Edge WebView2 Runtime is already part of Windows.
- The .NET SDK that matches your project. It comes with Visual Studio.
- Access to the server on TCP port 5986.
Your server
- Windows Server 2016 or later with IIS and the ASP.NET Core Hosting Bundle.
- The IIS site (or application) and its app pool. If they do not exist yet, SkyNetPublisher can create them (see Creating a new site).
- An administrator account.
- The setup script has been run once (see the next section).
Your project
- An ASP.NET Core web app, .NET 6 or later, that builds without errors.
Setting up the server (once)
SkyNetPublisher talks to the server through Windows Remote Management over HTTPS (WinRM, port 5986). The script Setup-WinRM-HTTPS.ps1 turns this on. You run it once per server.
- Copy
Setup-WinRM-HTTPS.ps1to the server. You find it in theServerfolder next to the app. - On the server, open Windows PowerShell as Administrator.
- Run the script with your server's address and, best, your PC's public IP:
Set-ExecutionPolicy -Scope Process Bypass .\Setup-WinRM-HTTPS.ps1 -HostName 203.0.113.10 -AllowFrom 198.51.100.25
| Option | Meaning |
|---|---|
-HostName | The IP address or name your PC uses to reach the server. |
-AllowFrom | Your PC's public IP. Only this address may connect. Leave it out to allow any address (not recommended). |
The script shows its progress and ends like this:
1/4 Enabling PowerShell remoting... 2/4 Finding or creating the certificate... 3/4 Creating the HTTPS listener on port 5986... 4/4 Opening the firewall for TCP 5986... Done. Listener : https://203.0.113.10:5986/wsman Firewall : TCP 5986 from 198.51.100.25 Certificate: CN=203.0.113.10 (expires 2036-11-23) Nothing to install on your PC. SkyNetPublisher saves this certificate on the first connection.
- Open TCP port 5986 in the outer firewall too: the Azure network security group, or your data center's firewall. Allow only your PC's IP.
Starting the app
Start SkyNetPublisher.exe. The first time, the Requirements page opens. It lists what this PC and the server need, the same as in Before you start.
When everything is ready, turn off Show this page when the app starts at the bottom of the page. The app then starts on Local project. You can open Requirements at any time from the bottom of the left menu.
Finding your way around
The left menu shows the three steps of a deploy, in order. Click a step to open it, or use the Next and Back buttons at the bottom of each page.
| Menu | What you do there |
|---|---|
| 1 Local project | Choose a site profile and the project on this PC. |
| 2 Server | Enter the server login and the IIS site. Test the connection. Save the profile. |
| 3 Publish | Check what stays on the server, then run a Dry run or Deploy. Watch the progress and the log. |
| Requirements | What this PC and the server need. |
A step shows a green circle when its settings are complete. The name of the open profile is always shown at the top right.
When the window is narrow, the left menu shows only the step numbers. Point at a number to see its name.
Site profiles
A profile holds everything about one site: the project, the server, the IIS site and what to keep. Make one profile per site. Profiles are saved on this PC only, encrypted for your Windows user.
| To | Do this |
|---|---|
| Open a profile | Choose it in Load profile. Changes to the open profile are kept before the new one opens. |
| Make a new profile | Click New. The server, port, user and upload folder are copied from the open profile, so a second site on the same server is quick. Enter the password, then fill in the rest. |
| Rename a profile | Change Profile name. Each profile needs a different name. |
| Save | Click Save profile on the Server page. Profiles are also saved when you run a test, a dry run or a deploy, and when you close the app. |
| Delete a profile | Click Delete and confirm. This removes the profile from this PC only. Nothing changes on the server. |
Step 1 · Local project
| Field | What to enter |
|---|---|
| Project folder | The folder that holds your project's .csproj file. Click Browse to pick it. If the folder has more than one .csproj, choose the .csproj file itself. |
| Publish profile | Optional. A Visual Studio publish profile (.pubxml). Browse opens the project's Properties\PublishProfiles folder. Leave it empty to publish in Release mode. |
SkyNetPublisher builds the project on this PC with the .NET SDK. If the project does not build, nothing is sent to the server.
Step 2 · Server
Connection
| Field | What to enter |
|---|---|
| Server (IP or name) | The address you used for -HostName in the setup script, for example 203.0.113.10. No https:// and no path. |
| Port | 5986. |
| Admin user | An administrator account on the server, for example Administrator. |
| Password | The account's password. After saving, the field shows Saved - type to change. Type only when you want to change it. The eye button shows what you are typing. |
Below the password you see the state of the server certificate. There is nothing to set there.
IIS site on the server
These paths are on the server, not on this PC.
| Field | What to enter |
|---|---|
| Site / application | The name as IIS shows it. A site: example.com. An application inside a site: Default Web Site/MySite. |
| IIS app pool | The app pool the site runs in. In IIS Manager, see Application Pools. |
| Site folder | The site's physical folder, for example D:\Sites\MySite. It must be a full path. A drive root or a Windows system folder is not allowed. |
| Upload folder | A work folder on the server, for example C:\temp. Packages and the last backup are kept here. It must be outside the site folder. |
| Health check URL | Optional. A page of the site, for example https://example.com/. After a deploy, the app opens it and expects an answer in the 200-399 range. We recommend setting it. |
If a value is missing or wrong, the app opens the right page, marks the field in red and tells you what to fix.
Testing the connection
Click Test connection on the Server page. Do this for every new profile, and whenever something changed on the server. The test changes nothing.
The test connects to the server and checks:
- that IIS is installed;
- that the app pool exists, and its state;
- that the site or application exists and uses this app pool;
- that the site's folder in IIS is the same as Site folder;
- that the site folder exists;
- that the upload folder exists or can be made.
| Mark | Meaning |
|---|---|
| ✓ | OK. |
| ! | Works, but check it. For example, the folder in IIS is different from the profile. |
| ✕ | Must be fixed before you deploy. |
If the site or application does not exist yet, the test says so and offers Create on server. See Creating a new site.
If the app cannot connect at all, it lists the usual causes: the address, port, user or password; port 5986 closed in a firewall; or the setup script not run on the server.
Creating a new site
For a new site, you do not need to open IIS Manager. Fill in the Server page as usual, then click Test connection. When the site or application is missing, the test shows The site does not exist yet and a Create on server button.
Click Create on server. A window shows exactly what will be created. Nothing changes on the server until you click Create.
What is created
| Item | When | How |
|---|---|---|
| App pool | If it does not exist | Named as in IIS app pool, set to No Managed Code, which is right for ASP.NET Core. |
| Site | If Site / application has no /, for example shop.example.com | A new IIS site with an http binding on port 80 for that host name. |
| Application | If Site / application has a /, for example Default Web Site/MyShop | A new application under that existing site. |
| Site folder | If it does not exist | Created, with a logs folder inside. |
| Access | Always | The app pool may read the site folder and write to its logs folder. |
Items that already exist are shown as existing and are not changed. After creating, the app runs the test again, so you can see that everything is green. Then run your first Deploy.
When Create is not possible
The window shows a problem in red and the Create button stays off when, for example:
- the host name is already used on port 80 by another site;
- the site folder already belongs to another site or application;
- an application is asked for under a site that does not exist;
- the site name cannot be a host name (for example, it has spaces).
Correct the settings on the Server page and test again.
The server certificate
The connection to the server is encrypted with the server's certificate. SkyNetPublisher checks this certificate by itself. There are no settings for it.
- First connection: the app saves the certificate's fingerprint (SHA-256) in the profile. The Server page then shows Server certificate saved.
- Every connection after that: the app compares the certificate with the saved one before it sends the password. If it is the same, the work goes on.
- Certificate from a trusted issuer (for example win-acme / Let's Encrypt) that matches the server name: accepted and saved automatically, also after a renewal.
- Different certificate: the app stops. See Certificate has changed.
Step 3 · Publish
At the top you see what will happen: which project goes to which server and which site. Check it, then choose:
| Button | What it does |
|---|---|
| Dry run | Publishes and uploads, then lists the files that would change. Nothing on the site changes. |
| Deploy | Publishes and updates the site. |
Keep on server
Some files on the server must never be replaced by the project's copy, for example the server's connection strings or uploaded pictures. Everything in this list is left alone: it is not packed, not copied over and not included in the backup.
| Switch | Keeps |
|---|---|
| appConfig | The appConfig folder with the server's settings. |
| web.config | The server's IIS settings file. |
| Other folders and files | Your own list, separated by ;. Paths inside the site, for example images\uploads;logs;temp. |
appConfig and web.config are on by default. If you turn one off, a warning appears, and the confirm window shows it again.
Dry run
A dry run is the safe way to see what a deploy would do. It publishes the project, uploads it and compares it with the site. It lists every file that is new or different. Nothing is copied, and the app pool keeps running.
The log shows up to 500 file names. The full list is in the log file.
Deploy
Click Deploy. A confirm window shows the project, server, site folder, app pool and what is kept. Click Deploy again to start.
SkyNetPublisher then runs these steps:
| # | Step | What happens |
|---|---|---|
| 1 | Publish the project | Builds the project on this PC in Release mode. |
| 2 | Pack files | Makes one zip package, without the items you keep on the server. |
| 3 | Upload package | Checks the server certificate, connects, and uploads the package to the upload folder. The size is checked after upload. |
| 4 | Unpack on the server | Unzips the package in the upload folder. |
| 5 | Back up the current site | Copies the site, without the kept items, to a backup folder. |
| 6 | Stop the app pool | Stops the pool and waits until the site's worker process has ended, so no file is locked. |
| 7 | Copy new files | Copies all files of the package into the site folder. Kept items are not touched. |
| 8 | Start the app pool | Starts the pool and waits until it runs. |
| 9 | Check the site answers | Only with a Health check URL. Tries for up to 60 seconds. |
The site is offline only during steps 6 to 8, usually a few seconds. After a successful deploy, the package and work files are removed from the server, and only the newest backup is kept.
Progress and log
While a job runs, the progress card shows:
- the step, for example Step 3 of 9 - Upload package;
- details, for example 8.1 MB of 18.4 MB, 2.1 MB/s or Copying 120 of 214 files;
- the progress bar and the time so far;
- all steps as small labels: green when done, blue for the current one, red if it failed.
Cancel works until the backup is done. Up to then, the site has not changed. After that, the site is being updated and the job always runs to the end.
The Log at the bottom shows every action as it happens: green for done, amber for warnings, red for errors. Open log folder opens the folder with one log file per job. Clear empties the window only; the log files stay.
While a job runs, the settings are locked. If you try to close the app during the update of the site, it asks you to wait.
If a deploy fails
When a step fails, the app shows Failed at the step, the state the site is in now, and numbered steps for what to do.
| Failed at | Site state | What to do |
|---|---|---|
| Publish | Not changed | Fix the build errors shown in red. Build the project in Visual Studio to see them. Deploy again. |
| Pack files | Not changed | Check free disk space on this PC and that no publish file is open. Try again. |
| Connect / Upload | Not changed | Click Test connection and fix what it reports. Check free space in the upload folder. |
| Unpack | Not changed | Check free space and permissions in the upload folder. |
| Back up | Not changed | Check free space in the upload folder and that the admin user can read the site folder. |
| Stop the app pool | Files not changed. The pool may be stopped. | Check the pool in IIS Manager. Click Start app pool, then deploy again. |
| Copy new files | Down. Partly updated, pool stopped. | Fix the cause (a locked file, a full disk, no permission) and deploy again. Or go back to the previous version. |
| Start the app pool | Down. New files, pool stopped. | Click Start app pool. If it fails again, check the server's Event Viewer and the stdout log. |
| Check the site answers | New version running, but not answering correctly. | Open the URL in a browser. Check the stdout log, web.config and the Hosting Bundle. |
Starting the app pool
When a deploy stops while the app pool is stopped, a Start app pool button appears in the result. It connects to the server, starts the pool, and runs the health check if you set one.
If the pool does not start, the problem is usually in the application itself. On the server:
- Open Event Viewer → Windows Logs → Application and look for errors from IIS or ASP.NET Core.
- Look at the stdout log in the site folder's
logsfolder, if it is turned on in web.config.
Certificate has changed
If the server shows a different certificate than the one saved in the profile, the app stops before sending the password. Nothing on the server changes.
- You changed it yourself (a new certificate, a renewal, or the setup script on a new server): click Trust new certificate, confirm, and run again.
- You did not change it: do not continue. Someone may be pretending to be your server. Check the server and the network first.
The result shows the new certificate's name, end date and fingerprint, so you can compare it with the certificate on the server.
Going back to the previous version
Before every deploy, the site is backed up on the server. Only the newest backup is kept:
<upload folder>\SkyNetPublisher\<profile>\backup_<date>_<time>
The path is shown in the result of every deploy and in the log. To go back:
- On the server, copy everything in the backup folder into the site folder and replace the files.
- In SkyNetPublisher, click Start app pool, or recycle the app pool in IIS Manager.
Files and folders
On this PC
| Folder or file | Holds |
|---|---|
%AppData%\SkyNetPublisher\SkyNetPublisher.dat | All profiles and passwords, encrypted for your Windows user. |
%AppData%\SkyNetPublisher\logs | One log file per job: <profile>_<job>_<date>_<time>.log. |
%TEMP%\SkyNetPublisher | The publish output and package while a job runs. Removed at the end. |
%LocalAppData%\SkyNetPublisher\WebView2 | Files of the app's window. Safe to delete when the app is closed. |
On the server
C:\temp upload folder └─ SkyNetPublisher └─ GroupBlog one folder per profile ├─ package_20261123_221004.zip during a job ├─ pkg_20261123_221004 during a job └─ backup_20261123_221004 newest backup, kept
While a backup is being written, its folder is called partial_…. It is renamed to backup_… only when complete, so an unfinished backup is never mistaken for a good one.
Keeping things safe
- Passwords are saved encrypted with Windows. Only your Windows account on this PC can read them. Copying the settings file to another PC or user does not work.
- The password is sent only to the server, over the encrypted connection, and only after the certificate check. It is never written to a log.
- The connection uses HTTPS on port 5986. The setup script turns off unencrypted connections and basic sign-in.
- Port 5986 should be open only for your PC's IP, in Windows Firewall and in the cloud or data center firewall.
- SkyNetPublisher does not need Web Deploy.
- The app's window shows only its own pages and cannot open web sites.
If something does not work
| You see | What to do |
|---|---|
| WebView2 Runtime is not installed | Install the Evergreen WebView2 Runtime from Microsoft, then start the app again. |
| .NET SDK was not found | Install the .NET SDK, or Visual Studio, on this PC. |
| Cannot reach … / No answer within 20 seconds | Check the address and port. Check that port 5986 is open in every firewall for your current IP. Check that the server is on. |
| Access is denied | Use an administrator account and check the password. Run the setup script if it was not run. |
| App pool … was not found | Check the pool name in IIS Manager, under Application Pools. For a new site, use Create on server. |
| Site/application … was not found in IIS | Use the name as IIS shows it: example.com, or Site name/Application. For a new site, use Create on server. |
| Site folder not found on the server | Check Site folder. It is a path on the server. |
| Robocopy failed | A file was locked, the disk is full, or the admin user has no permission. The log shows the file. |
| Site did not answer | Open the health check URL in a browser to see the error. |
For help, keep the log file of the job (Open log folder). It shows every step and message, without passwords.
Questions
Can I use one server for many sites?
Yes. Make one profile per site. Click New on a profile of that server: the login is copied.
Can it set up a brand-new site?
Yes, with http. See Creating a new site. Add https with win-acme afterwards.
Does the site go offline during a deploy?
Only while the files are copied, between stopping and starting the app pool. For most sites this is a few seconds.
Is the database changed?
No. SkyNetPublisher copies the site's files only. Run database update scripts yourself before or after the deploy.
Why are deleted files still on the server?
A deploy never deletes files on the server, so uploads and logs are never lost. Remove old files on the server by hand when needed.
Can I deploy two sites at the same time?
No. One job runs at a time. Start the next one when the first has finished.
Where is the old Rollback button?
There is none. A failed deploy tells you exactly what to do, and the newest backup lets you go back by hand.
SkyNetPublisher User Manual · Version 1.1 · © HC Kim · The SkyLite · theskylite.com