Hello,
Thanks for your post. As I understand, you want to dynamically load a GAC
assembly. Please correct me if there is any misunderstanding. I'd like to
share the following information with you:
1. We are able to use Assembly.Load to load assembly from the GAC. In
addition, the assembly reference must be fully-qualified (name, version,
public key token, culture). For example:
"System.Data, Version=1.0.3300.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
2. Each version of a specific assembly in GAC is in its own folder, for
example:
Directory of C:\WINDOWS\assembly\GAC\System.Data
11/04/2003 11:38 AM <DIR> .
11/04/2003 11:38 AM <DIR> ..
11/04/2003 11:38 AM <DIR> 1.0.3300.0__b77a5c561934e089
09/10/2003 07:44 PM <DIR> 1.0.5000.0__b77a5c561934e089
I suggest that you can use Directory.GetDirectories to get the list of
versions:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemiodirectoryclassgetdirectoriestopic.asp
Please feel free to let me know if you have any problems or concerns.
Have a nice day!
Regards,
HuangTM
Microsoft Online Partner Support
MCSE/MCSD
Get Secure! --
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.