Runtime Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Beb
    New Member
    • Jan 2008
    • 9

    Runtime Error

    Can anyone explain why I am getting this error message? I uploaded my files onto the server and when I go to the site the default page does not display only the error message. If it helps to know the site was developed in javascript and the default page is .aspx. what do this mean and how can I correct it? Here is what I get.

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

    <configuratio n>
    <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 "defaultRedirec t" attribute of the application's <customErrors > configuration tag to point to a custom error page URL.

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

    <configuratio n>
    <system.web>
    <customErrors mode="RemoteOnl y" defaultRedirect ="mycustompage. htm"/>
    </system.web>
    </configuration>
  • nateraaaa
    Recognized Expert Contributor
    • May 2007
    • 664

    #2
    Does the application build successfully on your local machine? How are you copying the files to the production server? Have you verified that the dll for this application exists on the production server?

    Nathan

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      If you wish to know what the error is, follow the directions they give you and edit the web.config file to have
      <customErrors mode="Off"/>

      So that it will show you more details about the error message.

      Comment

      • balabaster
        Recognized Expert Contributor
        • Mar 2007
        • 798

        #4
        Originally posted by Plater
        If you wish to know what the error is, follow the directions they give you and edit the web.config file to have
        <customErrors mode="Off"/>

        So that it will show you more details about the error message.
        Or fire up Internet Explorer on the server and load the website - it'll give you the detailed error message if you load it up on the server, just not if you load it up on another machine.

        Comment

        • Beb
          New Member
          • Jan 2008
          • 9

          #5
          Originally posted by Plater
          If you wish to know what the error is, follow the directions they give you and edit the web.config file to have
          <customErrors mode="Off"/>

          So that it will show you more details about the error message.
          Seems that was the fix. Thanks all!

          Comment

          • Beb
            New Member
            • Jan 2008
            • 9

            #6
            Originally posted by nateraaaa
            Does the application build successfully on your local machine? How are you copying the files to the production server? Have you verified that the dll for this application exists on the production server?

            Nathan
            That was the fix! Thanks

            Comment

            • Beb
              New Member
              • Jan 2008
              • 9

              #7
              Originally posted by balabaster
              Or fire up Internet Explorer on the server and load the website - it'll give you the detailed error message if you load it up on the server, just not if you load it up on another machine.

              You Guys are the bomb! It works fine now!

              Comment

              Working...