Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top