Re: Forcing ASP.NET 1.1 isn't working



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: Difference between ASP.NET Website and ASP.NET Application Project
    ... Studio 2005) between Website (accessed with Open Website or Create ... fly" by the web server. ... instead of compiling it and downloading the DLL? ... Issues due to compiler version ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Lets think who will like to say delphi is dying?
    ... compiler - people don't like the compilation step ... SawZall and C++ for their website mostly. ... the more resources one will have to learn and use the technology ... delphi IDE into a website designer" just doesn't work if you don't have a huge api underneath it first.. ...
    (borland.public.delphi.non-technical)
  • Re: How to find difference in years between two dates?
    ... website that you mention later, ... compiler produces for a modulo-power-of-2 operation... ... I'm managing that without a modulo operation. ... looks reasonable, consistent, no anomalies; ...
    (comp.lang.python)
  • Xml documentation for website
    ... The website is configured as a site, ... thrown when compiling the global.asax code-behind. ... xml comments. ... This is a compiler auto-generated file, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Opinions on Rowley CrossWorks for ARM
    ... debugger included, which is a minus. ... Worse, the website, well, is ... neighbor mom and pop compiler company. ...
    (comp.arch.embedded)