VS 2012 can't load project which uses IIS with custom binding host - thinks it's using IIS Express
Opening as an Administrator didn't fix the problem for me. What fixed it for me was opening both the .csproj
and .csproj.user
files and ensuring that both had UseIISExpress
set to false
.
In my case, the .csproj.user
file was overriding the .csproj
file even though SaveServerSettingsInUserFile
was marked false
.
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <UseIISExpress>false</UseIISExpress> <!-- ... --></Project>
I have set "SaveServerSettingsInUserFile" as True and it worked for me.
<ProjectExtensions><VisualStudio> <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> <WebProjectProperties> <UseIIS>True</UseIIS> <AutoAssignPort>True</AutoAssignPort> <DevelopmentServerPort>50584</DevelopmentServerPort> <DevelopmentServerVPath>/</DevelopmentServerVPath> <IISUrl>http://localhost:50584/</IISUrl> <NTLMAuthentication>False</NTLMAuthentication> <UseCustomServer>False</UseCustomServer> <CustomServerUrl> </CustomServerUrl> <SaveServerSettingsInUserFile>True</SaveServerSettingsInUserFile> </WebProjectProperties> </FlavorProperties></VisualStudio>
Source : click here