Configuring ASP.NET for Virtual Directories

To configure ASP.NET settings for a virtual directory within a website:

  1. Go to Websites & Domains and find the website's domain name.
  2. Click Virtual Directories.
  3. Browse to the required directory and click a link with its name.
  4. Click ASP.NET Settings.
  5. Set up the strings that determine database connection data for ASP.NET applications that 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.

  6. Set up custom error messages that will be returned by ASP.NET applications:
  7. Configure compilation settings in the Compilation and Debugging field:
  8. Configure encoding settings for ASP.NET applications in the Globalization Settings section:
  9. 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.

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

  10. If you are using ASP.NET 1.1.x, then you can enable the usage of the additional scripts in the Script Library Settings field. Specifying the script library settings is necessary if the validation web controls are used on your web site.
  11. Set client session parameters in the Session Settings field:
  12. Click OK to apply all changes.