title: ASP.NET inner directory virtual path root
body: <p>I have two separate web applications named MainWeb and Reports. I want to deploy them this way: there would be one virtual application for MainWeb, pointed, for instance, to <em>c:\inetpub\www\mainweb</em>.</p>
  
  <p>The Reports application I would like to deploy in a subdirectory of main web, so that it is at <em>c:\inetpub\www\mainweb\reports</em>.</p>
  
  <p>Thus I can combine the two which are logically coupled but I want to have them in separate projects for easy manipulation.</p>
  
  <p>The problem is, in my Reports project I use constructs like <code>~/Style/Whatever.css</code> which works fine when running standalone Reports application but when using as subdirectory in main web, it resolves to <em>http://localhost/Style/Whatever.css</em> though I would need it to resolve to <em>http://localhost/<strong>reports</strong>/Style/Whatever.css</em>.</p>
  
  <p>So the question is, is it possible to handle this situation, maybe some way to modify the behavior of <code>~</code> in nested web.config?</p>