To load an assembly from the GAC, you need to specify
the full name of the assembly, as in the following example:

"System.Windows.Forms, Version=1.0.3300.0,
  Culture=neutral, PublicKeyToken=b77a5c561934e089"

If you really have to use the partial name, then use
Assembly.LoadWithPartialName instead of Assembly.Load.

Hope this helps.

Pradeep
http://www.tapadiya.net/pradeep

----- Original Message -----
From: "Lee Tr" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 13, 2002 6:14 PM
Subject: [ADVANCED-DOTNET] COM+


> I wonder if someone could provide some pointer.
> I have a couple of .Net assemblies that installed as separate COM+
> applications (A & B). I am having problems of loading an assembly
> (configured as application B) from application A using Reflection.
>
> For example, from application A if try to execute TargetAssembly =
> Assembly.Load(AssemblyName). AssemblyName refers to a .Net assemlby which
> was installed as application B. I receive FileNotFound exception. From the
> fusion log, it indicates that COM+ starts searching from C:\WINNT\SYstem32
> for the target assembly.
> It works if I drop the assemblies.DLL into c:\winnt\systems.
>
> The question is:
>  what do I need to do the assmeblies to have COM+ looking into the GAC?
>
> Many thanks in advance
> Lee Tr
>
> You can read messages from the Advanced DOTNET archive, unsubscribe from
Advanced DOTNET, or
> subscribe to other DevelopMentor lists at http://discuss.develop.com.
>
>

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to