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

Application referencing dll build with different version framwork

Hi,

I was wondering what happens if an .net exe compiled with 1.1 uses one
dll compiled with 2.0 and one dll compiled with 1.1.
Supposing that the target machine has both 1.1 and 2.0. Does the 2.0
dll correctly use the .net 2.0 system's dll? and the 1.1 correclty use
1.1 dlls?

I'm know how exe choose .net version. But I cant figureout what happens
when the exe uses dll compiled with different versions.
Can some clearme it out?

thanks,
Al

Oct 7 '05 #1
1 1908
> I was wondering what happens if an .net exe compiled with 1.1 uses one
dll compiled with 2.0 and one dll compiled with 1.1.
Supposing that the target machine has both 1.1 and 2.0. Does the 2.0
dll correctly use the .net 2.0 system's dll? and the 1.1 correclty use
1.1 dlls?


It depends on which version of the CLR was loaded by the Exe. There can only
be one runtime version loaded into the process and the corresponding version
of the system libraries will be used.

If the Exe is loaded with the v2.0 runtime, the Dll compiled with v1.1
should load and hopefully run correctly, but will use the v2.0 libraries.

If the Exe is loaded with the v1.1 runtime, you'll get an excepion trying to
load any v2.0 assembly.
Mattias

Oct 7 '05 #2

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

Similar topics

2
by: Harold Crump | last post by:
Greetings, I am building a database-driven PHP application. Part of that app needs to run over SSL for gathering private data. Now, when someone purchases a certificate, the domain name is...
10
by: John Underwood | last post by:
Can I use python23_d and python23 to develop an extension for a commercial application uses python22.dll? (Providing that I do not use any new features found only in 2.3.) I would bulld version...
1
by: loretta.stokes | last post by:
I manage our nightly builds for all of our products. Since we have added our .NET assemblies to our nightly build, it has been a learning process. I have come across a couple of situations that I...
6
by: Javier Cortés Cortés | last post by:
i am getting this error when i am trying to access any file(with the ext. aspx) from my remote server. the error is : Server Error in '/' Application....
21
by: Chris | last post by:
I'm trying to get an existing VS.NET project up on my Win2003 server and I get the following error (on the actual website page): "It is an error to use a section registered as...
1
by: al_qwertyuiop | last post by:
Hi, I was wondering what happens if an .net exe compiled with 1.1 uses one dll compiled with 2.0 and one dll compiled with 1.1. Supposing that the target machine has both 1.1 and 2.0. Does the...
1
by: DR | last post by:
when i reference a com object by regsvr32 it then find it in the COM tab, it works ok. but when i reference a com object by referencing the .dll file i get this error in my C# application: ...
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...
5
by: Michael Howes | last post by:
I'm upgrading a VS 2003/.Net 1.1 ASP.Net application to VS 2008/.Net 3.0 The application uses an older version of the Microsoft Data Blocks for database access. The version in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.