The System.EnterpriseServices.Internal namespace is designed to meet the needs of System.EnterpriseServices. GacInstall and GacRemove are used when installing and removing COM+ ServicedComponent proxies on client machines. There are a number of limitations in that environment that are more restrictive than most managed code programmers would want. These limitations are reflected in the implementation. Since proxies are activated through COM interop, there is no side by side support in those APIs, and their use with SxS assemblies could produce unintended, and undesirable, results.
As noted in the article Gacutil.exe and installer 2.0 are the best and most flexible way to install and remove assemblies from the GAC. - John Noss -----Original Message----- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Jeroen van den Bos (DT) Sent: Tuesday, September 30, 2003 5:03 AM To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] Adding assemblies to the GAC using the class library Hi all, In the MSDN docs (in article "Installing an Assembly into the Global Assembly Cache") I read that to install assemblies in the GAC you have to either create an installer 2.0 project or use gacutil. However, since .NET 1.1 there is a class called Publish in System.EnterpriseServices.Internal that has methods to do this as well (specifically, GacInstall() and GacRemove()). The original function of the class is to assist in publishing COM interfaces for COM+ apps, but after using those methods my conclusion is that it just works perfectly with any assembly. Now I'm wondering: is the MSDN article outdated or is there a reason not to use these methods that I'm not aware of? Thanks for any help, -Jeroen =================================== This list is hosted by DevelopMentor(r) http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor� http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com
