You receive an error message when you try to view an ASP.NET Web application on a computer that has the .NET Framework 2.0 installed
On This PageSYMPTOMSWhen you try to view a Microsoft ASP.NET Web application on a computer that has the Microsoft .NET Framework 2.0 installed, you may receive an error message that is similar to the following: Server Error in '/Staging' Application. This issue may occur in the following scenarios:Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Unrecognized attribute 'xmlns'. Source Error: Line 1: <?xml version="1.0"?> Line 2: <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> Line 3: <connectionStrings configSource="staging.config" /> Line 4: <system.web> Source File: C:\MyProjects\MyCompany\CompanySite_deploy\Staging\web.config Line: 2 Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
Note You may experience this issue even though the Web application does not use a Web.config file. If the Web application does not use a Web.config file, you may receive the following error message when the Web application calls a feature of the Microsoft .NET Framework 2.0: Parser Error CAUSEThis issue occurs if the application extensions for the IIS Web site are mapped to the Microsoft .NET Framework 1.1 or to the Microsoft .NET Framework 1.0. The .NET Framework 1.1 and the .NET Framework 1.0 cannot implement the configuration settings that are used by the .NET Framework 2.0. Note When you install ASP.NET 2.0, the application extensions for a root Web site are not automatically mapped to the .NET Framework 2.0 in IIS. This behavior is intended to make sure that the existing applications that use the .NET Framework 1.1 or the .NET Framework 1.0 will continue to work as expected. RESOLUTIONTo resolve this issue, use one of the following methods. Method 1: Configure the Web site to use ASP.NET 2.0
If ASP.NET 2.0 is not installedIf you have the .NET Framework 2.0 installed, and 2.0.50727 does not appear in the ASP.NET version box as described in step 4 in the "Method 1: Configure the Web site to use ASP.NET 2.0" section, follow these steps.Note These steps will install and register ASP.NET 2.0. However, this procedure will not modify any scriptmaps.
Method 2: Map the application extension to the .NET Framework 2.0
MORE INFORMATIONThis issue occurs because the project system does not perform version checking when you publish an ASP.NET Web application to a new Web site. When you open an existing Web site or create a new Web site in Visual Studio 2005, this issue does not occur. When you use ASP.NET in the .NET Framework 1.1 and in the .NET Framework 1.0, you cannot compile the application at runtime. ASP.NET 2.0 in the .NET Framework 2.0 provides the functionality to compile the application at runtime. Note When you create a new Web site or open an existing Web site that is mapped to the .NET Framework 1.1, the project system verifies the version of the .NET Framework that the Web site uses. REFERENCESFor more information about the changes in ASP.NET in the .NET Framework 2.0, visit the following Microsoft Developer Network (MSDN) Web site: http://msdn2.microsoft.com/en-us/library/ms379581(VS.80).aspx (http://msdn2.microsoft.com/en-us/library/ms379581(VS.80).aspx)
| Article Translations
|

Back to the top
