It is interesting that you mention the Assembly Name from the MSI tables. When 
I first got the error, I was looking in the ComPlusAssembly table and noticed 
that the AssemblyName column was blank. I tried adding the AssemblyName 
attribute for my COM+ assembly, thinking that it would help the custom action 
with finding the file in the GAC, but that didn't have any effect.

The MsiAssemblyName table seems to have appropriate entries:
EnterpriseServicesHost_GAC      name    MyProduct.EnterpriseServicesHost
EnterpriseServicesHost_GAC      version 0.0.0.1
EnterpriseServicesHost_GAC      culture neutral
EnterpriseServicesHost_GAC      publicKeyToken  CF47A01D50A7B0F5
EnterpriseServicesHost_GAC      processorArchitecture   MSIL

When I monitored MSIEXEC using ProcMon, the only thing that seemed odd was an 
open file request on 
C:\WINNT\GAC\MyProduct.EnterpriceServicesHost\0.0.0.1_CF47A01D50A7B0F5\MyProduct.EnterpriseServicesHost.dll,
 or something like that. The Previous file activity involved the 
C:\WINNT\GAC_MSIL tree. That seemed not right to me, but I don't know anything 
about the Fusion API.

- Don Benson -

> -----Original Message-----
> From: Fredrik Grohn [mailto:fredrik.gr...@microsoft.com]
> Sent: Friday, February 20, 2009 2:47 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Trouble registering .NET assembly from GAC
> into COM+
>
> On top of that it was all written on Windows 2000 originally. It could
> have something to do with the assembly name that is being extracted
> from the MSI tables.
>
> In any case I would also recommend going with your option 1 below, for
> the sake of general robustness. As long as you can live with the file
> duplication.
>
> -----Original Message-----
> From: Rob Mensching [mailto:r...@wixtoolset.org]
> Sent: Friday, February 20, 2009 11:39 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Trouble registering .NET assembly from GAC
> into COM+
>
> Note: Fredrik wrote the COM+ installation code. His answers are far
> more
> authoritative than mine.
>
> Don Benson wrote:
> > I never had this functionality previously working. I am a new user to
> WiX (just since the beginning of the month), going through the process
> of converting Wise for Windows Installer projects (yes, it's an ancient
> tool!) to WiX.
> >
> > Based on what Rob is saying, it does certainly seem to a Fusion
> issue, at least with .NET 2.0 on Windows 2000. I haven't tested on 2003
> or 2008 servers yet, but that won't really matter because I have to
> support Windows 2000 for at least a year or more. If I could use COM+
> 1.5, I wouldn't be using the GAC at all. I would prefer use private
> assemblies in conjunction with the application directory attribute of
> the COM+ application.
> >
> >
> >> -----Original Message-----
> >> From: Fredrik Grohn [mailto:fredrik.gr...@microsoft.com]
> >> Sent: Friday, February 20, 2009 2:23 PM
> >> To: General discussion for Windows Installer XML toolset.
> >> Subject: Re: [WiX-users] Trouble registering .NET assembly from GAC
> >> into COM+
> >>
> >> This is actually supposed to work. Though neither Fusion or COM+
> where
> >> designed with deployment in mind, so plenty of unexpected things
> seems
> >> to happen here.
> >>
> >> This probably has something to do with Fusion, but I am at a loss to
> >> tell what.
> >>
> >> Are you saying that you have had it working with a previous WiX
> build
> >> BTW?
> >>
> >> -----Original Message-----
> >> From: Don Benson [mailto:dben...@trulinx.com]
> >> Sent: Friday, February 20, 2009 11:06 AM
> >> To: General discussion for Windows Installer XML toolset.
> >> Subject: Re: [WiX-users] Trouble registering .NET assembly from GAC
> >> into COM+
> >>
> >> That is what I did, and it was easy to do.
> >>
> >> So what is the purpose of the DLLPathFromGAC attribute on the
> >> ComPlusAssembly element? It doesn't seem like it has any use as of
> >> build 3.0.5006 unless you are using to register a DLL that already
> was
> >> previously installed, and I'm not sure what installation scenario
> would
> >> do that.
> >>
> >> Thanks for the informative and prompt responses!
> >>
> >>
> >>> -----Original Message-----
> >>> From: Rob Mensching [mailto:r...@wixtoolset.org]
> >>> Sent: Friday, February 20, 2009 1:52 PM
> >>> To: General discussion for Windows Installer XML toolset.
> >>> Subject: Re: [WiX-users] Trouble registering .NET assembly from GAC
> >>> into COM+
> >>>
> >>> Option 1 may be the best.  All of that "install/upgrade/uninstall
> >>> stuff"
> >>> you listed on that line is good stuff and difficult to do well.
> >>>
> >>>
> >>>> Option 1:
> >>>> Include the .NET DLL in the GAC and in a folder, which requires
> >>>>
> >>> separate components for the file. I've seen threads about deploying
> >>> .Net assemblies to both places. The ComPlus configuration can
> >>>
> >> reference
> >>
> >>> the DLL component that installs to a folder. If there is an error
> >>> during the COM+ registration, the entire installation will be
> rolled
> >>> back. Upgrades and removals are handles automatically through the
> >>> built-in functionality.
> >>>
> >> CONFIDENTIALITY NOTICE: This email and any files transmitted with it
> >> are the property of Tribute Inc. and/or its affiliates. The contents
> of
> >> this communication are confidential and may contain information that
> is
> >> privileged and/or exempt from disclosure under applicable law. It is
> >> intended solely for use of the individual or entity to whom this
> email
> >> is addressed. If you are not one of the named recipient(s) or
> otherwise
> >> have reason to believe that you have received this message in error,
> >> please notify the sender and immediately delete this message and any
> >> attachments. Any unauthorized use, retention, dissemination,
> >> forwarding, printing, or copying of this email is strictly
> prohibited.
> >>
> >> --------------------------------------------------------------------
> ---
> >> -------
> >> Open Source Business Conference (OSBC), March 24-25, 2009, San
> >> Francisco, CA
> >> -OSBC tackles the biggest issue in open source: Open Sourcing the
> >> Enterprise
> >> -Strategies to boost innovation and cut costs with open source
> >> participation
> >> -Receive a $600 discount off the registration fee with the source
> code:
> >> SFAD
> >> http://p.sf.net/sfu/XcvMzF8H
> >> _______________________________________________
> >> WiX-users mailing list
> >> WiX-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wix-users
> >>
> >>
> >> --------------------------------------------------------------------
> ---
> >> -------
> >> Open Source Business Conference (OSBC), March 24-25, 2009, San
> >> Francisco, CA
> >> -OSBC tackles the biggest issue in open source: Open Sourcing the
> >> Enterprise
> >> -Strategies to boost innovation and cut costs with open source
> >> participation
> >> -Receive a $600 discount off the registration fee with the source
> code:
> >> SFAD
> >> http://p.sf.net/sfu/XcvMzF8H
> >> _______________________________________________
> >> WiX-users mailing list
> >> WiX-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wix-users
> >>
> >
> > CONFIDENTIALITY NOTICE: This email and any files transmitted with it
> are the property of Tribute Inc. and/or its affiliates. The contents of
> this communication are confidential and may contain information that is
> privileged and/or exempt from disclosure under applicable law. It is
> intended solely for use of the individual or entity to whom this email
> is addressed. If you are not one of the named recipient(s) or otherwise
> have reason to believe that you have received this message in error,
> please notify the sender and immediately delete this message and any
> attachments. Any unauthorized use, retention, dissemination,
> forwarding, printing, or copying of this email is strictly prohibited.
> >
> > ---------------------------------------------------------------------
> ---------
> > Open Source Business Conference (OSBC), March 24-25, 2009, San
> Francisco, CA
> > -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> > -Strategies to boost innovation and cut costs with open source
> participation
> > -Receive a $600 discount off the registration fee with the source
> code: SFAD
> > http://p.sf.net/sfu/XcvMzF8H
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
>
> -----------------------------------------------------------------------
> -------
> Open Source Business Conference (OSBC), March 24-25, 2009, San
> Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> -----------------------------------------------------------------------
> -------
> Open Source Business Conference (OSBC), March 24-25, 2009, San
> Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

CONFIDENTIALITY NOTICE: This email and any files transmitted with it are the 
property of Tribute Inc. and/or its affiliates. The contents of this 
communication are confidential and may contain information that is privileged 
and/or exempt from disclosure under applicable law. It is intended solely for 
use of the individual or entity to whom this email is addressed. If you are not 
one of the named recipient(s) or otherwise have reason to believe that you have 
received this message in error, please notify the sender and immediately delete 
this message and any attachments. Any unauthorized use, retention, 
dissemination, forwarding, printing, or copying of this email is strictly 
prohibited.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to