M
Michael Carr
I recently migrated a site from 1.1 to 2.0. For the most part, the site
still works. However, there is one page in particular that IIS insists on
processing with .NET 1.1, which leads to the following error:
--------------
Parser Error Message: Unrecognized configuration section 'xhtmlConformance'
Source Error:
Line 79: -->
Line 80: <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
Line 81: <xhtmlConformance mode="Legacy"/></system.web>
Line 82: </configuration>
Source File: web.config Line: 81
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032
----------------
You can see from the Version Information at the bottom that IIS is trying to
use 1.1, although the rest of the site is running under 2.0.
Here's what I've tried so far to fix this:
1. Renamed the file from "page1.aspx" to "page3.aspx"
2. Deleted all temporary IIS files in the various
Windows/Microsoft.Net/Framework directories.
3. Rebooted the machine
4. Created a new, default page in the website (which I verified to work) and
copied the code and html from this new page into the old page. Still didn't
work.
5. Deleted everything in the bin directory and rebuilt
still works. However, there is one page in particular that IIS insists on
processing with .NET 1.1, which leads to the following error:
--------------
Parser Error Message: Unrecognized configuration section 'xhtmlConformance'
Source Error:
Line 79: -->
Line 80: <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
Line 81: <xhtmlConformance mode="Legacy"/></system.web>
Line 82: </configuration>
Source File: web.config Line: 81
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032
----------------
You can see from the Version Information at the bottom that IIS is trying to
use 1.1, although the rest of the site is running under 2.0.
Here's what I've tried so far to fix this:
1. Renamed the file from "page1.aspx" to "page3.aspx"
2. Deleted all temporary IIS files in the various
Windows/Microsoft.Net/Framework directories.
3. Rebooted the machine
4. Created a new, default page in the website (which I verified to work) and
copied the code and html from this new page into the old page. Still didn't
work.
5. Deleted everything in the bin directory and rebuilt