 |
| General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category.
** PLEASE BE SPECIFIC WITH YOUR QUESTION **
When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

October 13th, 2004, 07:19 PM
|
|
Registered User
|
|
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
.NET 2002 vs .NET 2003
Will a VB.net application compiled for .NET framework 1.0 run on the .NET framework 1.1?
|
|

October 13th, 2004, 11:10 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
|
|
No
Regards
Ganesh
|
|

October 14th, 2004, 07:17 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
If you open it with VS.NET 2003 it will ask you to let it convert it to 2003 and warn you that it can't go back to 2002.
|
|

October 14th, 2004, 07:23 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
|
|
He was asking about the application and not the project
Regards
Ganesh
|
|

October 14th, 2004, 08:19 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
I would recompile it in VS.NET 2003 (if you have it) and that should make it compatible, provided there weren't any changes to your code as a result of the 1.1 framework. I don't see why it wouldn't be because Microsoft made most (if not all) of it backwards-compatible. Ganesh do you know something that I don't?
Brian
|
|

October 14th, 2004, 09:31 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Brian,
I know there are a few products out there with a 1.0 and a 1.1 version- including from microsoft.. so there has to be a difference?
Hal Levy
I am here to help you, not do it for you.
|
|

October 14th, 2004, 10:35 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
Obviously there is a difference, but I would think a 1.0 app still should run on 1.1, or at least work if recompiled in VS.NET 2k3...
|
|

October 14th, 2004, 11:28 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Even without recompiling, many .net 1 applications will run on 1.1
You can indicate in the application's config file what runtime is supported and/or required.
Take a look here: http://www.eggheadcafe.com/articles/20030412.asp
Even the reverse is possible. Quoted from the link: "However, allowing 1.1 applications to execute in the version 1.0 Framework is much more difficult."
So, it's difficult, but not impossible. To make it work, you have to consider the list of "breaking changes" http://www.gotdotnet.com/team/change...1/default.aspx
If you use something in 1.1 that's not supported in 1 or vice versa; otherwise there's a fair chance it will work.
I think the 2002/2003 versions of software are mainly for VS.NET. You can upgrade from 2002 to 2003 when you open a solution, but the other way around is not possible....
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

October 14th, 2004, 11:15 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Hal is right Brian...I sometimes get an error while trying to run an application compiled in 1.0 in 1.1. But once i load the project and do a recompile, it works okey.
Regards
Ganesh
|
|

October 20th, 2004, 01:36 PM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
Something import to consider: The original post asks about " VB.NET applications". In my development environment, all the .NET code is in ASP.NET using VB.NET. This I certainly regard as an application. Of course, I think most people assume the question regarded a windows forms application. As .NET development progresses (particularly as we move to longhorn applications) the line between web based and desktop based will get very fuzzy.
When you install .NET 1.1 on a web server, in probably 99% of the cases you won't have a problem running ASP.NET binaries compiled with 1.0. Yes, the 1.0 code will run on 1.1 framework (and vice versa). It will run on whatever framework is handling the web requests in IIS as long as there are no compatibility problems with the classes or namespaces. I've been developing a web site at home in 1.1 (VS 2003) and it's actually running on framework 2.0, no problems!
The differences between 2002 and 2003 that I am aware of are some security class issues and a few XML namespace issues. However they are pretty specific and isolated. It was shear luck that someone happened to have written some code that was using a class that had some obsolete methods in 1.1. Otherwise, I did a complete upgrade of quite a large body of code and didn't have problems.
|
|
 |