Search code examples
asp.netdllcustom-server-controls

Asp.net, dynamic loading of server controls from a DLL


I've been using reflection and LoadControl() to try and load a control dynamically from a DLL. I've had a problem, though, loading it from elsewhere than the app's ~/bin folder.

Is there any kind of restriction as to where you should be able to load controls from, and if yes, is there any way I can lift or bypass that restriction?

Thanks!


Solution

  • Have a look at this question. You can only load assemblies from the bin directory, the GAC or a codebase location.