Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does a (.net) COM+ assembly need to be installed in the GAC?

Tags:

.net

gac

com+

I have a .net assembly that has a COM+ ServicedCopmonent in it and at the moment I install it into the GAC to get everything working. This means that I need to have every assembly that it references in the GAC as well.

During development it is quite painful to make changes to thes assemblies, re-install them to the GAC and then test.

Is it possible to maintain the COM+ component but not have everything in the GAC?

like image 810
Kepboy Avatar asked Oct 01 '08 05:10

Kepboy


People also ask

Which type of assembly should be installed in GAC?

You can install only strong-named assemblies into the global assembly cache. For information about how to create a strong-named assembly, see How to: Sign an assembly with a strong name.

Where are .NET assemblies located?

The common location for an assembly is the GAC or the JADE bin directory (or a subdirectory). If you have imported a strongly named assembly, the first location checked is the GAC. If the assembly is not found in the GAC or it is a weakly named assembly, the directory of the executable (jade.exe) is checked.


2 Answers

No, you don't have to install it in the GAC. You can use regsvcs (http://msdn.microsoft.com/en-us/library/04za0hca.aspx) with /appdir parameter to specify explicitly where the app is located.

like image 144
Franci Penov Avatar answered Oct 24 '22 19:10

Franci Penov


No, they need to be registered in the Registry using the regsvcs tool. It needs to be a strongly named assembly though.

like image 21
Charles Graham Avatar answered Oct 24 '22 19:10

Charles Graham