How to Deploy an ASP.NET Application in Plesk
Plesk on Windows hosting supports both ASP.NET Framework and .NET Core/.NET 6+ applications. This guide covers deploying your application through the Plesk control panel.
Prerequisites
- A Windows hosting plan with Plesk
- Your compiled application files
- A configured MSSQL or MySQL database (if your app requires one)
Deploying ASP.NET Framework Applications
Step 1: Upload Your Files
- Log in to Plesk
- Go to Websites & Domains > select your domain
- Click File Manager
- Navigate to the
httpdocsfolder - Upload your application files (
.aspx,.dll,web.config,bin/folder, etc.)
Step 2: Configure the Application
- Go to Websites & Domains > your domain
- Click Hosting & DNS > Hosting Settings
- Under Web Scripting and Statistics:
- Enable ASP.NET support
- Select the correct .NET Framework version (4.x recommended)
- Click OK
Step 3: Set the Application Pool
- Go to ASP.NET Settings or Hosting Settings
- Configure the application pool:
- .NET CLR version — Match your application (v4.0 for .NET 4.x)
- Pipeline mode — Integrated (recommended) or Classic
- Click OK
Step 4: Configure Connection Strings
Update your web.config with the correct database connection:
<connectionStrings>
<add name="DefaultConnection"
connectionString="Server=localhost;Database=YourDB;User Id=YourUser;Password=YourPass"
providerName="System.Data.SqlClient" />
</connectionStrings>Step 5: Test
Visit https://yourdomain.com to verify your application loads correctly.
Deploying .NET Core / .NET 6+ Applications
Step 1: Publish Your Application
On your development machine, publish as self-contained or framework-dependent:
dotnet publish -c Release -o ./publishStep 2: Upload Published Files
- Upload the contents of the
publishfolder tohttpdocsin Plesk - Ensure the
web.configfile generated bydotnet publishis included
Step 3: Configure in Plesk
- Go to Websites & Domains > your domain
- Ensure ASP.NET support is enabled
- The
web.configfromdotnet publishconfigures IIS to proxy requests to the Kestrel server
Step 4: Set Environment Variables
- Go to ASP.NET Settings
- Under Application Settings, add:
- ASPNETCORE_ENVIRONMENT = Production
- Any other environment-specific variables
- Click OK
Common Deployment Steps
Setting Up a Virtual Directory
If your app runs in a subdirectory:
- Go to Websites & Domains
- Click Virtual Directories
- Create a new virtual directory
- Point it to your application folder
- Mark it as an application
Updating Your Application
- Upload new files to overwrite existing ones
- Recycle the application pool (Websites & Domains > App Pool > Recycle)
- Clear browser cache and test
Troubleshooting
500 Internal Server Error
- Check the Application Event Log in Plesk
- Enable detailed errors in
web.config:
<system.webServer>
<httpErrors errorMode="Detailed" />
</system.webServer>- Verify the correct .NET version is selected
Application Does Not Start
- Check if the application pool has stopped — restart it
- Verify all required DLLs are in the
binfolder - Check the Event Viewer for detailed error messages
Connection String Issues
- Verify database credentials
- Check the database exists and the user has access
- Test the connection string separately
Related Articles
Need help? Contact our support team at {{SUPPORT_EMAIL}} or open a ticket at {{SUPPORT_URL}}.