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

Cannot add duplicate collection entry of type add with unique key attribute name set to Telerik_Web_UI_WebResource_axd

1 Answer 206 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
fred williams
Top achievements
Rank 1
fred williams asked on 16 Sep 2011, 10:51 PM
I get the error:
Cannot add duplicate collection entry of type add with unique key attribute name set to Telerik_Web_UI_WebResource_axd

While trying to deploy my application. It works fine when I run it on my machine though:

The box I'm trying to deploy it on is iis7.5/Windows Server 2008 if that helps. Here are the offending lines of code from my web.config. if I comment them out the app runs, but the asyncupload control isn't visible.


<system.web>
    <httpHandlers>
      <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
    </httpHandlers>
  </system.web>
  <system.webServer>
    <defaultDocument>
      <files>
        <clear/>
        <add value="pcHome.aspx" />
      </files>
    </defaultDocument>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <!--<add name="ChartImage_axd" verb="*" preCondition="integratedMode" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" />
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />-->
    </handlers>
  </system.webServer>

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 20 Sep 2011, 03:13 PM
Hello Fred Williams,

How are you deploying the application? Could you please take a look at the deployed application web.config. Is there a Telerik.WebResource.axd handler registered in there?

Regards,
Genady Sergeev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
AsyncUpload
Asked by
fred williams
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or