Real people, 24/7(800) 395-7779

How to Change ASP.NET and .NET Settings in Plesk Print

  • 0

Our Windows (Plesk) servers run classic ASP.NET 4.x (.NET Framework) sites and modern ASP.NET Core / .NET sites (hosting bundles up to .NET 10). For most sites the defaults work. This guide shows where to change the ASP.NET version and related settings for a website.

ASP.NET Framework (Web Forms, MVC 5 and other .NET Framework apps):

  1. Open Hosting settings:

    • Log in to Plesk, click Websites & Domains, find your domain and open Hosting & DNS > Hosting.
  2. Set the ASP.NET version:

    • Under the web scripting section, make sure ASP.NET support is ticked and choose the version (4.x for all current .NET Framework apps, including 4.5 to 4.8).
    • Click Save. The application pool restarts.
  3. Optional - ASP.NET Settings page:

    • On the Hosting & DNS tab, click ASP.NET (ASP.NET Settings). Here you can set connection strings, custom error mode, session timeout, and compilation/debugging options without editing web.config by hand.
    • Changes are written to your site's web.config.

ASP.NET Core and .NET 5 to .NET 10 apps:

  • ASP.NET Core apps are run by the ASP.NET Core Module in IIS, which is set up by the web.config that dotnet publish creates. You do not need to pick a version in Plesk; the app uses the runtime it was built for, as long as that runtime is installed on the server.
  • Microsoft recommends that the application pool use "No Managed Code". You do not need to change anything else in Plesk for ASP.NET Core.
  • Full walkthrough: How to Deploy an ASP.NET Core (.NET 6 to .NET 10) Application in Plesk.

Classic ASP:

  • If your site uses .asp pages, tick ASP support in the same Hosting settings section.

Troubleshooting:

  • Error after changing versions: Change it back and recycle the application pool.
  • Need a .NET version that is not installed? Contact us with the exact version your app targets.
  • Seeing "Validation of viewstate MAC failed"? See this article.

Need help? Open a ticket at https://my.peopleshost.com/submitticket.php and our support team will be glad to assist.


Was this answer helpful?

« Back