Setting Up ASP.NET Framework Configuration

Plesk allows to specify the Microsoft ASP.NET configuration settings that most commonly need to be customized in order for ASP.NET applications to function in a desirable way. ASP.NET configuration settings for a domain initially defaults to those defined on the server administration level by server administrator.

To customize the .NET framework configuration for your domain, access the ASP.NET configuration page by clicking the  ASP.NET icon located in the Hosting field set on the domain administration page.

On this page you can specify the following parameters:

  1. Connection String manager - meant for determining string variables that contain database connection information. If there are any ASP.NET applications supposed on the domain that intend to use databases, the connection strings should be specified. Note that editing this settings is available only for 2.0 framework version and above. When you open the ASP.NET configuration page for the first time, you see the server default connection string or, in cases when connection strings were not defined on the server administration level, sample connection parameters showing common constructions. You can then delete them and specify your own.

  2. Custom Error Settings - designed for defining the information about custom error messages for an ASP.NET application:

    To set the custom error messages mode, select one from the corresponding drop-down list:

    • On means that custom error messages are always enabled.

    • Off means that custom error messages are disabled and detailed errors are to be shown.

    • RemoteOnly means that custom error messages are displayed only to remote clients and ASP.NET errors are shown to the local host.

    Unless the custom error messages are fully disabled (the Off mode chosen), the following parameters for custom error documents can be specified:

    • The Status Code parameter defines the HTTP status code resulting in redirection to the error page.

    • The Redirect URL parameter defines the web address of the error page presenting information about the error to the client..

    To add an entry to the custom errors list, enter the necessary data to the text input fields corresponding to the Status Code and the Redirect URL columns and click the  icon to the rigt of the fields. If the parameters for an error are not specified, users see a generic error.

    To remove an entry from the custom errors list, click the  icon to the right of the entry you wish to remove.

  3. Compilation and Debugging - intended for configuring most common compilation settings:

    • Page default language - determines the programming language to be used as default in dynamic compilation files.

    • Enable debugging - defines whether to compile retail binaries (deselected checkbox) or debug binaries (selected). Set this checkbox selected if you wish the source code fragment containing an error to be shown in a diagnostic page message. Please note that when running applications in debug mode, a memory and/or performance overhead occurs. It is recommended to use debugging only during an application testing, and to disable it before deploying the application into production scenario.

  4. Globalization Settings - meant for configuring encoding settings for an ASP.NET application:

    • Request encoding defines the adopted encoding of all incoming requests.

    • Response encoding defines the adopted encoding of all responses.

    • File encoding defines the encoding to be used by default for parsing of .aspx, . asmx, and .asax files.

    • Culture defines the culture to be used by default for processing incoming Web requests.

    • UI Culture defines the culture to be used by default when processing searches for a locale-dependent resource.

  5. Code Access Security - intended for setting a security zone that ASP.NET applications execution is assigned to, defining what server resources the applications will have access to. To assign a trust level to the applications, choose the appropriate one from the corresponding combo box.

    Note that 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

  6. Script Library Settings - allows defining the path to files containing auxiliary scripts, specifically scripts implementing objects for validating input data. If the validation Web controls are used on your Web site, you should specify the path to a script library so that a web server could find them. To do this, type the path beginning with the domain root directory preceded by the forward slash in the Path to MS script library input field. Leave the Install checkbox selected if you want the files to be automatically installed in the specified location. If the files already exist there, they will be rewritten.

  7. Session Settings - meant for specifying the following clients sessions parameters:

    • Authentication mode defines the default authentication mode for an application. Note that Windows authentication mode should be selected if any form of IIS authentication is used.

    • Session timeout specifies the time that a session idleness can last for before the session is abandoned.

After you are finished with setting the .NET framework configuration, click OK to submit the data you defined.

Changes you make on the domain's ASP.NET configuration page override the server's default. In cases you decide to retrieve the default settings, click the Reset button located at the bottom of the page.

  • 62 Users Found This Useful
Was this answer helpful?

Related Articles

Domain Report and Statistics

To view the domain report, click the Report icon on the Domain administration page. The report...

Customizing DNS Settings

Through Plesk, you can customize DNS settings for each domain created. The Plesk administrator...

Editing Traffic Statistics Retention Settings

To adjust the traffic statistics retention period, follow these steps: Click the ...

Viewing Resource Usage Limits

You can check out the limits on resource usage and domain validity period. To do that:...

Managing Mail

You can use the following e-mail administration functions in Plesk: Create,...

Powered by WHMCompleteSolution