473,395 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 1417

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: bazad | last post by:
Let's say I have plug-in API. A number of assemblies implement plug-in API version 1. Over time plug-in interface changes to version 2. How would you handle assemblies implementing old API?
0
by: Ram | last post by:
Hey, I have 2 computers, one has Framework 1.0 and 1.1 installed, and the other has them both And the beta of Framework 2.0. I install a certian Assembly in the GAC using - GacUtil /i, and it...
7
by: Ruslan Popov | last post by:
Hi, I am trying to prevent an assembly being loaded from GAC and instead want it loaded from the application's base directory. However, the assembly always gets loaded from GAC. How to have it...
0
by: Dinesh Upare | last post by:
Hi, I want to deploy my private shared assembly using codebase keeping some of the assemblies in common folder. I am using following tag in web.config <runtime> <assemblyBinding...
2
by: BentleyInc | last post by:
I wrote a DownloadRequestHandler to be used in http://server/DownloadDir and I've made the correct IIS settings for DownloadDir. Currently I'm having problem loading up some dependent assemblies....
2
by: Tim | last post by:
I have placed my assemblies in different folders (as per project req.). I am using config file with <codebase> option and registry with codebase option (COM Interop) to enable the runtime to locate...
0
by: Ralf | last post by:
Hi, I have the following problem: we have our application spread over two folders Folder1: main.dll (managed cpp assembly, strong named) ... many many resources for main.dll Folder2:...
2
by: Tony Johansson | last post by:
Hello! In directory c:\window\assembly(GAC) can you find a lot of global assembly names which is called shared assemblies. If I for example use ILDASM on a file called Accessibility which is...
14
by: Jef Driesen | last post by:
I'm writing a library (to communicate with a number of devices over a serial port) and have some questions about the design. I have now a header and source file like this: /* device.h */...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.