Re: Forcing ASP.NET 1.1 isn't working



re:
!> Web.config, like I explained, tries to force 1.1
!> <requiredRuntime version="v1.1.4322"/>
!> <supportedRuntime version="v1.1.4322"/>

That doesn't work for web apps. It only works for Windows Forms.

Have you tried setting the .Net Framework version with aspnet_regiis ?

i.e., open a command window at :
drive:\Windows\Microsoft.NET\Framework\v1.1.4322

....and issue this command :

aspnet_regiis.exe -s W3SVC/1/ROOT/YourVirtualAppName

Substitute your application's name for YourVirtualAppName.

You could also, temporarily, disable ASP.NET 2.0 if you're not using it.

To do that, open a command window at :
drive:\Windows\Microsoft.NET\Framework\v2.0.50727

....and issue this command

aspnet_regiis.exe -u

That will completely uninstall the .Net Framework 2.0 ( without removing the files ).

Once you confirm that your site is working with ASP.NET 1.1,
when you're ready to reinstall the .Net Framework 2.0, run :

aspnet_regiis.exe -ir

....from the same directory :
drive:\Windows\Microsoft.NET\Framework\v2.0.50727

That will re-enable ASP.NET 2.0 without requiring reinstalling the files
( and without reconfiguring any existing apps to run under ASP.NET 2.0 ).

Later, you can choose to configure individual apps to run with ASP.NET 2.0 in the IIS Manager.

Try either method or both...and post back the results.



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/
======================================
"slolife" <slolife@xxxxxxxxx> wrote in message news:1193245676.552418.32480@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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.exe -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=<%=System.Environment.Version.ToString()%>

The page spits out:
.NET Version=2.0.50727.832

Why is it running 2.0?

On Oct 24, 7:05 am, "Norman Yuan" <NoAddr...@xxxxxxxxxxxx> wrote:
.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...@xxxxxxxxx> wrote in message

news:1193202386.931708.112010@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

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 <configuration> tag:

<configuration>
<startup>
<requiredRuntime version="v1.1.4322"/>
<supportedRuntime version="v1.1.4322"/>
</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 enableEventValidation into the @Page directive and the
page compiler doesn't choke.




.



Relevant Pages

  • Re: OS/2 mentioned in a Vista review
    ... Although other applications can continue to paint themselves (no window message blocking), I'm sure a rogue app can still claim ownership of the mouse and keyboard and not give it back. ... Consider full-screen apps. ... Audio subsystem doesn't sound like anything better than DSound or DART (OS/2) in terms of resolution and response time. ... I'm doing more with my computers than ever before. ...
    (comp.os.os2.misc)
  • Re: OSX on Intel Could Destroy Microsoft
    ... >> advanced client-side functionality seamlessly integrates with the server. ... gives everyone more options, and keeps clients light-weight, which is ... >> does provide a new way of thinking about how to design and deliver apps, ... >> a viewer window, and a timeline window, and clips window, and an ...
    (comp.sys.mac.advocacy)
  • Re: OSX on Intel Could Destroy Microsoft
    ... >>> Online Shopping interface that web sites could adhere to. ... AJAX is a way ... But most of the web apps out there can, ... Well, sure, because you can put anything you want in a window in a ...
    (comp.sys.mac.advocacy)
  • Re: Windows randomly switching window focus on top application
    ... This link here did absolutely nothing to resolve it, as well as running 3 different virus scans, 2 registry scans from 2 different apps, and 3 spyware scans from 3 different apps. ... What happens is if I have 1 or more applications of windows of any application open like this and I'm in the application typing or what not suddenly for no apparent reason I'm still typing however I hear clunk clunk clunk each time I hit a key stroke. ... I am a video editor as well and notice this in my video app as well like while just watching the timeline play and not touching anything I'll go to hit the space bar which should stop the play line, it just keeps going as my system somehow has pushed that window behind something. ...
    (microsoft.public.windowsxp.general)
  • Re: OS X Annoyances (from a Windows User)
    ... It also doesn't guarantee that the window you want will be the front ... and forth its to the same window in a couple or 3 apps. ... it opens to the size that it ... I would take that to mean the placement and size of it when it was last ...
    (comp.sys.mac.system)