How to change IIS Express site name in Visual studio project

自作多情 提交于 2019-12-04 10:07:31

1 ) find YourWebSite.sln file

2) open with notepad

3) in 5 or 6th line, find you website name, rename it

4) save&exit

I had the same problem for HTTPS and Visual Studio 2015.

The IIS Express configuration file :

"C:\Users{username}\Documents\IISExpress\config\applicationhost.config" didn´t have the reference for my site.

I found the reference inside the solution directory in a hide directory

"{Solution}\.vs\config\applicationhost.config"

I removed the entry for the old copy site, closed and reopen the project and everything was right.

  1. Open with sublime text3
  2. Find folder .vs > config > applicationhost.config
  3. Searh old Site name & Change new name
  4. save
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!