Results 1 to 2 of 2

Thread: newbie - server error

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    784

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

  2. #2
    Hyperactive Member tailz's Avatar
    Join Date
    Jul 2002
    Posts
    306
    I suggest you do what it says!

    Edit your web.config file and add

    VB Code:
    1. <configuration>
    2.   <system.web>
    3.     <customErrors mode="RemoteOnly" />
    4.  
    5.   </system.web>
    6. </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
  •  



Click Here to Expand Forum to Full Width