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 c:\inetpub\www\mainweb.
The Reports application I would like to deploy in a subdirectory of main web, so that it is at c:\inetpub\www\mainweb\reports.
Thus I can combine the two which are logically coupled but I want to have them in separate projects for easy manipulation.
The problem is, in my Reports project I use constructs like ~/Style/Whatever.css
which works fine when running standalone Reports application but when using as subdirectory in main web, it resolves to http://localhost/Style/Whatever.css though I would need it to resolve to http://localhost/reports/Style/Whatever.css.
So the question is, is it possible to handle this situation, maybe some way to modify the behavior of ~
in nested web.config?
Not really a webby guy, but how about a shortcut to the real folder in reports?