Thursday, March 29, 2012

newbie - server error

I am very new with asp.net .. I met below error message when running on production server.. please help .. what should I do?

Server Error in '/commform' 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>I suggest you do what it says!

Edit your web.config file and add

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

</system.web>
</configuration>

If the <configuration> and <system.web> tags are already there, dont add them again.

Once you've done this, recompile your project and you will get more information about your error.

Note that the detailed error message will only appear to you if you are viewing the site on the webserver.

0 comments:

Post a Comment