Question

Is the below error looks same as from GenericErrorPage.htm?

Server Error in '/' 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".


<!-- Web.Config Configuration File -->

<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.


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>
Was it helpful?

Solution

This page (some times call the yellow screen of death) gets generated from the ASP.NET Worker process. It is telling you there is an error with your application, but due to the settings in the web.config file, the error has been hidden. The reason it gets hidden is so that general internet users don't get a glimpse of your code. They could potentially use that information to exploit a hole in your application.

To see the real error either follow the instructions you posted or view the page from the machine hosting the site. The error will not be masked when you are viewing it locally.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top