473,786 Members | 2,771 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Forcing a DLL to use a particular .NET version

mz
I have .NET frameworks 1.1 and 2.0 on the same server. I am going to create
a class which I will compile as a separate DLL to be used by a number of
different applications. I want the DLL to use the 2.0 framework even if it's
being called by a program running under the 1.1 framework. How can I force
the DLL to use the 2.0 Framework.

Thanks,

Mark Zeiger
Mar 31 '06 #1
2 1302
Just compile it in 2.0

btw: I am not shure if you can call a 2.0 code from 1.1

Mar 31 '06 #2
As far as I know, all libraries will run under the same version of the
framework as the application that is calling them.
"mz" <mz*****@optonl ine.net> wrote in message
news:cw******** *****@fe10.lga. ..
I have .NET frameworks 1.1 and 2.0 on the same server. I am going to create
a class which I will compile as a separate DLL to be used by a number of
different applications. I want the DLL to use the 2.0 framework even if
it's being called by a program running under the 1.1 framework. How can I
force the DLL to use the 2.0 Framework.

Thanks,

Mark Zeiger

Mar 31 '06 #3

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

Similar topics

3
1772
by: D. Alvarado | last post by:
Hello, I have a page that generates a text file (but writes the file with the ".csv" extension) and then I redirect the user so he can save the file header("Location: $my_csv_file"); However, the file appears as text in the browser and I would prefer that the gray "Download this file" box pop up. How could I pull this off, or is this really more dependent on client browser settings?
4
1468
by: Bernard Cosell | last post by:
I've been through the docs and I'm more than a little confused: I'd like to run PHP apps as ordinary CGI programs. I though/hoped there'd be a command line switch that'd tell PHP to run in SERVER mode, but I couldn't find it... Is there a way to do that? Thanks! /bernie\
40
3056
by: Neo The One | last post by:
I think C# is forcing us to write more code by enforcing a rule that can be summarized as 'A local variable must be assgined *explicitly* before reading its value.' If you are interested in what I mean, please look at this feedback my me: http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=3074c204-04e4-4383-9dd2-d266472a84ac If you think I am right, please vote for this feedback.
10
3516
by: appdevtech | last post by:
A little background… We have multiple web servers in a farm and are starting to upgrade some applications to 1.1 by re-compiling in VS2003. One of the things out of our direct control is the framework version on the application directory. I'm worried that in the future some directories could be reverted back to 1.0 on all or some of the servers. I was hoping I could force the applications I choice to always use 1.1 by putting this in...
2
1446
by: kmsuzuki | last post by:
I have a Windows Server 2003 + IIS6 with both .Net 1.1 and 2.0 installed. In the past, I've had no problems using the ASP.NET tab in the IIS Manager to specify which framework version a given application should use. I created a .Net 1.1 VB.NET web service in Visual Studio.NET 2003. I built it and then copied it to the web server described above, specifying in IIS Manager that it should use the 1.1. framework. When I try to run the...
18
7130
by: Zytan | last post by:
I just got a TypeInitializationException exception. Why it is a common cause for this? The InnerException is System.FormatException, although I don't see anything requesting something to be formatted. I'm trying to invoke the use of a class, to force its static c'tor to run, which will run its unit test. Is there a good way to force all class's static c'tors to be run on startup?
7
2606
by: dupuis.michael | last post by:
I'm taking over a large database that has multiple versions of the front end on the end users machines. What I'd like to do is be able to run code from the back end when they log in that forces them to update to the current front end so that I can keep them updated from then on via the front end. What I need is some way to make the back end execute code when they log in. Is that even possible?
2
1265
by: slolife | last post by:
I have an W2k3IIS server with .NET 1.1 and 2.0 installed. I have a website, which I'd like to run as 1.1. So I go to that website/app's properties, and on the ASP.NET tab, I select 1.1. I have a test page that triggers an event validation (which is a feature introduced in 2.0). I hit that test page and the error is generated. So apparently, the site (or, what it really looks like, is just the page) is still running in 2.0. So I add...
11
1742
by: Jon Mcleod | last post by:
I'm trying to wrap my ming around C#/CLR garbage collection. In an ASP.NET project, I'm having a problem because an object destructor is being called by another thread, long after my code is done. I'm wanting to know if I can force it to happen immediately (when the object goes out of scope) without going back and adding all of the required Dispose() calls.. public Method() { CustomClass o = new CustomClass(..);
0
9497
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9964
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6749
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4067
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.