Distributing .NET Application Error

E

Eric Weller

All,
I developed a VB.NET application that uses the Word and Excel 11.0 object
libraries. I created a setup program using the .NET Studio installer. It
installs the Word and Excel 11.0 interop assemblies from my development
machine. However, when I attempt to install and run the app from another
test machine, I get the error:

Could not load file or assembly 'office, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The located
assembly's manifest definition does not match the assembly reference.
(Exception from HRESULT: 0x80131040)

The machine I am doing the test install to has Office 2007 and my
developement machine has Office 2003.
Does anyone have any ideas on what I must include in my setup so that the
assemblies match on both my dev and test machine? I was reading something
about using the Global Assembly Cache utility to add the installed assemblies
but I don't want to have to manually do this on dozens of machines.

I appreciate any suggestions that are offered.
Thanks in advance!
Eric Weller
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top