PC Review


Reply
Thread Tools Rate Thread

How to call DLL developed in C# in VS 2005 from C# in VS 2003

 
 
=?Utf-8?B?QkY=?=
Guest
Posts: n/a
 
      24th Aug 2006
I have lots of C# applications developed in Visual Studio 2003 which I have
not migrated into VS 2005.
Now I need to call a C# DLL developed in VS 2005 from these C# applications
of VS 2003.

When I tried to add a reference from VS 2003, I got the following error
message:

A reference to 'xxxxxx.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 the file is accessible, and that is is a
valid assembly or COM component.

And I tried to use Assembly to load this VS 2005 DLL dynamically, I got
error message like "invalid assembly".

Does anybody know how to call VS 2005 DLL's from VS 2003 applications?

Thanks a lot.

 
Reply With Quote
 
 
 
 
Marc Gravell
Guest
Posts: n/a
 
      24th Aug 2006
You can't; you can only have one version of the CLR per process, and
the 2.0 dlls use IL instructions (and of course, references) that
simply aren't supported in the 1.0/1.1 CLRs.

You can, however, use 1.1 dlls in 2.0

Marc

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not able to load an add-in for outlook 2007 developed in VSTO 2005 Amrish Shah Microsoft Outlook Program Addins 2 10th May 2010 02:54 PM
Developed in 2003, run in 2000 Herb Microsoft Access 5 4th Sep 2008 02:42 AM
Calling functions developed in VSTO 2005 from Office Excel 2003 =?Utf-8?B?TmVpbCBKYW5hYmk=?= Microsoft Excel Programming 0 16th Mar 2006 10:50 AM
Use FP 2003 on a site developed with other software? Serious_Practitioner Microsoft Frontpage 5 18th Jan 2005 02:25 PM
How to use an ocx or a dll developed by EVC4 in .NET 2003 C# ? xuning Microsoft Dot NET Compact Framework 2 29th Jul 2003 11:49 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:59 PM.