Hi
actualy this not a reply but i am presenting another problem
i tried
configuration>
<system.web>
<customErrors mode="On" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
and is working fine for many erors but some unhandled errors are coming out. the actual problem is on certain errors the Redirect is not working (i tried Response.Redirect in Application_Error tht also not working on certain Exception especialy on object refrence not assigned or null)
if any body know the solution pls help
Quote:
quote:Originally posted by dad62896
On page 128, we are instructed to create an error. When I view the web page, I get an error but not the nice informative error page that is shown in the book on page 129. My error page listed below is very generic. Is there something I need to do in order to get the informative error page to appear instead?
Thanks
Earl
Server Error in '/begaspnet' Application.
--------------------------------------------------------------------------------
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
|