Forcing ASP.NET 1.1 isn"t working
Forcing ASP.NET 1.1 isn"t working
am 24.10.2007 07:06:26 von Chris Becker
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 tag:
....
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.
Re: Forcing ASP.NET 1.1 isn"t working
am 24.10.2007 16:05:51 von Norman Yuan
..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" wrote in message
news:1193202386.931708.112010@y27g2000pre.googlegroups.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 tag:
>
>
>
>
>
>
> ...
>
>
> 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.
>
Re: Forcing ASP.NET 1.1 isn"t working
am 24.10.2007 19:07:56 von Chris Becker
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" 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" wrote in message
>
> news:1193202386.931708.112010@y27g2000pre.googlegroups.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 tag:
>
> >
> >
> >
> >
> >
> > ...
> >
>
> > 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.
Re: Forcing ASP.NET 1.1 isn"t working
am 24.10.2007 20:40:17 von nomailreplies
re:
!> Web.config, like I explained, tries to force 1.1
!>
!>
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" wrote in message news:1193245676.552418.32480@k35g2000prh.googlegroups.com...
> 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" 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" wrote in message
>>
>> news:1193202386.931708.112010@y27g2000pre.googlegroups.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 tag:
>>
>> >
>> >
>> >
>> >
>> >
>> > ...
>> >
>>
>> > 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.
>
>
Re: Forcing ASP.NET 1.1 isn"t working
am 25.10.2007 06:19:32 von Chris Becker
A lot of good info here. Thanks Juan!
Unfortunately, it did not work. First of all, uninstalling .NET 2.0
from IIS didn't work. I ran this:
C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis. exe -u
It said it uninstalled. So I fired up the website and I get an error
that "Network Service does not have write permissions to C:\Windows
\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files". This
continued to happen even after recycling the iis and web services.
Okay, so if .NET 2.0 has been uninstalled from IIS, why does accessing
the website require access to the 2.0 framework directory. Even the
snippet of code on the test page:
..NET Version=3D<%=3DSystem.Environment.Version.ToString()%>
Spits out:
..NET Version=3D2.0.50727.832
What is going on?
One of the differences we noticed between a server that is working (an
not exhibiting these problems) and one that does have problems, is
that the following patch:
http://support.microsoft.com/kb/928365
Is installed on problem servers. Once we uninstall the patch from a
problem server, the problem goes away.
Now I am stumped. The patch seems faulty based on that situation.
Anyone else seen this sort of problem with that patch? Anyone else
have any ideas on how to get the website to stick to 1.1 with the
patch?
On Oct 24, 11:40 am, "Juan T. Llibre"
wrote:
> re:
> !> Web.config, like I explained, tries to force 1.1
> !>
> !>
>
> 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=F1ol :http://asp.net.do/foros/
> ==================== =====
==============
>
> "slolife" wrote in messagenews:1193245676.552418.3248=
0@k35g2000prh.googlegroups.com...
> > 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=3D<%=3DSystem.Environment.Version.ToString()%>
>
> > The page spits out:
> > .NET Version=3D2.0.50727.832
>
> > Why is it running 2.0?
>
> > On Oct 24, 7:05 am, "Norman Yuan" 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" wrote in message
>
> >>news:1193202386.931708.112010@y27g2000pre.googlegroups.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 o=
n 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 eith=
er 1,x
> >> or 2.0 runtime.
>
> >> > startup tag to the web.config in the tag:
>
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > ...
> >> >
>
> >> > 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 a=
dd
> >> > the attribute enableEventValidation into the @Page directive and the
> >> > page compiler doesn't choke.
Re: Forcing ASP.NET 1.1 isn"t working
am 25.10.2007 16:24:03 von nomailreplies
Thanks for the detailed report and sleuthing, slolife.
I am escalating this internally and will post back when/if I have an answer.
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" wrote in message news:1193285972.237050.189130@t8g2000prg.googlegroups.com...
A lot of good info here. Thanks Juan!
Unfortunately, it did not work. First of all, uninstalling .NET 2.0
from IIS didn't work. I ran this:
C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis. exe -u
It said it uninstalled. So I fired up the website and I get an error
that "Network Service does not have write permissions to C:\Windows
\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files". This
continued to happen even after recycling the iis and web services.
Okay, so if .NET 2.0 has been uninstalled from IIS, why does accessing
the website require access to the 2.0 framework directory. Even the
snippet of code on the test page:
..NET Version=<%=System.Environment.Version.ToString()%>
Spits out:
..NET Version=2.0.50727.832
What is going on?
One of the differences we noticed between a server that is working (an
not exhibiting these problems) and one that does have problems, is
that the following patch:
http://support.microsoft.com/kb/928365
Is installed on problem servers. Once we uninstall the patch from a
problem server, the problem goes away.
Now I am stumped. The patch seems faulty based on that situation.
Anyone else seen this sort of problem with that patch? Anyone else
have any ideas on how to get the website to stick to 1.1 with the
patch?
On Oct 24, 11:40 am, "Juan T. Llibre"
wrote:
> re:
> !> Web.config, like I explained, tries to force 1.1
> !>
> !>
>
> 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" wrote in messagenews:1193245676.552418.32480@k35g2000prh.googlegroups .com...
> > 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" 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" wrote in message
>
> >>news:1193202386.931708.112010@y27g2000pre.googlegroups.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 tag:
>
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > ...
> >> >
>
> >> > 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.
Re: Forcing ASP.NET 1.1 isn"t working
am 26.10.2007 00:12:07 von Chris Becker
Excellent! Thanks Juan.
On Oct 25, 7:24 am, "Juan T. Llibre"
wrote:
> Thanks for the detailed report and sleuthing, slolife.
> I am escalating this internally and will post back when/if I have an answ=
er.
>
> Juan T. Llibre, asp.net MVP
> asp.net faq :http://asp.net.do/faq/
> foros de asp.net, en espa=F1ol :http://asp.net.do/foros/
> ==================== =====
=============="slolife" wro=
te in messagenews:1193285972.237050.189130@t8g2000prg.googlegroups .com...
>
> A lot of good info here. Thanks Juan!
>
> Unfortunately, it did not work. First of all, uninstalling .NET 2.0
> from IIS didn't work. I ran this:
> C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis. exe -u
>
> It said it uninstalled. So I fired up the website and I get an error
> that "Network Service does not have write permissions to C:\Windows
> \Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files". This
> continued to happen even after recycling the iis and web services.
>
> Okay, so if .NET 2.0 has been uninstalled from IIS, why does accessing
> the website require access to the 2.0 framework directory. Even the
> snippet of code on the test page:
>
> .NET Version=3D<%=3DSystem.Environment.Version.ToString()%>
>
> Spits out:
> .NET Version=3D2.0.50727.832
>
> What is going on?
>
> One of the differences we noticed between a server that is working (an
> not exhibiting these problems) and one that does have problems, is
> that the following patch:
>
> http://support.microsoft.com/kb/928365
>
> Is installed on problem servers. Once we uninstall the patch from a
> problem server, the problem goes away.
>
> Now I am stumped. The patch seems faulty based on that situation.
>
> Anyone else seen this sort of problem with that patch? Anyone else
> have any ideas on how to get the website to stick to 1.1 with the
> patch?
>
> On Oct 24, 11:40 am, "Juan T. Llibre"
> wrote:
>
> > re:
> > !> Web.config, like I explained, tries to force 1.1
> > !>
> > !>
>
> > 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 removin=
g 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 =
20 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=F1ol :http://asp.net.do/foros/
> > ==================== ===3D=
===============3D
>
> > "slolife" wrote in messagenews:1193245676.552418.32=
480@k35g2000prh.googlegroups.com...
> > > 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=3D<%=3DSystem.Environment.Version.ToString()%>
>
> > > The page spits out:
> > > .NET Version=3D2.0.50727.832
>
> > > Why is it running 2.0?
>
> > > On Oct 24, 7:05 am, "Norman Yuan" wrote:
> > >> .NET is backward compatible, not forward compatible. So, code writte=
n and
> > >> compiled on 2.0 will not run on 1.x, just as you see.
>
> > >> "slolife" wrote in message
>
> > >>news:1193202386.931708.112010@y27g2000pre.googlegroups.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/ap=
p'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 ei=
ther 1,x
> > >> or 2.0 runtime.
>
> > >> > startup tag to the web.config in the tag:
>
> > >> >
> > >> >
> > >> >
> > >> >
> > >> >
> > >> > ...
> > >> >
>
> > >> > 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 si=
te/
> > >> > 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 t=
he
> > >> > page compiler doesn't choke.
Re: Forcing ASP.NET 1.1 isn"t working
am 28.10.2007 20:51:15 von Chris Becker
I ended up calling Microsoft about this as we (ExactBid.com) are going
live with a product in a few days and needed a resolution. Here's the
summary in case anyone else runs into the problem:
Problem
=======3D
After installing the patch KB928365, 1.1 applications are running in
20 framework causing issues in the application
Environment
=========3D
Windows 2003 - asp.net 1.1 and 2.0
Cause
====
Since the home page (default) was asp (unmanaged code), it loaded 2.0
instead of 1.1
Resolution
========
Raise a get request to an aspx page first during application start
event so that 1.1 is loaded in the process
Code used
=======3D
=========3D
Hope that's helps people. Thanks for you help!
On Oct 25, 3:12 pm, slolife wrote:
> Excellent! Thanks Juan.
>
> On Oct 25, 7:24 am, "Juan T. Llibre"
> wrote:
>
> > Thanks for the detailed report and sleuthing, slolife.
> > I am escalating this internally and will post back when/if I have an an=
swer.
>
> > Juan T. Llibre, asp.net MVP
> > asp.net faq :http://asp.net.do/faq/
> > foros de asp.net, en espa=F1ol :http://asp.net.do/foros/
> > ==================== ===3D=
===============3D"slolife" =
wrote in messagenews:1193285972.237050.189130@t8g2000prg.googlegroups .com...
>
> > A lot of good info here. Thanks Juan!
>
> > Unfortunately, it did not work. First of all, uninstalling .NET 2.0
> > from IIS didn't work. I ran this:
> > C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis. exe -u
>
> > It said it uninstalled. So I fired up the website and I get an error
> > that "Network Service does not have write permissions to C:\Windows
> > \Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files". This
> > continued to happen even after recycling the iis and web services.
>
> > Okay, so if .NET 2.0 has been uninstalled from IIS, why does accessing
> > the website require access to the 2.0 framework directory. Even the
> > snippet of code on the test page:
>
> > .NET Version=3D<%=3DSystem.Environment.Version.ToString()%>
>
> > Spits out:
> > .NET Version=3D2.0.50727.832
>
> > What is going on?
>
> > One of the differences we noticed between a server that is working (an
> > not exhibiting these problems) and one that does have problems, is
> > that the following patch:
>
> >http://support.microsoft.com/kb/928365
>
> > Is installed on problem servers. Once we uninstall the patch from a
> > problem server, the problem goes away.
>
> > Now I am stumped. The patch seems faulty based on that situation.
>
> > Anyone else seen this sort of problem with that patch? Anyone else
> > have any ideas on how to get the website to stick to 1.1 with the
> > patch?
>
> > On Oct 24, 11:40 am, "Juan T. Llibre"
> > wrote:
>
> > > re:
> > > !> Web.config, like I explained, tries to force 1.1
> > > !>
> > > !>
>
> > > 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 remov=
ing 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 fi=
les
> > > ( 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.NE=
T 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=F1ol :http://asp.net.do/foros/
> > > ==================== ===3D=
===============3D
>
> > > "slolife" wrote in messagenews:1193245676.552418.=
32480@k35g2000prh.googlegroups.com...
> > > > 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=3D<%=3DSystem.Environment.Version.ToString()%>
>
> > > > The page spits out:
> > > > .NET Version=3D2.0.50727.832
>
> > > > Why is it running 2.0?
>
> > > > On Oct 24, 7:05 am, "Norman Yuan" wrote:
> > > >> .NET is backward compatible, not forward compatible. So, code writ=
ten and
> > > >> compiled on 2.0 will not run on 1.x, just as you see.
>
> > > >> "slolife" wrote in message
>
> > > >>news:1193202386.931708.112010@y27g2000pre.googlegroups.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 li=
ke, 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 develop=
ed 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 tag:
>
> > > >> >
> > > >> >
> > > >> >
> > > >> >
> > > >> >
> > > >> > ...
> > > >> >
>
> > > >> > 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 c=
an add
> > > >> > the attribute enableEventValidation into the @Page directive and=
the
> > > >> > page compiler doesn't choke.
Re: Forcing ASP.NET 1.1 isn"t working
am 28.10.2007 21:19:50 von unknown
I like that initial request thing, really creative. FYI: the windows forms
app.config fix has serious limitations as well and is not guarnateed to
work. There's more here:
http://support.microsoft.com/default.aspx?scid=kb;en-us;5560 35
--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless Author Plug
OWC Black Book 2nd Edition
Exclusively on www.lulu.com/owc
$24.99
"slolife" wrote in message
news:1193601075.679842.168100@v3g2000hsg.googlegroups.com...
I ended up calling Microsoft about this as we (ExactBid.com) are going
live with a product in a few days and needed a resolution. Here's the
summary in case anyone else runs into the problem:
Problem
=======
After installing the patch KB928365, 1.1 applications are running in
2.0 framework causing issues in the application
Environment
=========
Windows 2003 - asp.net 1.1 and 2.0
Cause
====
Since the home page (default) was asp (unmanaged code), it loaded 2.0
instead of 1.1
Resolution
========
Raise a get request to an aspx page first during application start
event so that 1.1 is loaded in the process
Code used
=======
=========
Hope that's helps people. Thanks for you help!
On Oct 25, 3:12 pm, slolife wrote:
> Excellent! Thanks Juan.
>
> On Oct 25, 7:24 am, "Juan T. Llibre"
> wrote:
>
> > Thanks for the detailed report and sleuthing, slolife.
> > I am escalating this internally and will post back when/if I have an
> > answer.
>
> > 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"
> > wrote in
> > messagenews:1193285972.237050.189130@t8g2000prg.googlegroups .com...
>
> > A lot of good info here. Thanks Juan!
>
> > Unfortunately, it did not work. First of all, uninstalling .NET 2.0
> > from IIS didn't work. I ran this:
> > C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis. exe -u
>
> > It said it uninstalled. So I fired up the website and I get an error
> > that "Network Service does not have write permissions to C:\Windows
> > \Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files". This
> > continued to happen even after recycling the iis and web services.
>
> > Okay, so if .NET 2.0 has been uninstalled from IIS, why does accessing
> > the website require access to the 2.0 framework directory. Even the
> > snippet of code on the test page:
>
> > .NET Version=<%=System.Environment.Version.ToString()%>
>
> > Spits out:
> > .NET Version=2.0.50727.832
>
> > What is going on?
>
> > One of the differences we noticed between a server that is working (an
> > not exhibiting these problems) and one that does have problems, is
> > that the following patch:
>
> >http://support.microsoft.com/kb/928365
>
> > Is installed on problem servers. Once we uninstall the patch from a
> > problem server, the problem goes away.
>
> > Now I am stumped. The patch seems faulty based on that situation.
>
> > Anyone else seen this sort of problem with that patch? Anyone else
> > have any ideas on how to get the website to stick to 1.1 with the
> > patch?
>
> > On Oct 24, 11:40 am, "Juan T. Llibre"
> > wrote:
>
> > > re:
> > > !> Web.config, like I explained, tries to force 1.1
> > > !>
> > > !>
>
> > > 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" wrote in
> > > messagenews:1193245676.552418.32480@k35g2000prh.googlegroups .com...
> > > > 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" 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" wrote in message
>
> > > >>news:1193202386.931708.112010@y27g2000pre.googlegroups.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 tag:
>
> > > >> >
> > > >> >
> > > >> >
> > > >> >
> > > >> >
> > > >> > ...
> > > >> >
>
> > > >> > 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.
Re: Forcing ASP.NET 1.1 isn"t working
am 28.10.2007 23:02:13 von nomailreplies
re:
!> Since the home page (default) was asp (unmanaged code)
I wish you'd mentioned that before.
I could have saved you the support incident.
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" wrote in message news:1193601075.679842.168100@v3g2000hsg.googlegroups.com...
I ended up calling Microsoft about this as we (ExactBid.com) are going
live with a product in a few days and needed a resolution. Here's the
summary in case anyone else runs into the problem:
Problem
=======
After installing the patch KB928365, 1.1 applications are running in
2.0 framework causing issues in the application
Environment
=========
Windows 2003 - asp.net 1.1 and 2.0
Cause
====
Since the home page (default) was asp (unmanaged code), it loaded 2.0
instead of 1.1
Resolution
========
Raise a get request to an aspx page first during application start
event so that 1.1 is loaded in the process
Code used
=======
=========
Hope that's helps people. Thanks for you help!
On Oct 25, 3:12 pm, slolife wrote:
> Excellent! Thanks Juan.
>
> On Oct 25, 7:24 am, "Juan T. Llibre"
> wrote:
>
> > Thanks for the detailed report and sleuthing, slolife.
> > I am escalating this internally and will post back when/if I have an answer.
>
> > 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" wrote in
> > messagenews:1193285972.237050.189130@t8g2000prg.googlegroups .com...
>
> > A lot of good info here. Thanks Juan!
>
> > Unfortunately, it did not work. First of all, uninstalling .NET 2.0
> > from IIS didn't work. I ran this:
> > C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis. exe -u
>
> > It said it uninstalled. So I fired up the website and I get an error
> > that "Network Service does not have write permissions to C:\Windows
> > \Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files". This
> > continued to happen even after recycling the iis and web services.
>
> > Okay, so if .NET 2.0 has been uninstalled from IIS, why does accessing
> > the website require access to the 2.0 framework directory. Even the
> > snippet of code on the test page:
>
> > .NET Version=<%=System.Environment.Version.ToString()%>
>
> > Spits out:
> > .NET Version=2.0.50727.832
>
> > What is going on?
>
> > One of the differences we noticed between a server that is working (an
> > not exhibiting these problems) and one that does have problems, is
> > that the following patch:
>
> >http://support.microsoft.com/kb/928365
>
> > Is installed on problem servers. Once we uninstall the patch from a
> > problem server, the problem goes away.
>
> > Now I am stumped. The patch seems faulty based on that situation.
>
> > Anyone else seen this sort of problem with that patch? Anyone else
> > have any ideas on how to get the website to stick to 1.1 with the
> > patch?
>
> > On Oct 24, 11:40 am, "Juan T. Llibre"
> > wrote:
>
> > > re:
> > > !> Web.config, like I explained, tries to force 1.1
> > > !>
> > > !>
>
> > > 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" wrote in messagenews:1193245676.552418.32480@k35g2000prh.googlegroups .com...
> > > > 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" 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" wrote in message
>
> > > >>news:1193202386.931708.112010@y27g2000pre.googlegroups.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 tag:
>
> > > >> >
> > > >> >
> > > >> >
> > > >> >
> > > >> >
> > > >> > ...
> > > >> >
>
> > > >> > 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.
Re: Forcing ASP.NET 1.1 isn"t working
am 30.10.2007 08:05:50 von Chris Becker
Well, I didn't want to come across as pushy :) Thanks again for
taking the time to look into it.
On Oct 28, 3:02 pm, "Juan T. Llibre"
wrote:
> re:
> !> Since the home page (default) was asp (unmanaged code)
>
> I wish you'd mentioned that before.
> I could have saved you the support incident.
>
> Juan T. Llibre, asp.net MVP
> asp.net faq :http://asp.net.do/faq/
> foros de asp.net, en espa=F1ol :http://asp.net.do/foros/
> ==================== =====
=============="slolife" wro=
te in messagenews:1193601075.679842.168100@v3g2000hsg.googlegroups .com...
>
> I ended up calling Microsoft about this as we (ExactBid.com) are going
> live with a product in a few days and needed a resolution. Here's the
> summary in case anyone else runs into the problem:
>
> Problem
> =======3D
> After installing the patch KB928365, 1.1 applications are running in
> 2.0 framework causing issues in the application
>
> Environment
> =========3D
> Windows 2003 - asp.net 1.1 and 2.0
>
> Cause
> ====
> Since the home page (default) was asp (unmanaged code), it loaded 2.0
> instead of 1.1
>
> Resolution
> ========
> Raise a get request to an aspx page first during application start
> event so that 1.1 is loaded in the process
>
> Code used
> =======3D
>
>
> =========3D
>
> Hope that's helps people. Thanks for you help!
>
> On Oct 25, 3:12 pm, slolife wrote:
>
>
>
>
>
> > Excellent! Thanks Juan.
>
> > On Oct 25, 7:24 am, "Juan T. Llibre"
> > wrote:
>
> > > Thanks for the detailed report and sleuthing, slolife.
> > > I am escalating this internally and will post back when/if I have an =
answer.
>
> > > Juan T. Llibre, asp.net MVP
> > > asp.net faq :http://asp.net.do/faq/
> > > foros de asp.net, en espa=F1ol :http://asp.net.do/foros/
> > > ==================== ===3D=
===============3D"slolife" =
wrote in
> > > messagenews:1193285972.237050.189130@t8g2000prg.googlegroups .com...
>
> > > A lot of good info here. Thanks Juan!
>
> > > Unfortunately, it did not work. First of all, uninstalling .NET 2.0
> > > from IIS didn't work. I ran this:
> > > C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis. exe -u
>
> > > It said it uninstalled. So I fired up the website and I get an error
> > > that "Network Service does not have write permissions to C:\Windows
> > > \Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files". This
> > > continued to happen even after recycling the iis and web services.
>
> > > Okay, so if .NET 2.0 has been uninstalled from IIS, why does accessing
> > > the website require access to the 2.0 framework directory. Even the
> > > snippet of code on the test page:
>
> > > .NET Version=3D<%=3DSystem.Environment.Version.ToString()%>
>
> > > Spits out:
> > > .NET Version=3D2.0.50727.832
>
> > > What is going on?
>
> > > One of the differences we noticed between a server that is working (an
> > > not exhibiting these problems) and one that does have problems, is
> > > that the following patch:
>
> > >http://support.microsoft.com/kb/928365
>
> > > Is installed on problem servers. Once we uninstall the patch from a
> > > problem server, the problem goes away.
>
> > > Now I am stumped. The patch seems faulty based on that situation.
>
> > > Anyone else seen this sort of problem with that patch? Anyone else
> > > have any ideas on how to get the website to stick to 1.1 with the
> > > patch?
>
> > > On Oct 24, 11:40 am, "Juan T. Llibre"
> > > wrote:
>
> > > > re:
> > > > !> Web.config, like I explained, tries to force 1.1
> > > > !>
> > > > !>
>
> > > > That doesn't work for web apps. It only works for Windows Forms.
>
> > > > Have you tried setting the .Net Framework version with aspnet_regii=
s ?
>
> > > > 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 usin=
g 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 rem=
oving 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 =
20 ).
>
> > > > 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=F1ol :http://asp.net.do/foros/
> > > > ==================== ===
================
>
> > > > "slolife" wrote in messagenews:1193245676.55241=
832480@k35g2000prh.googlegroups.com...
> > > > > Let me narrow it down, because I realize my initial description w=
as
> > > > > long winded:
>
> > > > > The asp.net dll is compiled in 1.0, the whole website is marked t=
o 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=3D<%=3DSystem.Environment.Version.ToString()%>
>
> > > > > The page spits out:
> > > > > .NET Version=3D2.0.50727.832
>
> > > > > Why is it running 2.0?
>
> > > > > On Oct 24, 7:05 am, "Norman Yuan" wrote:
> > > > >> .NET is backward compatible, not forward compatible. So, code wr=
itten and
> > > > >> compiled on 2.0 will not run on 1.x, just as you see.
>
> > > > >> "slolife" wrote in message
>
> > > > >>news:1193202386.931708.112010@y27g2000pre.googlegroups.com ...
>
> > > > >> >I have an W2k3IIS server with .NET 1.1 and 2.0 installed. I ha=
ve a
> > > > >> > website, which I'd like to run as 1.1. So I go to that websit=
e/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 erro=
r 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 devel=
oped 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 wit=
h either 1,x
> > > > >> or 2.0 runtime.
>
> > > > >> > startup tag to the web.config in the tag:
>
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> > ...
> > > > >> >
>
> > > > >> > The page still causes the event validation error (meaning, sti=
ll
> > > > >> > running as .NET 2.0).
>
> > > > >> > So what am I doing wrong here? What do I need to do to get th=
e 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 a=
nd the
> > > > >> > page compiler doesn't choke.
Re: Forcing ASP.NET 1.1 isn"t working
am 31.01.2008 16:40:06 von Lori Wooldridge
I have the same problem. Where did you put the code? On your default
asp page?
*** Sent via Developersdex http://www.developersdex.com ***
Re: Forcing ASP.NET 1.1 isn"t working
am 31.01.2008 20:54:01 von PhilJohnson
I cannot see the message for this one (its just coming up unknown in my
browser with no content), but the problem sounds like you have included some
asp.net 1.1 pages as part of a legacy asp website, but you could be getting
an error saying that IIS is loading a different version of the framework?
If this is the case, it sounds like you might have something like an ActiveX
control that is written in a newer version of .net on the legacy asp pages.
If IIS runs the activex control first, the com interop will load the newest
version of .net framework on the machine, regardless of which version of .net
either the ActiveX control or your asp.net pages are written in.
I believe an ISAPI filter is the only way around this.
--
Regards,
Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwaredevelopment.com
"Lori Wooldridge" wrote:
>
> I have the same problem. Where did you put the code? On your default
> asp page?
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
>