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

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

BF
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.

Aug 24 '06 #1
1 1585
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

Aug 24 '06 #2

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

Similar topics

0
by: Anil0920 | last post by:
I have a very serious problem which really needs to be solved. We had a huge number of projects in 2002 that we recently converted to VS.NET 2003. The conversion was smooth and all is working well....
0
by: Francesco Di Cerbo | last post by:
Hello, we are calling for Experience Report for OSS 2005, The First International Conference on Open Source Systems. It's a chance for OSS developers to meet industrial and government needs, and...
3
by: David N | last post by:
Hi All, I just wonder if in C#, I can develop a user defined control that can call its parent function which is not yet developed. For example, how do I make my user control call a...
2
by: markoZ | last post by:
Hi. We have developed a .NET web service. The service executes a SQL on the SQL server. The first call of the webservice takes very long but the other calls dont. Why is that and how can we...
0
by: pumaken68 | last post by:
Does anyone has experience with calling web service from pocket pc 2003 project in VS 2005 environment? I just migrated a smart device(pocket pc 2003) solution from VS 2003 to VS 2005. There are...
4
by: Paul | last post by:
Hi, I've been struggling with this today, I'm developing a DotNet2.0 website in C# that needs to call a long running data query. Obviously this is a good candidate for an Asynchronous call, so...
1
by: adnaan.khalid | last post by:
Hi, I have an web site application developed in ASP .NET 2.0. This application consumes a COM dll (which needs to be registered in the server- regsvr32 utility) for a functionality. The whole...
9
by: wandii | last post by:
Hi, I have written couple of projects which include several crystal reports in VS.net 2003 (VB.Net) and company would like to move to VS 2005. What does it take to convert to Visual Studio.Net...
2
by: amievil | last post by:
wow... I think I'm in a trouble now. My boss is a web programmer. She said, the client asked her to develop a " dot net C" application. So, she bought Microsoft visualstudio .NET 2003 and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.