I'm getting an error when using rewriting (with a proxy request) and virtual directories together. My configuration (Windows Server 2003 SP2) looks like this:
- /web.config with ManagedFusion.Rewiter entries
- /bin/ with the dll for rewriter
http://MyServer.company/svn > rewritten to
http://otherserver.company/svn using a proxy request: this works like a charm
http://MyServer.company/myVirtualDirectory is not rewritten and has it's own web.config. The virtual directory contains some .aspx files and a .svc for a REST data service
- /myVirtualDirectory/web.config without ManagedFusion.Rewiter entries
- /myVirtualDirectory/bin without the managedFusion dll but with all the dlls needed by the REST data service
When I call http://MyServer.company/myVirtualDirectory/myDataService.svc (or any other .aspx file) I get an error that "file or assemby ManagedFusion.Rewriter was not found". The source config
file shown within the error message is web.config for MyServer.company.
Calling a static .html file does not throw this error.
Well, obviously the ManagedFusion dlls are in the root bin and not in the virtual directory bin. How can I manage this? I can not (and don't want to) add the ManagedFusion dlls to the application bin because this application is deployed by our developers
via Visual Studio.
Thanks for your help!