Mitchel's Forums

Subject: Web Config Settings
Prev Next
You are not authorized to post a reply.

AuthorMessages
Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5490

08/19/2007 10:21 PM  

Below will outline the configuration settings needed to successfully implement the error handler in your application.  If you have ANY questions regarding these values please let me know via this forum!

Configuration Section

The following configuration section declaration must exist somewhere between beginning and end configuration sections, typically this will be right after the opening tag. If you are using DotNetNuke or another application that already has sections defined ONLY copy the Section tag portion of this code.

Click here to view the needed code

Custom Config Section

The following is the configuration section that is needed for the application. For information on the individual elements please view the post entitled "Application Settings". This section will go after the ConfigSections portion of your web.config

Click here to view the needed code

HttpModule Section

The final portion to add is the HttpModule definition for the error handler module, this will allow it to be called automatically! If you have other HttpModules defined, feel free to just add this one as an extra item. This section may exist ANYWHERE inside your system.web section.

Click here to view the needed code

Sample Config

Below you will find a demonstration web.config file for DotNetNuke 4.5.4 that includes the needed items for the Global Error Handler with comments noting the additions.

Click here to view the DNN 4.5.4 Demonstration Config File


-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

This site is hosted by 3Essentials

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
Mike GraceUser is Offline
New Poster
New Poster
Posts:1

08/20/2007 11:52 AM  

Hi Mitchell,

You have made a mistake in the config text. Surely the closing tags should be etc..

Also, it is not particularly clear where in the web config this section goes. I followed your instructions and I am getting errors in the web.config.

Regards

Mike

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5490

08/20/2007 12:47 PM  

Mike,

You are 100% correct and I greatly apologize, it appears that my HTML was modified after I posted and it removed the end tags.

Give me about an hour and I'll update the above post and also provide a bit more detail as to WHERE these items go.


-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

This site is hosted by 3Essentials

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5490

08/20/2007 1:46 PM  
Mike,

I have updated the post above, and also included a demo web.config file.

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

This site is hosted by 3Essentials

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
Chris BlankenshipUser is Offline
New Poster
New Poster
Posts:2

11/26/2007 3:37 AM  

I attempted to configure my site according to your web.config example file and this is what I ended up with:

 Parser Error Message: The entry 'ErrorHandlerModule' has already been added.

Source Error:

Line 93:       
Line 94:         Line 95:         Line 96:         
Line 97:       

 

Here is what I have in the httpmodules section... Any suggestions?

   
     
     
     
     
     
     
     
     
     
     
     
     
       
       
       
     

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5490

11/26/2007 8:25 AM  
Chris,

The forum stripped out the code for some reason. Can you e-mail me the information at mitchel.sellers@gmail.com?

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

This site is hosted by 3Essentials

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
Ben MillerUser is Offline
New Poster
New Poster
Posts:1

06/05/2008 3:52 PM  

Typically when this happens, it is because you already have it as a reference in the site (under Add Reference).  When you deploy it and have it in the directory of bin, then you need the entry in the web.config file.

You are not authorized to post a reply.



ActiveForums 3.7