get runtime errors from CustomError

Last post 05-01-2008 10:47 AM by wannabeASPgeek. 7 replies.

Sort Posts:

  • get runtime errors from CustomError

    04-25-2008, 11:11 AM

    I deploied my 1 page notice sample site onto my host copany it was work ok today I try to deploy my real site which built based on starter kit classify. the application run on my local host fine but with real host I've got : 

    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>

    please can you guy help

    thanks

  • Re: get runtime errors from CustomError

    04-25-2008, 12:20 PM
    Answer
    • Loading...
    • jwalin
    • Joined on 11-10-2006, 10:18 AM
    • Posts 84

    http://jwalin.wordpress.com/2008/03/06/healthmonitoring-send-an-email-when-an-unhandler-error-occured/

    REad this link and you can get the email Or If you have access to Remote Desktop then you can see in the Event Viewer what error is occured

     

     

  • Re: get runtime errors from CustomError

    04-25-2008, 6:36 PM
    Answer
    • Loading...
    • manorfarm
    • Joined on 02-21-2008, 10:45 PM
    • Posts 39

    Not sure where you are coming from - but check your web.config and make sure or add that the <custom error mode = off/> reads like this - Make sure it is placed between the <system.web> tags

     This should then show you a moe specific error

    There is a chance that your connection string is wrong and not pointing to remote sql server but before we can be certain of this you need to post the real error

     

  • Re: get runtime errors from CustomError

    04-25-2008, 11:23 PM
    Answer
    • Loading...
    • darkknight187
    • Joined on 09-14-2006, 12:35 AM
    • Bothell, Washington
    • Posts 550

    Manorfarm is close, you need the tag like this,

    <customErrors mode="Off"/>

    It's case sensitive.

    Be sure to visit www.detelli.com to find and list your Houses for rent

    And please remember to click “Mark as Answer” on the post that helps you.
    This can be beneficial to other community members reading the thread.
  • Re: get runtime errors from CustomError

    04-27-2008, 6:33 AM

    placed     <customErrors mode="Off"/> just like here 

    <configuration xmlns=."...">

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

           <......> with some other tag

           <...../>
     </system.web>
    </configuration>

     and reload to the host

    still get same errors is there thing to do with C# or vb? by the way I am using C#

     thanks again


     

  • Re: get runtime errors from CustomError

    04-27-2008, 10:30 AM
    Answer
    • Loading...
    • ashmetry
    • Joined on 09-26-2007, 7:30 PM
    • Houston, TX
    • Posts 274

    Check your .NET runtime configuration in the control panel of your hosting account..

    Make sure it's set to .NET 2.0 and not .NET 1.1

    -Ash
    Web:   www.love2trade.com
    Blog:   blog.love2trade.com

    Please remember to click "Mark as Answer" on this post if it helped you.
  • Re: get runtime errors from CustomError

    04-27-2008, 10:34 AM
    Answer
    • Loading...
    • darkknight187
    • Joined on 09-14-2006, 12:35 AM
    • Bothell, Washington
    • Posts 550

    With that change to the web.config you will still get an error, but it's more specific as to what is causing the problem.

    Another possibility is your program may have added a tag to the web.config

    Look for this tag, <compilation debug="true"> it's probably a little below the customErrors tag,

    And it's put in automatically, if using Visual Web Developer, when you click the debug button for the first time.

    And change it to true if it's there. These alterations will make your site run slower, so don't forget to put them back when you get it.

    Good Luck

     

    Be sure to visit www.detelli.com to find and list your Houses for rent

    And please remember to click “Mark as Answer” on the post that helps you.
    This can be beneficial to other community members reading the thread.
  • Re: get runtime errors from CustomError

    05-01-2008, 10:47 AM

    Thanks to all of you (darkknight187, ashmetry, manorfarm and jwalin) all the help put together to sort my problems out. What I did was follow all of your in struction one by one (if it not the same) and try reload it. I also find out from the book I have ASP.NET 2.0 pro isbn-13:978-0-7645-7610-2 that before you deploying the site you have to turn the debug mode off by adding : <compilation debug="false" /> in web.config file in the root of my machine use for building the application. Before I deploy this new site I already deploy a try site single page on the web I have to login my host to delete all those file which not going to be used for the real site. Then I used "copy web site" facility to deploy my site again and it out there now woo woo woo yeh yeh yeh !!!!!!

     

    You can see now this site is the first one I ever deploy so I am very please excited and happy please don't lol at me but again thank for all the help my friends!!!! 

Page 1 of 1 (8 items)