1 <ProjectExtensions> 2 <VisualStudio> 3 <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> 4 <WebProjectProperties> 5 <UseIIS>False</UseIIS> 6 <AutoAssignPort>True</AutoAssignPort> 7 <DevelopmentServerPort>9550</DevelopmentServerPort> 8 <DevelopmentServerVPath>/</DevelopmentServerVPath> 9 <IISUrl>http://localhost:9550/</IISUrl> 10 <NTLMAuthentication>False</NTLMAuthentication> 11 <UseCustomServer>True</UseCustomServer> 12 <CustomServerUrl>http://192.168.0.206:1001/</CustomServerUrl> 13 <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile> 14 </WebProjectProperties> 15 </FlavorProperties> 16 </VisualStudio> 17 </ProjectExtensions>
1 <UseIISExpress>true</UseIISExpress> 2 <IISExpressSSLPort /> 3 <IISExpressAnonymousAuthentication /> 4 <IISExpressWindowsAuthentication /> 5 <IISExpressUseClassicPipelineMode />
.csporj文件中包含以上的兩個片斷。固然是web應用程序項目中包含,若是是類庫項目的話,是不包含的。web
第二部分位於項目文件的上部。express
第一個片斷則是位於項目文件的下部。windows
這裏主要說的是iis的選擇。服務器
問題源自將iisexpress8.0卸載後,部分web項目提示沒法正常加載,該項目使用了iisexpress之類,以下圖:spa
iis分爲:iis,iisexpress,和之前所謂的web 開發服務器。code
在vs2013中只有外部主機和本地主機;blog
也就是自定義服務器和內置的iis(iisexpress)。ip
<UseIIS>False</UseIIS> 6 <AutoAssignPort>True</AutoAssignPort> 7 <DevelopmentServerPort>9550</DevelopmentServerPort> 8 <DevelopmentServerVPath>/</DevelopmentServerVPath> 9 <IISUrl>http://localhost:9550/</IISUrl> 10 <NTLMAuthentication>False</NTLMAuthentication>
以上這個片斷值得就是iisexpress的配置。而不是所謂的外部iis或者說是windows的iis。開發
<UseCustomServer>True</UseCustomServer> 12 <CustomServerUrl>http://192.168.0.206:1001/</CustomServerUrl>
以上這個片斷就是描述的外部主機也就是windows的iis的配置。io
這兩個片斷恰好和圖形界面的配置相對應,以下圖:
若是二者都設置爲true的狀況下,可能採用第一種方式也就是iisexpress。
待驗證。