Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgrading ASP.NET from version 1.1 to 2.0 - Any Gotchas?

I know we are really behind the times here, but we are just about to upgrade from .NET 1.1 to .NET 2.0.

Thank you for your sympathy.

Anyhow, are there any gotchas we should look out for?
Do you have any general advice before we jump in?

Please do not post telling me to go straight to 3.5: 2.0 is all we're allowed!

We're using mostly C#.

like image 494
AJ. Avatar asked Mar 02 '23 04:03

AJ.


2 Answers

Yes. The most important thing for you to know is to use a Web Application Project, not a Web Site. Web Sites use a totally different compilation model and migration is pretty much a disaster. Web Application Projects are much more similar to how things worked in 1.1.

We also had an intermittent problem with redirecting from the login screen, but according to Google, we were basically the only ones who had that problem - we've since resolved it.

Most of the other problems we ran into were small and easy to navigate, and the overall experience was a net improvement.

like image 132
Greg Smalter Avatar answered Mar 05 '23 17:03

Greg Smalter


Here is my recommendation before upgrading:

  • If you are used to use Visual Studio 2003, you will need to go for VS2005. You will have to convert the old solutions and projects so that it will be compatible with VS2005. Make sure to have a backup of the project you're going to convert so that you can roll back or even use it as source for any modification you may need to the converted projects.
  • If you're developing web applications using .NET 1.1, make sure that all the virtual directories and applications in the IIS is configured to work with ASP.NET 2.0. You may need also to configure a new Application Pool for your .NET 2.0 applications.
  • If you're using any third party libraries in your .NET 1.1 projects, you may need to confirm its compatibility with .NET 2.0 projects. Some old libraries used in .NET 1.1 are not compatible with 2.0.
like image 25
mohammedn Avatar answered Mar 05 '23 15:03

mohammedn