asp.net - VS 2012 can't load project which uses IIS with custom binding host - thinks it's using IIS Express -


i have asp.net project uses iis. iis site configured use custom binding host name. project file contains following settings:

... <useiisexpress>false</useiisexpress> ... <projectextensions>   <visualstudio>     <flavorproperties guid="{349c5851-65df-11da-9384-00065b846f21}">       <webprojectproperties>         <useiis>true</useiis>         <autoassignport>false</autoassignport>         <developmentserverport>8662</developmentserverport>         <developmentservervpath>/</developmentservervpath>         <iisurl>http://custom.host.name/</iisurl>         <ntlmauthentication>false</ntlmauthentication>         <usecustomserver>false</usecustomserver>         <customserverurl></customserverurl>         <saveserversettingsinuserfile>false</saveserversettingsinuserfile>       </webprojectproperties>     </flavorproperties>   </visualstudio> </projectextensions> ... 

when project configured in such way, can access site http://custom.host.name/ , vs automatically attaches iis worker process when debugging.

when reload project (either closing/reopening solution or unload/reload in project context menu), unexpected happens. project fails load, (load failed) displayed right of project name in solution explorer , message box shown following message (it's displayed in output window):

the url 'http://custom.host.name/' web project 'some.asp.net.project'  configured use iis express web server url configured on local iis web server. open project, must use iis manager remove bindings using url local iis web server. 

i have tried removing project site configuration iis express applicationhost.config file, didn't help.

i don't encounter problem when mapping project iis application under default site.

vs version ultimate 2012 update 3.

opening administrator didn't fix problem me. fixed me opening both .csproj , csproj.user files , ensuring both had useiisexpress set false.

in case, .csproj.user file overriding .csproj file event though saveserversettingsinuserfile marked false.

<project toolsversion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">   <propertygroup>     <useiisexpress>false</useiisexpress>      <!-- ... --> </project> 

Comments