Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C# Microsoft Excel Object Library

Status
Not open for further replies.
Mar 9, 2006
93
CA
I built an application that at one point opens and writes to an excel file. The application was built with the Microsoft Excel 9.0 Object library. I am using VS2005 and published it to a shared network drive. The problem arises when a user with Office XP Professional attempts to run the application. I get the following error.

'Unable to install or run the application. The application requires that assembly Microsoft.Vbe.Interop Version 11.0.0.0 be installed in the Global Assembly Cache (GAC) first'

Does anybody know how I can get the program to run witout rebuilding the App to use 11.0 Object Library?
Thanks
Matt
 
I think it won't work as Office XP _requires_ the Object Library 11.0.0.0.

Quite a complex workaround would be to determine on startup, which Object Libraries from Excel are installed on the current machine and then load and use this library for excel interop.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top