I'm trying to debug a setup project where I have defined a component with a 
strongly named assembly:

--snip--
<Directory Id="INSTALLDIR_GAC" Name="GAC">
  <Component Id="Assemblies_GAC" Guid="D50D93D8-B5EF-46f4-A304-869ADBA389F9">
    <File Id="OfficialCommuntiy.Common.dll_GAC" Name="occgac.dll" 
LongName="OfficialCommuntiy.Common.dll" DiskId="1" 
Source="C:\Projects\Common\trunk\Common\bin\Release\OfficialCommunity.Common.dll"
 KeyPath="yes" Assembly=".net" />
  </Component>
</Directory>
--snip--

I am able to GAC the assembly using GacUtil on the command line, the 
dependencies are already in the GAC as well. Reflector shows the assembly full 
name as:

OfficialCommunity.Common, Version=2.2.0.0, Culture=neutral, 
PublicKeyToken=9c02f6b549e26545

In the msiexec.log I'm seeing the following to which I have researched with no 
real conclusion:

--snip--
MSI (s) (B0:9C) [14:21:05:060]: Assembly Error:The given assembly name or 
codebase, '%1', was invalid.
MSI (s) (B0:9C) [14:21:05:060]: Note: 1: 1935 2: 
{D50D93D8-B5EF-46F4-A304-869ADBA389F9} 3: 0x80131047 4: IAssemblyCacheItem 5: 
Commit 6: 
OfficialCommunity.Common,version="2.2.0.0",culture="neutral",publicKeyToken="9C02F6B549E26545",processorArchitecture="MSIL"
Error 1935. An error occurred during the installation of assembly 
'OfficialCommunity.Common,version="2.2.0.0",culture="neutral",publicKeyToken="9C02F6B549E26545",processorArchitecture="MSIL"'.
 Please refer to Help and Support for more information. HRESULT: 0x80131047. 
assembly interface: IAssemblyCacheItem, function: Commit, component: 
{D50D93D8-B5EF-46F4-A304-869ADBA389F9}
MSI (s) (B0:9C) [14:21:21:916]: Product: Common Framework 2.2 CTP -- Error 
1935. An error occurred during the installation of assembly 
'OfficialCommunity.Common,version="2.2.0.0",culture="neutral",publicKeyToken="9C02F6B549E26545",processorArchitecture="MSIL"'.
 Please refer to Help and Support for more information. HRESULT: 0x80131047. 
assembly interface: IAssemblyCacheItem, function: Commit, component: 
{D50D93D8-B5EF-46F4-A304-869ADBA389F9}
--snip--

Part of the difficultly is the relative undocumented nature of 
IAssemblyCacheItem.  The assembly name looks correct.  I'm assuming the 
processorArchitecture attribute gets tacked on and should be alright?  I have 
tried adding the ProcessorArchitecture attribute to the File element and it did 
not make a difference.

Any thoughts on other potential causes or knowledge of resolutions?

Thanks!
Colin

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to