Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / August 2005

Tip: Looking for answers? Try searching our database.

Reference VS2005 assembly from VS2003 project

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jody Gelowitz - 31 Aug 2005 15:20 GMT
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
Jody Gelowitz - 31 Aug 2005 16:02 GMT
I have tried making the VS2005 assembly COM Visible and Register for COM
interop, but that did not work.

Jody

> Is this possible?
>
[quoted text clipped - 10 lines]
> Thanks,
> Jody
Mattias Sjögren - 31 Aug 2005 17:11 GMT
>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

Signature

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

Jody Gelowitz - 31 Aug 2005 18:42 GMT
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

>>Do I need to make my VS2005 assembly "COM Visible" and "Register for COM
>>interop" in order for this to work?
[quoted text clipped - 3 lines]
>
> Mattias
Mattias Sjögren - 31 Aug 2005 21:44 GMT
>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

Signature

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


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.