Open the Command Prompt (not as administrator)
打开命令行提示符
Navigate to the folder where IIS Express is installed on your machine.
定位到iis express安装目录,(输入x:\ 回车,输入cd "x:\xxx\xxx 回车",这里 x: 和x:\xxx\xxx 代表iis的安装目录)
In the command line spin up a IISExpress site with the following prompt: “iisexpress.exe /path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\ASP.NETWebAdminFiles /vpath:”/ASP.NETWebAdminFiles” /port:[port] /clr: 4.0 /ntlm” using the following values for the [param]:
输入以上命令行
[port] – any port you have free in IISExpress (I use 8082 in the example below)
This should launch an IISExpress instance of the Configuration Manager Site clip_image002
Open your browser 打开你的浏览器
In the URL enter the following “http://localhost:8082/asp.netwebadminfiles/default.aspx?applicationPhysicalPath=[appPath]&applicationUrl=/” substituting the [appPath] with the absolute path to the Visual Studio Project folder with the solution file in it.
输入以上地址,可以打开配置网站。
iisexpress /path:C:/Windows/Microsoft.NET\Framework\v4.0.30319\ASP.NETWebAdminFiles /vpath:"/ASP.NETWebAdminFiles" /port:8082 /clr:4.0 /ntlm