1

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!

Olivier Tremblay
  • 1,441
  • 2
  • 20
  • 37

1 Answers1

1

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

Community
  • 1
  • 1
TheCodeKing
  • 19,064
  • 3
  • 47
  • 70
  • It seems to suggest I can add a probing path from which I can load the control, but I can't get it to work. LoadControl doesn't seem to like that my reference is out of "bin" – Olivier Tremblay Sep 17 '11 at 18:44