Assembly probing problem

  • Thread starter Thread starter news.microsoft.com
  • Start date Start date
N

news.microsoft.com

Is there anyway I can redirect assembly probing to look other folders other
than Wwwroot when the call comes from a Windows user control hosted in IE
which is running in client machine. I would really appreciate if somebody
can find a solution to solve this problem.

Thaks,

Rajan.
 
Hi Rajan,

I don't really get what you want to do, but anyway, maybe this helps:
try to attach an event handler to the current (right?) application domain:
AppDomain.CurrentDomain.AssemblyResovle
then just load the assembly you need from the place you need and you should
have solved your problem. Check MSDN, there is an example with the
AssemblyResolve event.

Maybe this works... alternatively you could set up an app domain with the
BaseDirectory set to the desired directory. Anyway I don't know what you
really want to do, so this are two possibilities

regards

Christian

..NET Competence Centre - HSR University, Switzerland
 
Back
Top