473,395 Members | 1,688 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Getting Error Due To Different versions of Interop.Excel - How to clear the reference

Siv
Hi,
I referenced Excel via COM in References and selected the Excel Version 11.0
but somehow it picked up the Beta of Office 2007 in the Interop reference
that gets pulled in as well.

I decided to remove the Beta as I didn't want that being the version of
Excel that opened when accessing Excel from my C# program, since I did that
the project won't compile and gives the following error:

Assembly 'Interop.Excel, Version=1.5.0.0, Culture=neutral,
PublicKeyToken=null' uses 'office, Version=12.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c' which has a higher version than referenced
assembly 'office, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c'

How do I get the project to compile, and why when I originally selected
Excel 11 from the COM References did the system automatically associate the
Microsoft.Office.Interop version 12.0.0.0??

It feels like DLL Hell all over again?

--
Siv
Martley, Near Worcester, United Kingdom.
Jun 27 '06 #1
1 5812
Siv
Hi,
As no-one replied, I exited VS and then renamed the solution folder, I then
created a new solution and imported just the forms and thus created a new
solution in the same location but leaving all the additional files created
by VS behind.
The new version works fine and will compile so no worries I seem to have
escaped from this problem.

--
Siv
Martley, Near Worcester, United Kingdom.
"Siv" <si*@removeme.sivill.com> wrote in message
news:uy****************@TK2MSFTNGP04.phx.gbl...
Hi,
I referenced Excel via COM in References and selected the Excel Version
11.0 but somehow it picked up the Beta of Office 2007 in the Interop
reference that gets pulled in as well.

I decided to remove the Beta as I didn't want that being the version of
Excel that opened when accessing Excel from my C# program, since I did
that the project won't compile and gives the following error:

Assembly 'Interop.Excel, Version=1.5.0.0, Culture=neutral,
PublicKeyToken=null' uses 'office, Version=12.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c' which has a higher version than
referenced assembly 'office, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c'

How do I get the project to compile, and why when I originally selected
Excel 11 from the COM References did the system automatically associate
the Microsoft.Office.Interop version 12.0.0.0??

It feels like DLL Hell all over again?

--
Siv
Martley, Near Worcester, United Kingdom.

Jun 27 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Juan Sanchez | last post by:
Hi there, I have a VB.NET application using EXCEL it run fine in some computers but now in a specific one I receive the error QueryInterface for interface Excel._Application failed....
9
by: Maik | last post by:
Hello, I've developed an assembly, which opens an excel workbook and readout the range names and -values. I'm working with Office XP on my computer. I want to deploy this assembly on computers,...
0
by: Brinkie | last post by:
Hi, I have the following situation: I have a COM enabled application installed on multiple machines. I'm building a management application for the COM application. Normaly this is very easy...
2
by: Rob G | last post by:
Hi, I am new to this ASP.NET thing and while going very slow, I am learning. Then I got a Configuration Error out of nowhere when I ran my project. I do have Excel as reference (but I haven't...
3
by: | last post by:
I wrote a class in VB.NET to export the contents of a datagrid to Excel. It works perfectly on my machine, but it fails on my customers' PCs that have identical versions of Win XP (SP1) and Excel...
1
by: BK | last post by:
I have a .NET Solution (currently in 2003, FW 1.1) that uses Office automation for a few things (generates a Word document, dumps datagrids to Excel, etc.). One of my programmers works on the...
2
by: dotnetnoob | last post by:
i got this program that will fetch the data in the excel spreadsheet, it was working before then i make some adjustment and it now give me an error of "Object reference not set to an instance of an...
2
by: Manikandan | last post by:
Hi, I have a program written in .Net Framework 1.1 using Visual studio enterprise edition 2003. I tried compiling the same program in visual c# express edition 2005. I'm getting following...
0
by: TG | last post by:
Hi! Once again I have hit a brick wall here. I have a combobox in which the user types the server name and then clicks on button 'CONNECT' to populate the next combobox which contains all the...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.