Connecting Tech Pros Worldwide Help | Site Map

Reference VS2005 assembly from VS2003 project

  #1  
Old August 31st, 2005, 03:25 PM
Jody Gelowitz
Guest
 
Posts: n/a
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


  #2  
Old August 31st, 2005, 04:15 PM
Jody Gelowitz
Guest
 
Posts: n/a

re: Reference VS2005 assembly from VS2003 project


I have tried making the VS2005 assembly COM Visible and Register for COM
interop, but that did not work.

Jody


"Jody Gelowitz" <jgelowitz_nospam@blah.leevalley.com> wrote in message
news:OF$RgcjrFHA.4044@TK2MSFTNGP09.phx.gbl...[color=blue]
> 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
>[/color]


  #3  
Old August 31st, 2005, 05:25 PM
Mattias Sjögren
Guest
 
Posts: n/a

re: Reference VS2005 assembly from VS2003 project


[color=blue]
>Do I need to make my VS2005 assembly "COM Visible" and "Register for COM
>interop" in order for this to work?[/color]

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.
  #4  
Old August 31st, 2005, 06:55 PM
Jody Gelowitz
Guest
 
Posts: n/a

re: Reference VS2005 assembly from VS2003 project


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" <mattias.dont.want.spam@mvps.org> wrote in message
news:OrlJBbkrFHA.1252@TK2MSFTNGP09.phx.gbl...[color=blue]
>[color=green]
>>Do I need to make my VS2005 assembly "COM Visible" and "Register for COM
>>interop" in order for this to work?[/color]
>
> 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.[/color]


  #5  
Old August 31st, 2005, 09:55 PM
Mattias Sjögren
Guest
 
Posts: n/a

re: Reference VS2005 assembly from VS2003 project


>I have not tried this yet, but does it work in the opposite direction where[color=blue]
>a VS2005 project references a VS2003 assembly?[/color]

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.
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
problems upgrading vs2003 project to vs2005 =?Utf-8?B?UGF1bA==?= answers 4 September 30th, 2008 08:35 PM
calling .net 2.0 assembly from .net 1.1 linda.chen@faa.gov answers 1 June 12th, 2007 05:35 PM
Upgraded Web Service from VS2003 to VS2005 and all Hell breaks loose! Joseph Geretz answers 15 July 24th, 2006 11:05 PM
Reference VS2005 assembly from VS2003 project Jody Gelowitz answers 4 November 22nd, 2005 10:54 PM