View errors
Last Post 02/20/2010 11:45 AM by Joseph Craig. 3 Replies.
Author Messages
BCRose
Nuke Master
Nuke Master
Posts:131


--
02/19/2010 11:28 AM  
I have been trying to edit my web.config file to show full error messages. I understand I need to add the following code; Do I add it exactly as shown? And hwere do I put it exactly? I keep breaking the site no matter where I place it. Thanks for any suggestions
Joseph Craig
DNN MVP
Posts:11667


--
02/20/2010 8:16 AM  
I  ume that this is the line in the web.config file for custom errors. It should read:

< customErrors mode="Off" / >

You will find "customErrors" and edit the line. You won't need to add anything.

Joe Craig, Patapsco Research Group
Complete DNN Support
BCRose
Nuke Master
Nuke Master
Posts:131


--
02/20/2010 10:40 AM  
Sorry about the message above, I have the code in question in the message but it is not showing up...

I do not have the CustomErrors line in my web.config file....where do I add it? When I add the line the site breaks.


Maybe I don't need this...just thought it would be useful for troubleshooting issues.
Joseph Craig
DNN MVP
Posts:11667


--
02/20/2010 11:45 AM  
It should be in the system.web section of the web.config file.  My web.config file looks like this:

      < codeSubDirectories >
        < add directoryName="TelerikWebUI" />
      < /codeSubDirectories >
    < /compilation >
    < !-- permits errors to be displayed for remote clients -- >
    < customErrors mode="Off" / >
    < !-- Forms or Windows authentication -- >
    < authentication mode="Forms" >
      < forms name=".DOTNETNUKE" protection="All" timeout="60" cookieless="UseCookies" / >
    < /authentication  >


(Notice that I've added spaces after < and b efore > so that text isn't interpreted as tags.  You'll want to remove them in your web.config file.)

Joe Craig, Patapsco Research Group
Complete DNN Support


---