473,327 Members | 2,118 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,327 software developers and data experts.

Reference VS2005 assembly from VS2003 project

Is this possible?

I have compiled an assembly in VS2005 and am trying to add a reference to
that assembly from my VS2003 project. The error that I am getting is:
A reference to '{path to vs2005 dll}' could not be added. This is not a
valid assembly or COM component. ONly assemblies with extension 'dll' and
COM components can be referenced. Please make sure that hte file is
accessible, and that it is a valid assembly or COM component.

Do I need to make my VS2005 assembly "COM Visible" and "Register for COM
interop" in order for this to work?

Thanks,
Jody
Aug 31 '05 #1
4 5124
I have tried making the VS2005 assembly COM Visible and Register for COM
interop, but that did not work.

Jody
"Jody Gelowitz" <jg**************@blah.leevalley.com> wrote in message
news:OF**************@TK2MSFTNGP09.phx.gbl...
Is this possible?

I have compiled an assembly in VS2005 and am trying to add a reference to
that assembly from my VS2003 project. The error that I am getting is:
A reference to '{path to vs2005 dll}' could not be added. This is not a
valid assembly or COM component. ONly assemblies with extension 'dll' and
COM components can be referenced. Please make sure that hte file is
accessible, and that it is a valid assembly or COM component.

Do I need to make my VS2005 assembly "COM Visible" and "Register for COM
interop" in order for this to work?

Thanks,
Jody

Aug 31 '05 #2
Do I need to make my VS2005 assembly "COM Visible" and "Register for COM
interop" in order for this to work?


No, you need to switch to VS2005 / .NET 2.0 for the client too (the
referencing project).
Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Aug 31 '05 #3
I have not tried this yet, but does it work in the opposite direction where
a VS2005 project references a VS2003 assembly?

I was thinking about taking my VS2003 project and creating an interface for
it, then create a shell EXE in VS2005 to call the VS2003 assembly.

Jody

"Mattias Sjögren" <ma********************@mvps.org> wrote in message
news:Or**************@TK2MSFTNGP09.phx.gbl...
Do I need to make my VS2005 assembly "COM Visible" and "Register for COM
interop" in order for this to work?


No, you need to switch to VS2005 / .NET 2.0 for the client too (the
referencing project).
Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Aug 31 '05 #4
>I have not tried this yet, but does it work in the opposite direction where
a VS2005 project references a VS2003 assembly?


Yes that should work fine.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Aug 31 '05 #5

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

Similar topics

5
by: serge calderara | last post by:
Dear all, I do not see the difference between Referencing an assembliy for use in my project and Register it on a page ? At the end if I want to use assembly functionnality , I need anyway to...
4
by: Jody Gelowitz | last post by:
Is this possible? I have compiled an assembly in VS2005 and am trying to add a reference to that assembly from my VS2003 project. The error that I am getting is: A reference to '{path to vs2005...
4
by: Troy Dot Net | last post by:
When trying to add a reference to a DLL (made with VS2005TS) to a VS2003 project, I receive the following error popup: A reference to 'assemblyname.exe' could not be added. This is not a valid...
8
by: PJ | last post by:
How can I get a reference to the master page class? It is defined as a partial class, but I cannot seem to type a variable to the name of the partial class? The compiler continually shows "The...
3
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
4
by: Bob | last post by:
Hi, In VS2003 conditional compilation constants and their state could be defined at project level. I was using this to control what features where offered by various builds. i.e....
1
by: Vipul Pathak | last post by:
Hi Every one, I am working on deployment of a library. When the library installs on a user's machine, I want that the installed assemblies should get listed in the "Add Reference" (AddRef)...
4
by: WXS | last post by:
In a case you have Project/Assembly A references Project/Assembly B which References Project/Assembly C. Let's say Project A needs be and references it directly. Unknown to A, B needs project C's...
8
by: =?Utf-8?B?UGV0ZXJX?= | last post by:
I install Visual Studio 2005 Pro on Vista. I open and migrate a 2003 web project to 2005. I attempt to browse an aspx file from the Solution Exploer. It displays a blank html page. I create a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.