473,395 Members | 1,403 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.

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 5128
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:
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.