IIS express: Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to

前端 未结 14 1999
旧巷少年郎
旧巷少年郎 2020-12-29 02:11

In Visual studio, Solution->Web.Project->Properties->Web, I have changed my Project Url from http://localhost:51123/ to http://localhost:51123/NewProj

14条回答
  •  猫巷女王i
    2020-12-29 02:58

    I tried all of the above methods and nothing worked for me. I was keep on getting the error something like

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

    At last I changed my server from

    IIS Express to Local IIS in the project property build as given below.

    and it worked for me.

提交回复
热议问题