Previous Topic

Next Topic

Book Contents

Configuring ASP.NET

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 both 1.1.x and 2.0.x versions of the .NET framework.

To change the version of .NET framework:

  1. On your home page, click the domain name you need.
  2. Click ASP.NET in the Hosting group.
  3. Click Change Version in the Tools group. If this button is absent, only one version of .NET framework is available. You can see the version number in the Framework Version field.
  4. Select the required version number and click OK.
  5. Click OK to save changes.

Alternatively, on your home page you can click the domain name you need, then click Setup and select the .NET framework version in the Microsoft ASP.NET support drop-down menu.

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 ASP.NET on your domain:

  1. On your home page, click the domain name you need.
  2. Click ASP.NET in the Hosting group.
  3. 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.
  4. Set up custom error messages that will be returned by ASP.NET applications in the Custom Error Settings field:
  5. Configure compilation settings in the Compilation and Debugging field:
  6. Configure encoding settings for ASP.NET applications in the Globalization Settings section:
  7. Set a code access security trust level for ASP.NET applications in the Code Access Security field.

    CAS trust level is a security zone to which applications execution is assigned, defining what server resources the applications will have access to.

    Note. When an assembly is assigned a trust level that is too low, it does not function correctly. For more information on the permissions levels see http://msdn.microsoft.com/library/en-us/dnnetsec/html/THCMCh09.asp?frame=true#c09618429_010.

  8. Enable the usage of the auxiliary scripts in the Script Library Settings field. This option is available only for ASP.NET 1.1.x.
  9. Set client session parameters in the Session Settings field:
  10. Ñlick OK to apply all changes.

Note: Plesk supports separate configurations for different versions of the .NET framework (1.1.x and 2.0.x).

To restore the default ASP.NET configuration:

  1. On your home page, click the domain name you need.
  2. Click ASP.NET in the Hosting group.
  3. Click Set to Default.
  4. Confirm the restoring and click OK.

In order to provide running ASP.NET applications which use different .NET framework version within one domain, Plesk allows setting up the framework version per web directory where the applications are deployed.

To choose the version of .NET framework for a web directory:

  1. On your home page, click the domain name you need.
  2. Click Web Directories in the Hosting group.
  3. Enter the required web directory and click ASP.NET in the Tools group.
  4. Select the required .NET framework version and adjust other settings as necessary.
  5. Click OK.