I just installed VirtualBox on Windows XP Pro SP3, and as part of its installation it created a new network connection called "VirtualBox Host-Only Network" with an IP address of 192.168.56.1.
A side-effect of this is that my Web Application does not load any longer in Visual Studio 2008. When I open the solution with this "VirtualBox Host-Only Network" enabled, the webapp fails to load with the message:
The local IIS URL http://localhost/MyWebApp specified for Web Project WebApp has not been configured. In order to open this project the virtual directory needs to be configured. Would you like to create the virtual directory now?
Clicking on Yes gives me an error "...Could not find the server 'http://localhost' on the local machine. Creating a virtual directory is only supported on the local IIS server."
When I disable that new network connection, it loads fine. However, I can't figure out how to get them both working simultaneously. My WebApp.proj file contains this:
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="[BIGLONGGUID]">
<WebProjectProperties>
<UseIIS>True</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>2610</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost/MyWebApp</IISUrl>
<OverrideIISAppRootUrl>True</OverrideIISAppRootUrl>
<IISAppRootUrl>http://localhost/MyWebApp</IISAppRootUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
I can navigate to http://localhost/MyWebApp with a web browser. Any idea what might be causing the conflict with localhost?
Thanks,
-Mike