|
-
Dec 2nd, 2004, 03:53 AM
#1
Thread Starter
Fanatic Member
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>
-
Dec 2nd, 2004, 06:28 AM
#2
Hyperactive Member
I suggest you do what it says!
Edit your web.config file and add
VB Code:
<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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|