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?
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.
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.
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.
No, they need to be registered in the Registry using the regsvcs tool. It needs to be a strongly named assembly though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With