.NET MS office automation through COM interop

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi!

How do I deploy .NET applications that references Interop.Excel.dll or
Interop.Outlook.dll onto computers other than the one on witch the project
was built? I've made serveral attempts on packaging the assemblies using
Visual Studio Setup Projects. However, the MS Office automation operations of
my .NET apps simply will not run on other computers than the workstation I use
for developing them. After installing on others computers, on which Excel/Outlook
of course have been installed, all I get is System.InvalidCastException or
System.Runtime.InteropServices.COMException. Am I missing any vital components?
Am I including assemblies that shouldn't be part of the setup?

Any advice on this issue would be highly appreciated.

Regards, Trond
 
I've tried to install my test Excel automation app on two different computers, compA and compB. CompA has MS Excel 2002 (10.3506.3501) SP-1 installed, while compB has MS Excel 2002 (10.2614.3501) SP-1

Running the app on compA results in a System.InvalidCastException, while execution of the exact same app on compB, installed with the exact same setup program, terminates with a System.Runtime.InteropServices.COMException

Tron
 
Back
Top