473,799 Members | 3,866 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Forcing ASP.NET 1.1 isn't working

I have an W2k3IIS server with .NET 1.1 and 2.0 installed. I have a
website, which I'd like to run as 1.1. So I go to that website/app's
properties, and on the ASP.NET tab, I select 1.1.

I have a test page that triggers an event validation (which is a
feature introduced in 2.0). I hit that test page and the error is
generated. So apparently, the site (or, what it really looks like, is
just the page) is still running in 2.0. So I add the following
startup tag to the web.config in the <configurationt ag:

<configuratio n>
<startup>
<requiredRuntim e version="v1.1.4 322"/>
<supportedRunti me version="v1.1.4 322"/>
</startup>
....
</configuration>

The page still causes the event validation error (meaning, still
running as .NET 2.0).

So what am I doing wrong here? What do I need to do to get the site/
page to run as 1.1?

NOTE: One of the ways I know the page is running 2.0 is that I can add
the attribute enableEventVali dation into the @Page directive and the
page compiler doesn't choke.

Oct 24 '07 #1
2 1267
..NET is backward compatible, not forward compatible. So, code written and
compiled on 2.0 will not run on 1.x, just as you see.
"slolife" <sl*****@gmail. comwrote in message
news:11******** **************@ y27g2000pre.goo glegroups.com.. .
>I have an W2k3IIS server with .NET 1.1 and 2.0 installed. I have a
website, which I'd like to run as 1.1. So I go to that website/app's
properties, and on the ASP.NET tab, I select 1.1.

I have a test page that triggers an event validation (which is a
feature introduced in 2.0). I hit that test page and the error is
generated. So apparently, the site (or, what it really looks like, is
just the page) is still running in 2.0. So I add the following

The site DOES NOT run in 2.0. It runs in 1.1, so your code developed on 2.0
causes error: 1.1 runtime does not know 2.0 code.
You can do the opposite: developing app with 1.x, and run in with either 1,x
or 2.0 runtime.

startup tag to the web.config in the <configurationt ag:

<configuratio n>
<startup>
<requiredRuntim e version="v1.1.4 322"/>
<supportedRunti me version="v1.1.4 322"/>
</startup>
...
</configuration>

The page still causes the event validation error (meaning, still
running as .NET 2.0).

So what am I doing wrong here? What do I need to do to get the site/
page to run as 1.1?

NOTE: One of the ways I know the page is running 2.0 is that I can add
the attribute enableEventVali dation into the @Page directive and the
page compiler doesn't choke.
Oct 24 '07 #2
Let me narrow it down, because I realize my initial description was
long winded:

The asp.net dll is compiled in 1.0, the whole website is marked to run
as 1.1. Nothing is supposed to be 2.0. IIS and the
aspnet_regiis.e xe -lk say that all sites and apps are running 1.1.
Web.config, like I explained, tries to force 1.1.

Despite all of that, I have a page with this code in the HTML:

..NET Version=<%=Syst em.Environment. Version.ToStrin g()%>

The page spits out:
..NET Version=2.0.507 27.832

Why is it running 2.0?

On Oct 24, 7:05 am, "Norman Yuan" <NoAddr...@NoEm ail.fakewrote:
.NET is backward compatible, not forward compatible. So, code written and
compiled on 2.0 will not run on 1.x, just as you see.

"slolife" <slol...@gmail. comwrote in message

news:11******** **************@ y27g2000pre.goo glegroups.com.. .
I have an W2k3IIS server with .NET 1.1 and 2.0 installed. I have a
website, which I'd like to run as 1.1. So I go to that website/app's
properties, and on the ASP.NET tab, I select 1.1.
I have a test page that triggers an event validation (which is a
feature introduced in 2.0). I hit that test page and the error is
generated. So apparently, the site (or, what it really looks like, is
just the page) is still running in 2.0. So I add the following

The site DOES NOT run in 2.0. It runs in 1.1, so your code developed on 2.0
causes error: 1.1 runtime does not know 2.0 code.
You can do the opposite: developing app with 1.x, and run in with either 1,x
or 2.0 runtime.
startup tag to the web.config in the <configurationt ag:
<configuratio n>
<startup>
<requiredRuntim e version="v1.1.4 322"/>
<supportedRunti me version="v1.1.4 322"/>
</startup>
...
</configuration>
The page still causes the event validation error (meaning, still
running as .NET 2.0).
So what am I doing wrong here? What do I need to do to get the site/
page to run as 1.1?
NOTE: One of the ways I know the page is running 2.0 is that I can add
the attribute enableEventVali dation into the @Page directive and the
page compiler doesn't choke.

Oct 24 '07 #3

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

Similar topics

18
1540
by: MuZZy | last post by:
Hi, I got a situation here :) an dwonder if someone can help me. I have an MDI app and say, the child form has a button, clicking on which calls a database transaction - grabbing a lot of tables to the form's TDataSet variable. One transaction grabs about 10 or more Mb of data. If i do several transactions, the memory occupied by the app goes say goes up to 180Mb - i watch it in Task Manager. Now i close the child form, and...
1
2392
by: Mike McGavin | last post by:
Hello everyone. Can anyone suggest if there's a way to force a plpgsql stored procedure to be recompiled every time that it's called, based on the values of the parameters that it's given? I assumed it would be possible, but unfortunately haven't been able to find any documentation on how to force a recompile at all, let alone automatically. I've encountered a situation where the standard precompiled generic query plan isn't working...
2
2787
by: melanieab | last post by:
Hi, Before I go into detail, is there any way to force a button to get that dotted box on it that shows it's in focus? Just saying btn1.Focus(); isn't working for me. Btn1 is definitely the thing being focused on, but you wouldn't know by just looking at it. And it seems that the only way to get a button to show highlight is to Tab into it. So, the weird details... Say I put a custom button on my form (and gave it tabstop 1). I then add...
8
3481
by: Zytan | last post by:
TextChanged is only called when the user modifes a control's text, not if the program does. How can I make it be called when the program modifies the text? Zytan
3
2596
by: Ken Fine | last post by:
I am using ASP.NET's CreateUserWizard control. I want to force the visitor to use a username and e-mail address that I am providing in programming, and I do not want the visitor to be able to edit the forms input. I am aware that I can roll my own Create User form by using the membership API, but I am lazy and want to use most of the CreateUserWizard control's features. I tried converting the form to a template and setting the UserName...
0
9543
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10257
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9077
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6808
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5588
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4144
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3761
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.