Configuring ASP.NET (Windows)

ASP.NET is a flexible set of tools and web development technologies that allows you to employ a number of applications based on ASP.NET framework. Plesk supports 2.0 and 4.x versions of the ASP.NET framework, as well as ASP.NET Core 1.0 and allows configuring most of its settings. Most ASP.NET configuration settings that commonly need to be customized in order for ASP.NET applications to function in a desirable way can be edited through Plesk.

To configure the server-wide ASP.NET settings:

  1. Go to Tools & Settings > ASP.NET Settings (in the Applications group). The settings for different versions of ASP.NET are located under the corresponding tabs.


  2. Set up the strings that determine database connection data for ASP.NET applications which use databases. This option is available only for ASP.NET 2.0.x.

    When you open the ASP.NET configuration page for the first time, sample connection parameters with common constructions are displayed. You can delete them and specify your own strings.

  3. Set up custom error messages that will be returned by ASP.NET applications in the Custom Error Settings field:
  4. Configure compilation settings in the Compilation and Debugging field:
  5. Configure encoding settings for ASP.NET applications in the Globalization Settings section:
  6. Set a code access security trust level for ASP.NET applications in the Code Access Security field.

    CAS trust level is a set of restrictions applied to an app. For example, the Low level restricts app’s network capabilities (like sending mail) while the Full trust level removes any restrictions.

  7. Set client session parameters in the Session Settings field:
  8. Click OK to apply all changes.

Note: Plesk supports separate configurations for different versions of the .NET framework.

Note: If you want to use ASP.NET Core 1.0 web applications, select the .NET Core Runtime and the ASP.NET Core components when installing Plesk. After that, you can upload your ASP.NET Core 1.0 application to your web site and use it. In this case, it is recommended to switch off the ASP.NET support for your domain (go to Websites & Domains > Hosting Settings and deselect the Microsoft ASP.NET support option) to save the server resources.