Our Windows (Plesk) servers have the ASP.NET Core hosting bundles installed (up to .NET 10), so you can publish a modern .NET web app to your hosting without installing anything. This guide shows the simplest reliable way.
Step-by-Step Guide:
-
Check your target framework:
- In your project file, note the TargetFramework (e.g. net8.0). Our servers have the ASP.NET Core runtimes for .NET 8.0, 9.0 and 10.0. Older versions are out of support from Microsoft, so target .NET 8 or newer.
- If you need a runtime we don't have, publish as self-contained for win-x64, which includes the runtime with your app.
-
Publish the app on your computer:
- Visual Studio: right-click the project > Publish > Folder, Configuration Release, Deployment mode Framework-dependent, Target runtime win-x64 (or Portable).
- Command line:
dotnet publish -c Release -o ./publish - The publish folder contains your app's DLLs and a web.config that tells IIS to run the app through the ASP.NET Core Module.
-
Upload the published files:
- Upload the contents of the publish folder into httpdocs by FTP or the File Manager (zip, upload, extract). See How to Upload Website Files in Plesk.
- Leave the .well-known folder in place (used by free SSL).
-
Create a logs folder and set permissions:
- Create a folder named logs in httpdocs and give the application pool user Modify permission on it, and on any folder your app writes to (uploads, App_Data). See How to Change File and Folder Permissions.
-
Set up the database and settings:
- Create your database in Plesk (MSSQL or MariaDB) and put its connection string in appsettings.Production.json or appsettings.json. See Database Connection String Examples.
-
Start the app:
- Recycle the application pool, then open your site. The first request takes a few seconds while the app starts.
Updating the app later:
- IIS locks your app's DLLs while it runs. Upload a file named app_offline.htm to httpdocs first (this stops the app and shows that page to visitors), upload the new files, then delete app_offline.htm.
- Visual Studio Web Deploy: if the Web Deploy Publishing Settings link appears on your domain's dashboard in Plesk, download the file and import it into Visual Studio's Publish dialog. Otherwise publish by FTP.
Troubleshooting:
- HTTP Error 500.30 / 500.31 / 502.5: Turn on stdout logging in web.config to see the startup error. Full guide: Troubleshoot an ASP.NET Core Application.
- HTTP Error 500.19: web.config is invalid or contains a section the server doesn't allow. Compare it with the one created by dotnet publish.
- App restarts or runs out of memory: See Windows Shared Hosting Application Pools and Resource Usage.
- Settings in Plesk for classic ASP.NET: How to Change ASP.NET and .NET Settings in Plesk.
Need help? Open a ticket at https://my.peopleshost.com/submitticket.php and our support team will be glad to assist.