473,372 Members | 1,000 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,372 software developers and data experts.

Referencing 2.0 DLLS in 1.1

Hi,

I have a usercontrol built in .NET 2.0. I want to be able to use this 2.0
control in a .NET 1.1 project. I have both framworks installed on my machine(
and VS.net 2003 and 2005). When i try to add a reference to my 2.0 DLL in my
1.1 project. I get an error saying that it is not a valid assembly. Is it
possible to reference a 2.0 DLL in a 1.1 project? Any input will be
appreciated.

Thank You,
Vish
Dec 15 '05 #1
3 1086
Vish,

No, you can not. You will have to bring the 1.1 control to 2.0 in order
to do that. The metadata structure has been changed a little, and things
like generics would obviously not work.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Vish" <Vi**@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.com...
Hi,

I have a usercontrol built in .NET 2.0. I want to be able to use this 2.0
control in a .NET 1.1 project. I have both framworks installed on my
machine(
and VS.net 2003 and 2005). When i try to add a reference to my 2.0 DLL in
my
1.1 project. I get an error saying that it is not a valid assembly. Is it
possible to reference a 2.0 DLL in a 1.1 project? Any input will be
appreciated.

Thank You,
Vish

Dec 15 '05 #2
> 1.1 project. I get an error saying that it is not a valid assembly. Is it
possible to reference a 2.0 DLL in a 1.1 project? Any input will be
appreciated.

You could try to build a COM-wrapper (expose the DLL as a COM-object) and
use the COM-wrapper...
however, this limits a lot what you can do.

Dec 15 '05 #3

"MSDNAndi" <MS******@noemail.noemail> wrote in message
news:3D**********************************@microsof t.com...
1.1 project. I get an error saying that it is not a valid assembly. Is it
possible to reference a 2.0 DLL in a 1.1 project? Any input will be
appreciated.

You could try to build a COM-wrapper (expose the DLL as a COM-object) and
use the COM-wrapper...
however, this limits a lot what you can do.


No this won't work either, a v2 assembly can only be loaded by the V2 CLR.
Also, a .NET class is only exposed as a "COM" object to native COM clients,
but even in this case the v2 version of the CLR would be required.

Willy.
Dec 15 '05 #4

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

Similar topics

6
by: Jon | last post by:
I have 3 VB.net executables that reference the same 3 VB.Net DLLs. How is the best way to distribute the EXEs without putting 3 copies of of DLL on a user's machine. I looked into Private...
2
by: Jon Davis | last post by:
I have a full-blown application that consists of several (fifteen or so) assembly DLLs, each being a separate VS.NET project that outputs to the main DLL's bin directory. They are all strongly...
12
by: Mark Broadbent | last post by:
Hi guys, just going through remoting at the moment and a couple of questions relating to .net in general has surfaced. Firstly I have seen in the designer that for the namespace and many of its...
10
by: Doug Crabtree | last post by:
I am kinda new to the whole distribution process. I several programs that I am writing that use common .NET DLLs. I want each program to use the same DLLs in a "COMMON" folder. How do I get...
1
by: Manny Silva | last post by:
Hi, I'm trying to create a simple managed C++ application that will be a test UI around a couple of ATL COM DLL projects that I have created (all with VS2003). What I am attempting to do is...
4
by: Oenone | last post by:
Another VB6 feature that I'm missing in VB.NET is with regard to referencing projects vs. referencing DLLs. In VB6 I can reference my support library, Support.dll, and call its functions. If...
9
by: Brett Romero | last post by:
Say I have a library (A.dll) with a method that accepts a collection of a specific type. The type is defined in B.dll. In A.dll, I need to loop through this collection and reference fields of...
2
by: Jan | last post by:
Regarding my post "CSharpCodeProvider: referencing other generated "InMemory" assembly" 4/27/2006 and the blog from Greg Young http://geekswithblogs.net/gyoung/archive/2006/04/27/76533.aspx I...
2
by: Chris Ashley | last post by:
I've written a C++ Wrapper DLL which I need to add a reference to in my ASP.Net project. This in turn is dependent on the DLL it wraps which is in turn dependent on some other DLLs. When I...
3
by: =?Utf-8?B?a3lvbmc=?= | last post by:
Quick question. Say I have a project against the 2.0framework. I also have a dll compiled against 3.5. If I reference the 3.5 dll in the 2.0 project, how would that work? So I'm thinking that...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.