Gotcha: Converting .NET 1.1 website to .NET 2.0 Web Application

Remember that when you’re converting from an ASP.NET 1.1 web site
project to an ASP.NET 2.0 web application, you need to configure IIS to
run as an application, and run in a .NET 2.0 app pool.

Without doing this, you’ll end up with a broken error like this:

Server Error in ‘/’ Application.

Parser Error=20
Description: An error occurred during the parsing of a resource required
to service this request. Please review the following specific parse
error details and modify your source file appropriately.=20

Parser Error Message: Could not load type ‘Project1._Default’.

Source Error:=20

Line 1: < %@ Page Language=3D"C#" AutoEventWireup=3D"true"
CodeBehind=3D"Default.aspx.cs" Inherits=3D"Project1._Default"%>
Line 2: =20
Line 3:

Source File: /project1/default.aspx Line: 1=20

Version Information: Microsoft .NET Framework Version:2.0.50727.1433;
ASP.NET Version:2.0.50727.1433


Related posts:

  1. Converting an ASP.NET Website to Web-Application I've had to do this so many times in the...
  2. Switching an IIS website home directory from the command line The title says it all. The problem was simple -...
  3. Shadow Copy Cache Hell This post may be terse and may possibly contain profanity....
  4. VS2005 IIS Binding Can be removed In Visual Studio 2005 SP1, the new "web-application" project type...
  5. Mapping Database Tables To Objects In my last article on the topic of database development,...

One Response to “Gotcha: Converting .NET 1.1 website to .NET 2.0 Web Application”

  1. The Tomes Of Experience » Converting an ASP.NET Website to Web-Application

    [...] I’ve had to do this so many times in the past, i ended up creating my own instructions and gotchas [...]

Leave a Reply


The Tomes Of Experience - powered by WordPress (themed by selder) 0.776 seconds.
15:36:50 06-01-2009