I'm using VS 2010 and a using IIS Express instead of the Visual Studio's web server.
By default the Web application runs at the root of localhost something like this: http://localhost:50369/
I wish it to run at http://localhost:50369/Enet/ instead as this is the virtual directory it will end up at when published.
When I tried to add the virtual directory my applicationhost.config looked this this:
<site name="EssenceNet" id="1">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="E:\dev\EssenceNet\Src\EssenceNet.Web" />
</application>
<application path="/ENet">
<virtualDirectory path="/" physicalPath="E:\dev\EssenceNet\Src\EssenceNet.Web" />
</application>
<bindings>
<binding protocol="http" bindingInformation=":50369:localhost" />
</bindings>
</site>
When I browse to http://localhost:50369/ my application works.
When I browse to http://localhost:50369/Enet/ my MVC application works, but it can't find files like CSS or JS files. The paths for them are what I'd expect (the same as before except prefixed with /Enet) but they're not found.
What are the steps to do this correctly? Obviously I've gone wrong somewhere. Thanks very much for any help.