Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
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
 
Old October 13th, 2004, 07:19 PM
Registered User
 
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default .NET 2002 vs .NET 2003

Will a VB.net application compiled for .NET framework 1.0 run on the .NET framework 1.1?



 
Old October 13th, 2004, 11:10 PM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

No

Regards
Ganesh
 
Old October 14th, 2004, 07:17 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default


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.

 
Old October 14th, 2004, 07:23 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

He was asking about the application and not the project

Regards
Ganesh
 
Old October 14th, 2004, 08:19 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

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
 
Old October 14th, 2004, 09:31 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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.
 
Old October 14th, 2004, 10:35 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

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...
 
Old October 14th, 2004, 11:28 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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.
 
Old October 14th, 2004, 11:15 PM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

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
 
Old October 20th, 2004, 01:36 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I run VB .net 2005 with DOT NET 2003 APPLICATI kadesskade BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 2 August 8th, 2006 05:14 AM
Class templates VS.Net 2002 vs. VS.NET 2003 boksi General .NET 4 May 4th, 2005 11:58 AM
VS.NET 2005 vs. VS.NET 2002 boksi Visual Studio 2005 1 April 6th, 2005 04:52 AM
vb.net 2002 OR vb.net 2003 metalaaron VB.NET 2002/2003 Basics 0 August 5th, 2003 10:00 AM
vb.net 2002 - vb.net 2003 book metalaaron Wrox Book Feedback 0 August 2nd, 2003 10:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.