473,513 Members | 4,753 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IIS trying to execute a page under 1.1

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
Nov 19 '05 #1
4 1150
Try deleting the ASP.NET 1.1 sections from your app's web.config,
and replacing them with ASP.NET 2.0-conformant sections.

btw, you did change the application's .net framework target,
from 1.1 to 2.0, by using the ASP.NET tab in the application's
"Properties" in the Internet Service Manager, right ?


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Michael Carr" <mc***@umich.edu> wrote in message
news:eS**************@TK2MSFTNGP12.phx.gbl...
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

Nov 19 '05 #2
More information on this problem:

In the Internet Service Manager, the ASP.NET version for the site is 2.0,
and for most files individually it is 2.0. However, when I check the version
for that particular file it is 1.1 and it is greyed out so I can't change
it. I tried changing the site back to 1.1 and then to 2.0 to see if this
change would propagate to the file, but it didn't. Why is this one
particular file staying set to 1.1 regardless of my attempts to change it?

Michael Carr
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ui**************@tk2msftngp13.phx.gbl...
btw, you did change the application's .net framework target,
from 1.1 to 2.0, by using the ASP.NET tab in the application's
"Properties" in the Internet Service Manager, right ?

Nov 19 '05 #3
What you're describing sounds impossible.

What happens when you create a new file ?
Does it get assigned to 1.1...or to 2.0 ?

Create a new, blank, aspx file and check that.

If it gets assigned to 2.0, just copy the code
in the trouble file to the new file...and delete the old one.

I must confess, though, that I'm having a hard time thinking that
a single file can have a different .net framework version assigned to it.

That's set per application, not per file.

Again, your main problem sems to be that you have 1.1-specific
web.config settings because you have not updated your web.config
to reflect 2.0-specific settings after you upgraded the application to 2.0.

Rename your web.config to web.config.old; create a new web.config;
and make sure your new web.config *only* has 2.0-specific
entries/sections/settings in it.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Michael Carr" <mc***@umich.edu> wrote in message
news:eN*************@TK2MSFTNGP09.phx.gbl...
More information on this problem:

In the Internet Service Manager, the ASP.NET version for the site is 2.0, and for most
files individually it is 2.0. However, when I check the version for that particular file
it is 1.1 and it is greyed out so I can't change it. I tried changing the site back to
1.1 and then to 2.0 to see if this change would propagate to the file, but it didn't.
Why is this one particular file staying set to 1.1 regardless of my attempts to change
it?

Michael Carr
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ui**************@tk2msftngp13.phx.gbl...
btw, you did change the application's .net framework target,
from 1.1 to 2.0, by using the ASP.NET tab in the application's
"Properties" in the Internet Service Manager, right ?


Nov 19 '05 #4
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:eH**************@TK2MSFTNGP10.phx.gbl...
What you're describing sounds impossible.
Yes, it sounds impossible to me too, but it's definitely happening. My
overall application is set to 2.0 but that single individal file comes up as
1.1 every time I right click on it.
What happens when you create a new file ?
Does it get assigned to 1.1...or to 2.0 ?
Create a new, blank, aspx file and check that.
It gets assigned to 2.0.
If it gets assigned to 2.0, just copy the code
in the trouble file to the new file...and delete the old one.
Yes, I already did that... but I am obsessive compulsive about things
working so I just wanted to get the old one working. :)
I must confess, though, that I'm having a hard time thinking that
a single file can have a different .net framework version assigned to it.
That's set per application, not per file.
That's what I thought too. But nothing I seem to do changes the setting,
including changing the filename.
Again, your main problem sems to be that you have 1.1-specific
web.config settings because you have not updated your web.config
to reflect 2.0-specific settings after you upgraded the application to
2.0.
Rename your web.config to web.config.old; create a new web.config;
and make sure your new web.config *only* has 2.0-specific
entries/sections/settings in it.


I deleted the entire web.config and added a new blank one to the project ...
but the same problem continues to happen.
Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2522
by: Brian Burgess | last post by:
Hi all, Anyone know of any special issues with Server.Execute? Specifically for me it simply is not executing ... the server does not transfer to the page specified. The calling ASP just...
6
3535
by: JT | last post by:
is it possible to somehow "jump out of" an ASP page that is executed from another page via the Server.Execute method? on the page being executed i have several instances where i need to stop the...
0
304
by: bbenham | last post by:
In the Code-Behind file for a Specific page I'm doing, I am using Server.Execute("anotherpage.aspx", writer) to retrieve the resulting output of a different aspx page, which I am maniuplating etc. A...
3
8000
by: Me | last post by:
hi, I have this file I need to execute from an ASP client. since we have installed it on the SQL Database server machine, I thought I could run it like this: Set Cn =...
3
6852
by: Chris | last post by:
I have yet to understand or get a response on the issue I'm having. I'm taking an asp web application and migrating it from Windows 2K to 2003. I have the new website location (2003) settings...
2
1363
by: nick | last post by:
Hi, I wondering if it is possible in asp.net to somehow execute a string of code as if it were a page on the server. That is to say, if I executed the following code which resided in an aspx...
3
1742
by: Sophos | last post by:
Hi, I have a basic aspx page, in the Page_Init procedure I have a server.execute of another aspx page that adds some html code to my first page. However it also adds a control (an htmlimage),...
0
11684
by: cwho.work | last post by:
Hi! We are using apache ibatis with our MySQL 5.0 database (using innodb tables), in our web application running on Tomcat 5. Recently we started getting a number of errors relating to...
0
1233
by: Nathan Baker | last post by:
Hi, I'm trying to port a toolbar from Firefox to IE. Right now, the part I'm working on is the toolbar's page manipulation functionality, which is all written in Javascript. Since I want to be...
5
7042
by: sayeo87 | last post by:
Hi, I am quite new to JSP so please forgive me if I ask really simple things... I am trying to run system commands on the server and display the output on a webpage. This is what I've got: <%@...
0
7254
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7373
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7519
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5677
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.