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.
o To add a string, enter the required data into the Name and Connection Parameters input fields and click next to them.
o To remove a string, click next to it.
6. Set up custom error messages that will be returned by ASP.NET applications:
o To set the custom error messages mode, select an appropriate option from the Custom error mode menu:
§ On - custom error messages are enabled.
§ Off - custom error messages are disabled and detailed errors are to be shown.
§ RemoteOnly - custom error messages are displayed only to remote clients, and ASP.NET errors are shown to the local host.
o To add a custom error message (which will be applied unless the Off mode was selected), enter the values in the Status Code and Redirect URL fields.
§ Status Code defines the HTTP status code resulting in redirection to the error page.
§ Redirect URL defines the web address of the error page presenting information about the error to the client.
Due to possible conflicts, you cannot add a custom error message with an error code that already exists, but you can redefine the URL for the existing code.
o To remove a custom error message from the list, click next to it.
7. Configure compilation settings in the Compilation and Debugging field:
o To determine the programming language to be used as default in dynamic compilation files, choose an entry from the Default web page language menu.
o To enable compiling of retail binaries, leave the Switch on debugging checkbox empty.
o To enable compiling of debug binaries, select the Switch on debugging checkbox. In this case, the source code fragments containing error will be shown in a diagnostic message.
Note: When running applications in debug mode, a memory and performance overhead occurs. We recommended that you use debugging when testing an application, and disable it before deploying the application into production scenario.
8. Configure encoding settings for ASP.NET applications in the Globalization Settings section:
o To set an adopted encoding of all incoming requests, enter an encoding value into the Request encoding field (default is utf-8).
o To set an adopted encoding of all responses, enter an encoding value into the Response encoding field (default is utf-8).
o To set an encoding which must be used by default for parsing of .aspx, .asmx, and .asax files, enter an encoding value into the File encoding field (default is Windows-1252).
o To set a culture which must be used by default for processing incoming web requests, select an appropriate item from the Culture list.
o To set a culture which must be used by default when processing searches for a locale-dependent resource, select an appropriate item from the UI Culture list.
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.
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.
o If you need to use additional scripts (specifically, scripts implementing objects for validating input data), provide the settings for .NET framework script library. To do so, enter the path beginning with the domain root directory preceded by the forward slash into the Path to Microsoft script library field, or click the folder icon next to the Path to Microsoft script library field and browse for the required location.
o To initiate installation of files containing the scripts to the specified location, select the Install checkbox. If the files already exist there, they will be rewritten.
11. Set client session parameters in the Session Settings field:
o To set up the default authentication mode for applications, select an appropriate item from the Authentication mode list. Windows authentication mode should be selected if any form of IIS authentication is used.
o To set up the allowed session idle time, enter appropriate number minutes into the Session timeout field.
12. Click OK to apply all changes.