HighTechTalks DotNet Forums  

Wrong Interop Version of Excel loads

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Wrong Interop Version of Excel loads in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
george
 
Posts: n/a

Default Wrong Interop Version of Excel loads - 04-05-2007 , 05:08 PM






I have both Office 2003 and 2007 on my desktop.

I am tryin to force VS 2005 to use the 2003 version bit keeps getting a
refernce to 2007

Specifically:

When I select Excel 11.0 object library it references:

C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.E xcel\12.0.0.0__71e9bce111e9429c\Microsoft.Office.I nterop.Excel.dll

The runtime machine for this app only has office 2003 so the dll is not
found and an exception results

Reply With Quote
  #2  
Old   
=?Utf-8?B?U3RlcGhlbg==?=
 
Posts: n/a

Default RE: Wrong Interop Version of Excel loads - 06-08-2007 , 10:08 AM






George,

did you get to the bottom of this problem? I have precisely the same issue
myself. I notice you posted this a month ago. Has nobody come up with a
resolution to the problem?
--
Stephen
there are 10 types of people in the world, those that understand binary and
those that don''t


"george" wrote:

Quote:
I have both Office 2003 and 2007 on my desktop.

I am tryin to force VS 2005 to use the 2003 version bit keeps getting a
refernce to 2007

Specifically:

When I select Excel 11.0 object library it references:

C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.E xcel\12.0.0.0__71e9bce111e9429c\Microsoft.Office.I nterop.Excel.dll

The runtime machine for this app only has office 2003 so the dll is not
found and an exception results

Reply With Quote
  #3  
Old   
=?Utf-8?B?Z2Vvcmdl?=
 
Posts: n/a

Default RE: Wrong Interop Version of Excel loads - 06-08-2007 , 10:47 AM



I just uninstalled office 2007 it was the only way.

"Stephen" wrote:

Quote:
George,

did you get to the bottom of this problem? I have precisely the same issue
myself. I notice you posted this a month ago. Has nobody come up with a
resolution to the problem?
--
Stephen
there are 10 types of people in the world, those that understand binary and
those that don''t


"george" wrote:

I have both Office 2003 and 2007 on my desktop.

I am tryin to force VS 2005 to use the 2003 version bit keeps getting a
refernce to 2007

Specifically:

When I select Excel 11.0 object library it references:

C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.E xcel\12.0.0.0__71e9bce111e9429c\Microsoft.Office.I nterop.Excel.dll

The runtime machine for this app only has office 2003 so the dll is not
found and an exception results

Reply With Quote
  #4  
Old   
=?Utf-8?B?U3RlcGhlbg==?=
 
Posts: n/a

Default RE: Wrong Interop Version of Excel loads - 06-08-2007 , 11:09 AM



thanks. That's not really an option for me so I'm hoping that someone will
come up with a way round it.

I've posted the question on the MSDN forum, here's the link if you're
interested.

http://forums.microsoft.com/MSDN/Sho...08478&SiteID=1

--
Stephen
there are 10 types of people in the world, those that understand binary and
those that don''t


"george" wrote:

Quote:
I just uninstalled office 2007 it was the only way.

"Stephen" wrote:

George,

did you get to the bottom of this problem? I have precisely the same issue
myself. I notice you posted this a month ago. Has nobody come up with a
resolution to the problem?
--
Stephen
there are 10 types of people in the world, those that understand binary and
those that don''t


"george" wrote:

I have both Office 2003 and 2007 on my desktop.

I am tryin to force VS 2005 to use the 2003 version bit keeps getting a
refernce to 2007

Specifically:

When I select Excel 11.0 object library it references:

C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.E xcel\12.0.0.0__71e9bce111e9429c\Microsoft.Office.I nterop.Excel.dll

The runtime machine for this app only has office 2003 so the dll is not
found and an exception results

Reply With Quote
  #5  
Old   
=?Utf-8?B?U3RlcGhlbg==?=
 
Posts: n/a

Default RE: Wrong Interop Version of Excel loads - 07-31-2007 , 09:06 AM



I received this solution to the problem from the Microsoft Communities Team...

This binding redirect policy is configured in a XML file which is actually
the publisher policy configuration.
You can open and edit this file using the following command in your
console window like this:
notepad.exe
C:\windows\assembly\GAC\Policy.11.0.Microsoft.Offi ce.Interop.Excel\12.0.0.0__71e9bce111e9429c\Policy .11.0.Microsoft.Office.Interop.Excel.config

After you opened the file, you can directly edit the binding policy, just
suit your self.

remove the row that reads

<bindingRedirect oldVersion="11.0.0.0"
newVersion="12.0.0.0"></bindingRedirect>


--
Stephen
there are 10 types of people in the world, those that understand binary and
those that don''t


"Stephen" wrote:

Quote:
thanks. That's not really an option for me so I'm hoping that someone will
come up with a way round it.

I've posted the question on the MSDN forum, here's the link if you're
interested.

http://forums.microsoft.com/MSDN/Sho...08478&SiteID=1

--
Stephen
there are 10 types of people in the world, those that understand binary and
those that don''t


"george" wrote:

I just uninstalled office 2007 it was the only way.

"Stephen" wrote:

George,

did you get to the bottom of this problem? I have precisely the same issue
myself. I notice you posted this a month ago. Has nobody come up with a
resolution to the problem?
--
Stephen
there are 10 types of people in the world, those that understand binary and
those that don''t


"george" wrote:

I have both Office 2003 and 2007 on my desktop.

I am tryin to force VS 2005 to use the 2003 version bit keeps getting a
refernce to 2007

Specifically:

When I select Excel 11.0 object library it references:

C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.E xcel\12.0.0.0__71e9bce111e9429c\Microsoft.Office.I nterop.Excel.dll

The runtime machine for this app only has office 2003 so the dll is not
found and an exception results

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.