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

前端 未结 14 1996
旧巷少年郎
旧巷少年郎 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条回答
  •  醉酒成梦
    2020-12-29 02:53

    I had the same problem, here's what I did:

    • I changed my Server settings from Local IIS to IIS Express:

    • If it still doesn't work, I changed the port number to different port number then click the Create Virtual Directory button. Clean the solution then Rebuild.

提交回复
热议问题