Case: Deployment of system (ASP.NET 1.1.4322) to new testing server. Upgrade from Microsoft Office 97 to Microsoft Office 2010.
New:
Server operating system: Windows Server 2003 R2
Microsoft Office 2010
COM Reference: Microsoft Word
14.0 Object Library
TypeLib Version: 8.5
Old:
Server operating system: Windows Server 2003
Microsoft Office 97
COM Reference: Microsoft Word 8.0 Object Library
TypeLib Version: 8.0
Apparently, Microsoft Word 14.0 Object Library will add
Interop.Microsoft.Office.Interop.Word.dll instead of
Interop.Word.dll (older version).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: The located assembly's manifest definition with name 'Interop.Word' does not match the assembly reference.
Notice that the Assembly Load Trace is stating DisplayName = Interop.Word
Solution:
Right click on system's Visual Basic .NET Project file (LAR.vbproj). Open with Notepad. Search for "Interop.word". Remove the "Interop.word" Reference part. Save the LAR.vbproj notepad. Rebuild project and the assembly error is GONE! :D
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~