custom error page
Last Post 02/13/2008 5:18 PM by Joseph Craig. 3 Replies.
Author Messages
Roger Goodwin
Nuke Pro
Nuke Pro
Posts:95


--
02/11/2008 4:45 PM
    I have an issue with a website which wont load.l get the following error message.

    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 tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".

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

    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 configuration tag to point to a custom error page URL.

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

    This tells me nothing of the problem but that I should setup this error page.

    How do i do this to find the real issue?

    Thanks

    Roger Goodwin
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    02/11/2008 8:06 PM
    Roger,

    First of all, have you changed the setting in web.config so that you can get more information? That would be my first step. Then see what the error message says, and post if here.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    Roger Goodwin
    Nuke Pro
    Nuke Pro
    Posts:95


    --
    02/13/2008 2:38 PM
    that is the issue i have. I am not sure how to do this.
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    02/13/2008 5:18 PM
    You'll have to get a copy of your web.config file. It is in the root directory of your web site.

    If you have FTP or other access to the directory, just make a copy of web.config or download it to your computer. Then, open it up with a a text editor like Notepad. Find the line in question and change it so that it reads:

    < customerrors mode="Off" >

    (without the spaces, they have been added so it displays in the forum)

    Now, go back to your website's directory and change the name of web.config to web.config.save, and then copy the edited version of web.config into that directory. That should do the trick.

    If you ever want to go back, or if you've somehow jumbled web.config, copy web.config.save to web.config.

    Joe Craig, Patapsco Research Group
    Complete DNN Support


    ---