Jacob,
From what I understand it is NOT possible to change the application dependent directories.
ScottGu writes:
here is unfortunately a few technical reasons why we can't make [the directory names] configurable:
1) Some of the directory names need to be identified before the application starts up. Specifically, you can only set assembly loading policy as part of app-domain creation. As such, the configuration of the directories would have to be set in something other than the local web.config (most likely machine.config) -- which breaks xcopy deployment as well as deployments in hosting environments (where you don't have access to change the machine.config).
2) Blocking the directories needs to be done through a native ISAPI filter (there is no other secure way to-do this out of the box). This filter also can't read from the web.config files of the application (otherwise it would significantly impact perf on all requests -- both asp.net and every other file extension -- to the system). It would also require that you reboot the web-server on every change (which is ugly too). In theory we could enable a registry setting to make this configurable -- but again this starts to get very ugly in terms of breaking deployments and makes administration a nightmare (among other things -- you'd have to be an admin on the box to deploy your app). This also breaks all hosting environment deployments.
Read more here:
http://forums.asp.net/2/691250/ShowThread.aspx
Brian Goldfarb writes:
Alternate Solutions Considered
In selecting this solution, we considered a number of other options including using a single root directory for framework content, making the directory naming configurable, and using various other syntax elements to distinguish the framework directories.
Read more here:
http://blogs.msdn.com/bgold/archive/...15/257961.aspx
- Adam Kahtava [
http://adam.kahtava.com]