Asp – Runtime error

asp.net

what is the meaning of error,and what do I do for solve this problem ? :

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 tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".

Best Answer

It tells you in the error: edit web.config and change the error mode to Off.

For instance, add the following:

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>

For security reasons you don't want to give out detailed errors externally, so this is usually a better setting:

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="~/Error.aspx"/>
    </system.web>
</configuration>

This will display errors on your development machine or on the server if visited from the server, but redirect external users to a custom error page.

Related Topic