If your website on a .NET-based Windows Web Hosting instance experiences installation failures or access errors, you can enable detailed ASP error messages to quickly identify the root cause. This topic demonstrates the process by using a Standard Edition of Exclusive Web Hosting as an example.
Scenarios
-
Scenario: After you upload your website files to a Windows Web Hosting instance by using an FTP client, you may encounter installation or access failures due to issues with the deployment environment or permissions. The system often provides generic error messages that are not detailed enough for troubleshooting, or exposes raw application errors to end-users, creating a poor experience. For example:
-
The browser displays a generic message, such as
500 - internal server error, without providing specific information to locate the error. -
The browser displays a message like:
An error occurred on the server when processing the URL. Please contact the system administrator. <p/> If you are the system administrator please click <a href="http://go.microsoft.com/fwlink/?LinkID=82731">here</a> to find out more about this error.
-
-
Solution: Windows-based web hosting provides a feature to display detailed ASP error messages. Enabling this feature provides the information needed to diagnose failures, debug your code, and quickly resolve errors.
Procedure
- Log on to the Cloud Web Hosting management page.
- Find the Cloud Web Hosting instance that you want to manage and click Manage in the Actions column.
-
In the left-side navigation pane, choose .
-
On the Script Error Message Settings page, select the Send Detailed ASP Error Messages to Client checkbox, and then click Save Settings.
-
In the dialog box, click OK.
After you enable this feature, the page displays detailed error information when you revisit the URL that caused the error. These details help you quickly fix the issue.
For example, the page will show the specific ASP error code (such as ASP 0126), an error description (such as include file not found), and the path and line number of the file causing the error.