Question

I want to load a managed DLL that's neither in my application's /bin directory nor in the GAC. Is there a way add it to system.web/compilation/assemblies in web.config by path?

Was it helpful?

Solution

The simplest thing to do is, of course, to put the assembly in /bin like a normal person. If for some reason you find yourself needing to reference assemblies from another path, there's the assemblyBinding tag you can put in web.config to cause it to look elsewhere.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top