I haven't taken the time yet, but I'm assuming that Orchard creates child applications at runtime? The reason I ask is that if I wrap system.webServer with a location attribute to prevent inheritance of dependencies of other child elements (as mentioned
http://www.jasongaylord.com/blog/prevent-child-apps-from-inheriting-dependencies), I seem to break my theme. The paths still work, but the other elements do not.
So, I'm either going to clear the dependencies on the sub application and add back only the necessary ones or include the orchard binaries in the sub app.
Is there another solution?