Monish Nagisetty's Space

Building connectivity on-premise, in the cloud and beyond

BizTalk MSI Fails on Install (Exception from HRESULT: 0x80131047)

BizTalk MSI Error 

Event Type: Error
Event Source: BizTalk Server Deployment
Event Category: None
Event ID: 769
Date:  9/11/2007
Time:  5:56:57 PM
User:  N/A
Computer: MN-BTS06R2CTP1
Description:
An error occurred while attempting to install the BizTalk application: A file load exception occurred while attempting to install the assembly into the Global Assembly Cache. This error may occur if the assembly is delay signed, or if assembly was renamed after creating/signing.
The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

Solution (Update 9/19/2007 3:49PM):

It turns out the culprit was in the script that generated the MSI.  I had the following two BTSTask Commands in my script.

BTSTask AddResource /Source:AssemblyA.dll”   /Destination:”%%BTAD_InstallDir%%\AssemblyA.dll” -ApplicationName:%AppName%  -Type:Assembly   -Options:GacOnInstall
BTSTask AddResource /Source:AssemblyB.dll”   /Destination:”%%BTAD_InstallDir%%\AssemblyA.dll” -ApplicationName:%AppName%  -Type:Assembly   -Options:GacOnInstall

Notice how the /Destination switch for the second command specifies AssemblyA.dll? This should instead be AssemblyB.dll.

September 11, 2007 Posted by | Uncategorized | | Leave a comment