VS2015中无法加载Web应用程序,右击重新加载时弹出如下提示:
右击Web应用程序,重新编辑csproj文件:
找到文件中的ProjectExtensions > VisualStudio > FlavorProperties > WebProjectProperties > UseIIS 节点,将UseIIS节点值改为False,如果没有UseIIS节点,则加上此节点:
<ProjectExtensions> <VisualStudio> <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> <WebProjectProperties> <UseIIS>False</UseIIS> <AutoAssignPort>False</AutoAssignPort> <DevelopmentServerPort>3722</DevelopmentServerPort> <DevelopmentServerVPath>/Task</DevelopmentServerVPath> <IISUrl> </IISUrl> <NTLMAuthentication>False</NTLMAuthentication> <UseCustomServer>False</UseCustomServer> <CustomServerUrl> </CustomServerUrl> <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile> </WebProjectProperties> </FlavorProperties> </VisualStudio> </ProjectExtensions>
保存后重新加载即可: