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:

1 comment

Leave a Reply

Your email address will not be published. Required fields are marked *