Skip to main content
All docs
V23.2

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

Error Description

This error occurs if you create a subfolder in an IIS folder structure and one of the parent folders contains another web.config file with registration of the same handler or module. For instance, you deploy your application to the c:\inetpub\wwwroot\myAppFolder folder, but the c:\inetpub\wwwroot folder contains another web project (or just a web.config file) where the ASPxHttpHandlerModule is registered.

Solution

Research the folder structure to find the cause of the issue. As a workaround, remove ASPxHttpHandlerModule before registering it in web.config:

<system.web> 
    <httpModules>
      <add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v23.2, Version=23.2.1.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" name="ASPxHttpHandlerModule" />
    </httpModules> 
</system.web>  
<system.webServer>  
    <modules>
      <add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v23.2, Version=23.2.1.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" name="ASPxHttpHandlerModule" />
    </modules>
</system.webServer>