Migration from ASP.NET 1.1 to ASP.NET 2.0

Although Visual Studio 2005 includes a conversion wizard for old projects, this does not work properly with web applications, because Microsoft removed support for web applications at the beginning. We don’t have a web project, we have a web site. The wizard tries to convert all the files to the new framework. This fails at first compilation, so many errors reported and I don’t want to fix all of these errors, since there exist an easier solution.

ASP.NET team stepped back and gave support for web projects through an add-in for Visual Studio 2005. Visual Studio 2005 Web Application Projects is the easiest way to migrate from ASP.NET 1.1 to ASP.NET 2.0. Because we are able to open our project file, visual studio converts only the project file. So all the files in ASP.NET 1.1 stays and only the project file changes. This is also useful because my code under source control doesn’t have to change.

However in Windows Vista, you don’t have the administrator rights by default and the installation of WAP fails. The solution to that problem is already defined here. The process is simply to write a bat file and run the bat file with administrator rights.

msiexec /i WebApplicationProjectSetup.msi

5 Comments

  1. Daniel Brownell says:

    God I hope this works!!!!

  2. Daniel Brownell says:

    This seemed to work fine. Thanks for the information it was very helpful. Is there a similar plug-in for VS 2008 to further convert to .NET 3.5? Now that I have converted the code from .NET 1.1 to .NET 2.0 I am hoping I can convert it to .NET 3.5. Any and all help is highly appreciated.

  3. Can says:

    I don’t think you would need for VS2008, as it can target both frameworks. Also the resulting binary should be fine, as it compiles to thre same CLR.
    You just need to have the references in the GAC or the application directory in case you use 3.5

  4. Daniel Brownell says:

    I am trying to use .NET 3.5 but am getting reference errors because my business components are in a different project from my web components. I tried referencing the business layer project from the asp project but it is not working. How do i add the reference to the application directory?

  5. Daniel Brownell says:

    The error I get is XXXXXXX is ambiguous in the namespace xxxxxxxxxxxx

Leave a Reply