It works, many thanks to all replies.

Cheers
Lee Tran

-----Original Message-----
From: Pradeep Tapadiya [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, August 15, 2002 2:00 AM
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] COM+


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.

Notice:
The information contained in this e-mail message and any attached files may
be confidential information, and may also be the subject of legal
professional privilege.  If you are not the intended recipient any use,
disclosure or copying of this e-mail is unauthorised.  If you have received
this e-mail in error, please notify the sender immediately by reply e-mail
and delete all copies of this transmission together with any attachments.

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