How can I see the Trace messages?

For Page Level Tracing specify the Page Directive as <%@ Page Trace=’true’ %> You can view the page on which trace is enabled to true to see the details. For Application Level Tracing modify web.config as <configuration> <system.web> <trace enabled=’true’ requestLimit=’10’ pageOutput=’false’ traceMode=’SortByTime’ localOnly=’true’ /> </system.web> </configuration> You can view the Trace at http://<server>/<webApplicationName>/trace.axd

How to redirect the user to the friendly error-handler page when an Application error occurs

Modify web.config as <customErrors mode=’On’ defaultRedirect=’errorpage.aspx’ /> The <customErrors> configuration section supports an inner <error> tag that associates HTTP status codes with custom error pages. For example: <customErrors mode=’On’ defaultRedirect=’genericerror.htm’> <error statusCode=’404′ redirect=’pagenotfound.aspx’/> <error statusCode=’403′ redirect=’noaccess.aspx’/> </customErrors> For more details refer <customErrors> Element

Why do I get the error message ‘A potentially dangerous Request.Form value was detected from the client ‘

Sounds like you are running version 1.1 of ASP.NET / .NET Framework, which added a new security feature called request validation. Request validation looks at every request and determines if it could be a possible CSS (Cross Site Scripting) attack. By default Request Validation is on for every page. If you wish to allow users to post arbitrary HTML to you site you need to turn off request validation: <%@Page ValidateRequest=’false’ %> For more information check out : Protecting Against Script Exploits in a Web Application on MSDN

Why do I get the error message ‘Unable to start debugging on the web server…’ when I debug?

There is a possibility that there is no web.config file for the project or there is no Execute permission for the project. If you already have a web.config file, double check it’s well-formedness. If the web.config file is missing, add one to the directory that contains the ASP.NET application. You can copy one from the numerous samples applications available with the framework installation. Make sure that the following section reads like this: <compilation defaultLanguage=’c#’ debug=’true’ /> On the other hand, if your project already has a Web.config file, and the above section is set as specified, follow these steps to set the Execute Permissions property for the project folder: Start Internet Services Manager, and then click the project that you are trying to debug. Right-click the project, and then click Properties. Click the Directory tab. If None is selected in the Execute Permissions list, click Scripts only, and then click Apply