This is a migrated thread and some comments may be shown as answers.

[Solved] Configuration Error The entry 'xxxx' has already been added.

1 Answer 447 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chris Marisic
Top achievements
Rank 1
Chris Marisic asked on 11 Oct 2009, 05:05 PM
I'm running a server with IIS 6.0 that now has multiple web applications that are Telerik Web Applications. I just tried to do my initial deployment of the second application and started getting this error from the web.config

 Configuration Error 
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 
 
Parser Error Message: The entry 'RadUploadModule' has already been added. 
 
Source Error: 
 
Line 203:    <httpModules> 
Line 204:      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
Line 205:      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" /> 
Line 206:      <add name="RadCompression" type="Telerik.Web.UI.RadCompression, Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" /> 
Line 207:    </httpModules> 


I have each site running in it's own individual app pool. How else am I supposed to separate these sites to not get this error? Currently I can get around it by just commenting out the httpModules from the one config since I'm not taking advantage of it in both sites but I would like this fixed before I want to use the functionality in both.

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 14 Oct 2009, 08:20 AM
Hi Chris Marisic,

This error can be caused by a virtual directory under an asp application that already has the http module defined.
Just before the http module, add a <remove> tag  which will remove the inherited setting

<remove name="RadUploadModule" />
<add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />

Let us know if this helps.

Best wishes,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Chris Marisic
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or