无法启动IIS Express Web服务器
(1)打开项目中以.csproj结尾的文件;
(2)将<WebProjectProperties>节点下的<AutoAssignPort>设置为True;
(3)<DevelopmentServerPort>、<DevelopmentServerVPath>、<IISUrl>属性清空;
这些操作是让VS重新启动配置,最后保存,重新打开项目。
设置如下:
1 <WebProjectProperties> 2 <UseIIS>True</UseIIS> 3 <AutoAssignPort>True</AutoAssignPort> 4 <DevelopmentServerPort></DevelopmentServerPort> 5 <DevelopmentServerVPath></DevelopmentServerVPath> 6 <IISUrl></IISUrl> 7 <NTLMAuthentication>False</NTLMAuthentication> 8 <UseCustomServer>False</UseCustomServer> 9 <CustomServerUrl> 10 </CustomServerUrl> 11 <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile> 12 </WebProjectProperties>