To configure ASP.NET settings for a virtual directory within a
website:
-
Go to Websites & Domains and find the website’s domain name.
-
Click Virtual Directories.
-
Browse to the required directory and click a link with its name.
-
Click ASP.NET Settings.
-
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.- To add a string, enter the required data into the Name and
Connection Parameters input fields and click
next to them. - To remove a string, click
next to it.
- To add a string, enter the required data into the Name and
-
Set up custom error messages that will be returned by ASP.NET
applications:-
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.
-
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, and click.
-
Status Code defines the HTTP status code resulting in
redirection to the error page. - Redirect URL defines the…
-
Status Code defines the HTTP status code resulting in
-