Cannot add duplicate collection entry of type 'add'

Discussion in 'Windows / IIS' started by work2gs, May 17, 2010.

  1. Hi
    I create an empty sample business appication SL4 and publish it
    with these modifications

    mode release

    in package/publish web
    IIS web site = myWeb.com/mytest

    in Publish
    Web deploy
    service url : https://eweb702.discountasp.net:8172/MsDeploy.axd
    site application : myWeb.com/mytest
    Mark as iis : check in
    Leave extra : check in
    Allow untrusted : check in with my user/pwd

    but obtain this error when I go to the site

    Config Error Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'DomainServiceModule'

    Any idea ?
    Thanks
     
  2. The error should be related due to a problem with the web.config having problems with the DomainServiceModule being there twice. If you're running this application in a subfolder, you have to make sure to disable inheritance, to prevent the root of the account from inheriting these settings, or you can clear before the add of DomainServiceModule
     

Share This Page