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

前端 未结 14 1773
旧巷少年郎
旧巷少年郎 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 03:05

    I think IIS Express probably has 2 -blocks and both will be pointing to the same physicalPath.

    Go to the IIS Express config file in: My Documents\IISExpress\config\applicationhost.config

    Search for NewProjectName

    Change the physicalPath for the root application to something else. Point it to an empty folder.

    Should look something like this:

    
      
        
      
      
        
      
      
        
      
    
    

提交回复
热议问题