SP
SkyNetPublisherUser Manual
Version 1.1

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.

ON THIS PC1PublishRelease build2Packzip, minus kept itemsHTTPS · port 5986 · certificate checkedON THE SERVER3Uploadpackage4Unpackupload folder5Back upcurrent site6Stop poolwait for exit7Copynew files8Start poolwait to run9Checkhealth URLsite offline only here, usually a few secondsCancel works up to here
SimpleThree steps: project, server, publish. Every site is saved as a profile.
SafeappConfig and web.config stay on the server. The current site is backed up before every update.
ClearYou always see the step, the progress and the result. If something fails, it tells you what to do.

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.
YOUR PCSkyNetPublisherProject + .NET SDKEncrypted profilesHTTPS 5986FirewallsWindows + cloud / IDCallow your IP onlyYOUR SERVERWinRM HTTPSsetup script, onceIISsite + app poolUpload folderpackage, backupSite folderyour site files

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.

  1. Copy Setup-WinRM-HTTPS.ps1 to the server. You find it in the Server folder next to the app.
  2. On the server, open Windows PowerShell as Administrator.
  3. 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
OptionMeaning
-HostNameThe IP address or name your PC uses to reach the server.
-AllowFromYour 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.
  1. 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.
If the server already has a certificate for this name (for example from win-acme), the script uses it. Otherwise it makes its own certificate, valid for 10 years. Running the script again keeps the same certificate.
Your PC's public IP can change (for example with a home or office internet line). If the connection suddenly stops working, check that the firewall still allows your current 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.

SkyNetPublisher—□✕
The Requirements page
The Requirements page

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.

MenuWhat you do there
1 Local projectChoose a site profile and the project on this PC.
2 ServerEnter the server login and the IIS site. Test the connection. Save the profile.
3 PublishCheck what stays on the server, then run a Dry run or Deploy. Watch the progress and the log.
RequirementsWhat 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.

SkyNetPublisher—□✕
Local project, with the profile at the top
Local project, with the profile at the top
ToDo this
Open a profileChoose it in Load profile. Changes to the open profile are kept before the new one opens.
Make a new profileClick 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 profileChange Profile name. Each profile needs a different name.
SaveClick 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 profileClick Delete and confirm. This removes the profile from this PC only. Nothing changes on the server.
SkyNetPublisher—□✕
Deleting a profile asks first
Deleting a profile asks first

Step 1 · Local project

FieldWhat to enter
Project folderThe 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 profileOptional. 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

SkyNetPublisher—□✕
The connection settings
The connection settings

Connection

FieldWhat 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.
Port5986.
Admin userAn administrator account on the server, for example Administrator.
PasswordThe 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.

SkyNetPublisher—□✕
The IIS site settings
The IIS site settings

IIS site on the server

These paths are on the server, not on this PC.

FieldWhat to enter
Site / applicationThe name as IIS shows it. A site: example.com. An application inside a site: Default Web Site/MySite.
IIS app poolThe app pool the site runs in. In IIS Manager, see Application Pools.
Site folderThe 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 folderA 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 URLOptional. 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.

SkyNetPublisher—□✕
A field that needs fixing
A field that needs fixing

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.

SkyNetPublisher—□✕
A successful test
A successful test

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.
MarkMeaning
✓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.

SkyNetPublisher—□✕
The test finds a new site and offers Create on server
The test finds a new site and offers Create on server

Click Create on server. A window shows exactly what will be created. Nothing changes on the server until you click Create.

SkyNetPublisher—□✕
Every item, checked before anything is created
Every item, checked before anything is created

What is created

ItemWhenHow
App poolIf it does not existNamed as in IIS app pool, set to No Managed Code, which is right for ASP.NET Core.
SiteIf Site / application has no /, for example shop.example.comA new IIS site with an http binding on port 80 for that host name.
ApplicationIf Site / application has a /, for example Default Web Site/MyShopA new application under that existing site.
Site folderIf it does not existCreated, with a logs folder inside.
AccessAlwaysThe 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.

A new site gets http only. To add https, run win-acme (or your usual certificate tool) on the server after the first deploy. Point your domain's DNS to the server first.

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.

Connectread the certificateSavedbefore?no, first timeSave fingerprintin this profilesameSame certificatematches the saved onedifferentStoppassword not sentSend passwordand continueTrust new certificateonly if you changed 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.
If you change the server or the port in a profile, the saved certificate is cleared. The next connection saves the new one. Make that first connection from a network you trust.

Step 3 · Publish

SkyNetPublisher—□✕
The Publish page
The Publish page

At the top you see what will happen: which project goes to which server and which site. Check it, then choose:

ButtonWhat it does
Dry runPublishes and uploads, then lists the files that would change. Nothing on the site changes.
DeployPublishes 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.

SwitchKeeps
appConfigThe appConfig folder with the server's settings.
web.configThe server's IIS settings file.
Other folders and filesYour 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.

SkyNetPublisher—□✕
A warning when web.config is not kept
A warning when web.config is not kept
Turn off appConfig or web.config only when you really want the project's copy on the server, for example after you changed the IIS settings on purpose.

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.

SkyNetPublisher—□✕
A finished dry run, with the files that would change
A finished dry run, with the files that would change

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—□✕
Confirm before deploying
Confirm before deploying

SkyNetPublisher then runs these steps:

#StepWhat happens
1Publish the projectBuilds the project on this PC in Release mode.
2Pack filesMakes one zip package, without the items you keep on the server.
3Upload packageChecks the server certificate, connects, and uploads the package to the upload folder. The size is checked after upload.
4Unpack on the serverUnzips the package in the upload folder.
5Back up the current siteCopies the site, without the kept items, to a backup folder.
6Stop the app poolStops the pool and waits until the site's worker process has ended, so no file is locked.
7Copy new filesCopies all files of the package into the site folder. Kept items are not touched.
8Start the app poolStarts the pool and waits until it runs.
9Check the site answersOnly 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.

SkyNetPublisher—□✕
A successful deploy
A successful deploy
Files that you deleted from the project are not deleted from the server. This keeps uploads, logs and other server files safe.

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.
SkyNetPublisher—□✕
A deploy in progress
A deploy in progress

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.

SkyNetPublisher—□✕
The log
The log

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.

SkyNetPublisher—□✕
A failed copy: the site is down, with what to do
A failed copy: the site is down, with what to do
Failed atSite stateWhat to do
PublishNot changedFix the build errors shown in red. Build the project in Visual Studio to see them. Deploy again.
Pack filesNot changedCheck free disk space on this PC and that no publish file is open. Try again.
Connect / UploadNot changedClick Test connection and fix what it reports. Check free space in the upload folder.
UnpackNot changedCheck free space and permissions in the upload folder.
Back upNot changedCheck free space in the upload folder and that the admin user can read the site folder.
Stop the app poolFiles not changed. The pool may be stopped.Check the pool in IIS Manager. Click Start app pool, then deploy again.
Copy new filesDown. 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 poolDown. 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 answersNew version running, but not answering correctly.Open the URL in a browser. Check the stdout log, web.config and the Hosting Bundle.
A failed deploy can always be repeated. Deploy copies all files again and starts the app pool, so fixing the cause and clicking Deploy is usually the fastest way back.

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:

  1. Open Event Viewer → Windows Logs → Application and look for errors from IIS or ASP.NET Core.
  2. Look at the stdout log in the site folder's logs folder, 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.

SkyNetPublisher—□✕
The server's certificate has changed
The server's certificate has changed
  • 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:

  1. On the server, copy everything in the backup folder into the site folder and replace the files.
  2. In SkyNetPublisher, click Start app pool, or recycle the app pool in IIS Manager.
The backup does not hold the kept items (appConfig, web.config and your list), because a deploy never changes them.

Files and folders

On this PC

Folder or fileHolds
%AppData%\SkyNetPublisher\SkyNetPublisher.datAll profiles and passwords, encrypted for your Windows user.
%AppData%\SkyNetPublisher\logsOne log file per job: <profile>_<job>_<date>_<time>.log.
%TEMP%\SkyNetPublisherThe publish output and package while a job runs. Removed at the end.
%LocalAppData%\SkyNetPublisher\WebView2Files 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 seeWhat to do
WebView2 Runtime is not installedInstall the Evergreen WebView2 Runtime from Microsoft, then start the app again.
.NET SDK was not foundInstall the .NET SDK, or Visual Studio, on this PC.
Cannot reach … / No answer within 20 secondsCheck 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 deniedUse an administrator account and check the password. Run the setup script if it was not run.
App pool … was not foundCheck the pool name in IIS Manager, under Application Pools. For a new site, use Create on server.
Site/application … was not found in IISUse 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 serverCheck Site folder. It is a path on the server.
Robocopy failedA file was locked, the disk is full, or the admin user has no permission. The log shows the file.
Site did not answerOpen 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