Global Assembly Cache

G

Guest

Hello everyone,


I have used gacutil tool to install my COM dll into Global Assembly Cache,

http://msdn2.microsoft.com/en-us/library/ex0ss12c(VS.80).aspx

But I am not sure whether I need to manually copy the actual assembly dll
into some directory (like Windows\System32? Windows?) after running this
tool? Or gacutil tool will automatically copy (install) the assembly for me
-- so I only need to run gacutil -i <dllname>?


thanks in advance,
George
 
N

Nicholas Paldino [.NET/C# MVP]

George,

When using the gacutil tool, it will move the assembly to an appropriate
storage location (it's not something you manually have to do, or need to
know for that matter).
 
G

Guest

Thanks Nicholas,


A further question, I think when a CLSID is used for CoCreateInstance, GAC
should be used for searching the codebase dll containing the implementation
of the CLSID, right?

But, for most COM server, not all of them are in GAC (in GAC, if we list all
entries, only tens of items.), so I think there should be some other ways to
find codebase dll, other than through GAC, right? So, what are the other ways
to find CLSID related codebase dll?


regards,
George

Nicholas Paldino said:
George,

When using the gacutil tool, it will move the assembly to an appropriate
storage location (it's not something you manually have to do, or need to
know for that matter).


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

George said:
Hello everyone,


I have used gacutil tool to install my COM dll into Global Assembly Cache,

http://msdn2.microsoft.com/en-us/library/ex0ss12c(VS.80).aspx

But I am not sure whether I need to manually copy the actual assembly dll
into some directory (like Windows\System32? Windows?) after running this
tool? Or gacutil tool will automatically copy (install) the assembly for
me
-- so I only need to run gacutil -i <dllname>?


thanks in advance,
George
 
N

Nicholas Paldino [.NET/C# MVP]

George,

You shouldn't be doing this manually for exposing your code through COM.
When you call regasm, if you want to specify a specific codebase (if the
..NET assembly is not in the GAC), then you can use the /codebase switch,
specifying to place in the registry where the path to the assembly is.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

George said:
Thanks Nicholas,


A further question, I think when a CLSID is used for CoCreateInstance, GAC
should be used for searching the codebase dll containing the
implementation
of the CLSID, right?

But, for most COM server, not all of them are in GAC (in GAC, if we list
all
entries, only tens of items.), so I think there should be some other ways
to
find codebase dll, other than through GAC, right? So, what are the other
ways
to find CLSID related codebase dll?


regards,
George

Nicholas Paldino said:
George,

When using the gacutil tool, it will move the assembly to an
appropriate
storage location (it's not something you manually have to do, or need to
know for that matter).


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

George said:
Hello everyone,


I have used gacutil tool to install my COM dll into Global Assembly
Cache,

http://msdn2.microsoft.com/en-us/library/ex0ss12c(VS.80).aspx

But I am not sure whether I need to manually copy the actual assembly
dll
into some directory (like Windows\System32? Windows?) after running
this
tool? Or gacutil tool will automatically copy (install) the assembly
for
me
-- so I only need to run gacutil -i <dllname>?


thanks in advance,
George
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top