471,354 Members | 1,246 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

SHFusion API: retrieving codebase of assemblies in GAC

We're using the "Microsoft.CLRAdmin.Fusion" assembly because we want to
retrieve the exact locations of the assemblies in the GAC. The code looks
like this:

// objAssembly is the Microsoft.CLRAdmin.AssemInfo assembly.
Type objType = objAssembly.GetType();
BindingFlags objBinding = (BindingFlags) 1078;
string strCodeBase = (string) objType.InvokeMember("Codebase", objBinding,
null, objTarget, null);

Now this works fine for most assemblies, although for some assemblies we're
getting an empty code base path, for example for the Office and SharePoint
assemblies located in the GAC. Does anybody know why this happens and how we
can retrieve the exact locations of the assemblies which return empty code
base paths?

Kind regards,
Nikander & Margriet Bruggeman
Feb 24 '06 #1
0 1337

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by bazad | last post: by
reply views Thread by Ram | last post: by
7 posts views Thread by Ruslan Popov | last post: by
reply views Thread by Dinesh Upare | last post: by
2 posts views Thread by BentleyInc | last post: by
2 posts views Thread by Tim | last post: by
2 posts views Thread by Tony Johansson | last post: by
14 posts views Thread by Jef Driesen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.