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

1.1 to 1.0

Nak
Hi there,

I was wondering if it was possible to reference a 1.1 Framework version
DLL in a 1.0 application if the 1.1 DLL is 1.0 compatible? Cheers in
advance.

Nick.
Nov 20 '05 #1
12 991
Nak
Ignore that one, SharpDevelop has a feature that VB.NET could do with,
compilation for other Framework versions, nice.

Nick.

"Nak" <a@a.com> wrote in message
news:OG****************@tk2msftngp13.phx.gbl...
Hi there,

I was wondering if it was possible to reference a 1.1 Framework version DLL in a 1.0 application if the 1.1 DLL is 1.0 compatible? Cheers in
advance.

Nick.

Nov 20 '05 #2
* "Nak" <a@a.com> scripsit:
I was wondering if it was possible to reference a 1.1 Framework version
DLL in a 1.0 application if the 1.1 DLL is 1.0 compatible? Cheers in
advance.


/Why?/ If the DLL is a .NET 1.1 assembly, .NET 1.1 should be installed
(it's not mandatory in some cases, but recommended), then the
application using the DLL can be a .NET 1.1 assembly too...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #3
ur framework comes with both 1.1 and 1.0 in ur folder

Nak wrote:
Hi there,

I was wondering if it was possible to reference a 1.1 Framework version
DLL in a 1.0 application if the 1.1 DLL is 1.0 compatible? Cheers in
advance.

Nick.


Nov 20 '05 #4
Nak
Herfried,
/Why?/ If the DLL is a .NET 1.1 assembly, .NET 1.1 should be installed
(it's not mandatory in some cases, but recommended), then the
application using the DLL can be a .NET 1.1 assembly too...


LOL!

Imagine this Herfried....

1) I posess VB.NET Standard 2002 (Which I have mentioned many a time,
and raised many discussions on)
2) I have a very small C# DLL that I havent converted to VB.NET as yet
3) The DLL is written using the new version of SharpDevelop which
compiles for version 1.1 of the Framework by default
4) The DLL and main executable are incompattable on a machine with both
Frameworks installed (As is the case on my machine) As each assembly uses
the Framework in which it was compiled for, this causes an exception to
occur unfortunately :-(

I have solved my problem now anyway as SharpDevelop allows for
compilation onto either Frameworks, which is very nice. Before I new this
feature existed I had to use the old version of SharpDevelop which was a bit
buggy and lacked loads of the current features, so I am happy that I can use
the new one now :-)

Nick.
Nov 20 '05 #5
* "Nak" <a@a.com> scripsit:
/Why?/ If the DLL is a .NET 1.1 assembly, .NET 1.1 should be installed
(it's not mandatory in some cases, but recommended), then the
application using the DLL can be a .NET 1.1 assembly too...
LOL!

Imagine this Herfried....

1) I posess VB.NET Standard 2002 (Which I have mentioned many a time,
and raised many discussions on)


OK, that's a reason!
I have solved my problem now anyway as SharpDevelop allows for
compilation onto either Frameworks, which is very nice.


:-)

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #6
Nick,

Do you have this link?

http://msdn.microsoft.com/library/de...leroptions.asp

Cor
Nov 20 '05 #7
In article <eN**************@TK2MSFTNGP12.phx.gbl>, Nak wrote:
Herfried,
/Why?/ If the DLL is a .NET 1.1 assembly, .NET 1.1 should be installed
(it's not mandatory in some cases, but recommended), then the
application using the DLL can be a .NET 1.1 assembly too...
LOL!

Imagine this Herfried....


<snip>
4) The DLL and main executable are incompattable on a machine with both
Frameworks installed (As is the case on my machine) As each assembly uses
the Framework in which it was compiled for, this causes an exception to
occur unfortunately :-(


Hmmm, did you try telling the dll compiled on 1.1 to use the 1.0
framework? I have a windows service that was developed on 1.1 running
on a box with the 1.0 framework. You should just have to setup an app.config
file - as long as the dll doesn't use any 1.1 specific classes or
methods.

--
Tom Shelton [MVP]
Nov 20 '05 #8
Nick,
Yes!

You need to add an app.config to your .exe, in the app.config. you need to
add all the entries that will redirect your 1.1. assembly and all the
assemblies that it references to 1.0.

See the referenced articles at:
http://msdn.microsoft.com/library/de...ecutiontop.asp

Note if the 1.1 assembly has a designer, I have not seen a reliable method
of using the designer in VS.NET 2002...

Hope this helps
Jay

"Nak" <a@a.com> wrote in message
news:OG****************@tk2msftngp13.phx.gbl...
Hi there,

I was wondering if it was possible to reference a 1.1 Framework version DLL in a 1.0 application if the 1.1 DLL is 1.0 compatible? Cheers in
advance.

Nick.

Nov 20 '05 #9
Nak
Hi Jay,
Yes!

You need to add an app.config to your .exe, in the app.config. you need to
add all the entries that will redirect your 1.1. assembly and all the
assemblies that it references to 1.0.

See the referenced articles at:
http://msdn.microsoft.com/library/de...ecutiontop.asp
Note if the 1.1 assembly has a designer, I have not seen a reliable method
of using the designer in VS.NET 2002...


Aaah, that is good to know, I wasn't aware of this one. Although I have
used a different solution for now, as making the entire solution suitable
for 1.0 of the framework only as the majority of my project is. Hopefully I
shall upgrade my IDE one day and I wont need to do this. But this is
definitely good information, so this would mean that I can downgrade any
assembly to 1.0 without recompiling? Handy if the assembly is not mine,
that is for sure!

Nick.
Nov 20 '05 #10
Nak
Hi Tom,
Hmmm, did you try telling the dll compiled on 1.1 to use the 1.0
framework? I have a windows service that was developed on 1.1 running
on a box with the 1.0 framework. You should just have to setup an app.config file - as long as the dll doesn't use any 1.1 specific classes or
methods.


I've written a reply to Jay in response to your 2 answers, but it is
directed towards *you* also. Cheers for the information, this is quite
handy to know.

Nick.
Nov 20 '05 #11
Nick,
But this is
definitely good information, so this would mean that I can downgrade any
assembly to 1.0 without recompiling? Yes, any assembly that does not require 1.1 specific objects or methods can
be run on 1.0 without recompiling, if there is a 1.1 specific object or
method, I would expect it not to load, or simply fail (exception) when it
gets to that statement. The following site lists changes from 1.0 to 1.1
along with the new 1.1 to 2.0 changes.

http://www.gotdotnet.com/team/changeinfo/default.aspx
Handy if the assembly is not mine, Actually its also handy if the assembly is yours and it needs to be deployed
to a machine with 1.0 only. VS.NET 2003 has an option under the Project
Properties that will generate all the app.config file settings for you.

Hope this helps
Jay

"Nak" <a@a.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... Hi Jay,
Yes!

You need to add an app.config to your .exe, in the app.config. you need to add all the entries that will redirect your 1.1. assembly and all the
assemblies that it references to 1.0.

See the referenced articles at:

http://msdn.microsoft.com/library/de...ecutiontop.asp

Note if the 1.1 assembly has a designer, I have not seen a reliable method of using the designer in VS.NET 2002...


Aaah, that is good to know, I wasn't aware of this one. Although I have
used a different solution for now, as making the entire solution suitable
for 1.0 of the framework only as the majority of my project is. Hopefully

I shall upgrade my IDE one day and I wont need to do this. But this is
definitely good information, so this would mean that I can downgrade any
assembly to 1.0 without recompiling? Handy if the assembly is not mine,
that is for sure!

Nick.

Nov 20 '05 #12
Nak
Cheers again Jay!

:-)

Nick.

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:un*************@tk2msftngp13.phx.gbl...
Nick,
But this is
definitely good information, so this would mean that I can downgrade any
assembly to 1.0 without recompiling? Yes, any assembly that does not require 1.1 specific objects or methods

can be run on 1.0 without recompiling, if there is a 1.1 specific object or
method, I would expect it not to load, or simply fail (exception) when it
gets to that statement. The following site lists changes from 1.0 to 1.1
along with the new 1.1 to 2.0 changes.

http://www.gotdotnet.com/team/changeinfo/default.aspx
Handy if the assembly is not mine, Actually its also handy if the assembly is yours and it needs to be

deployed to a machine with 1.0 only. VS.NET 2003 has an option under the Project
Properties that will generate all the app.config file settings for you.

Hope this helps
Jay

"Nak" <a@a.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi Jay,
Yes!

You need to add an app.config to your .exe, in the app.config. you need
to
add all the entries that will redirect your 1.1. assembly and all the
assemblies that it references to 1.0.

See the referenced articles at:

http://msdn.microsoft.com/library/de...ecutiontop.asp
Note if the 1.1 assembly has a designer, I have not seen a reliable method of using the designer in VS.NET 2002...


Aaah, that is good to know, I wasn't aware of this one. Although I have
used a different solution for now, as making the entire solution suitable for 1.0 of the framework only as the majority of my project is.

Hopefully I
shall upgrade my IDE one day and I wont need to do this. But this is
definitely good information, so this would mean that I can downgrade any
assembly to 1.0 without recompiling? Handy if the assembly is not mine,
that is for sure!

Nick.


Nov 20 '05 #13

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

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the...
4
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
1
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url ...
2
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value...
3
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the...
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...
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
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...
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...

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.