Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: RE: viewstate error


Message #1 by "Meenu Anand" <MANAND@C...> on Thu, 27 Feb 2003 05:47:08
Can you please describe in more detail what did you exactly do to solve 
the problem. 
What do you mean by problem with clusters ?? I am seeing the same problem 
as soon as we moved the code to production. And need to solve the problem 
immediately.

Thanks,
Meenu.
> I think my problem was with the clusters.I found the solution at 
http://support.microsoft.com/default.aspx?scid=3Dkb;en-us;Q323744
jus in case anyone else needs it.
Thanks
--s

-- Original Message --

>Hi everyone'
>   I m stuck at this problem. sometimes my web page errors out with the
>following error.I haven t been able to find any info on it, neither have

>i been able to move on.I would appreciate any help.
>
>
>HttpException (0x80004005): The View State is invalid for this page and
>might be corrupted.]
>   System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +150
>   System.Web.UI.Page.LoadPageViewState() +16
>   System.Web.UI.Page.ProcessRequestMain() +421
>
>I know that I m not setting any viewState property anywhere ? is this a
>problem should i be setting it somewhere
>
>--s
>
>
>
>
>---
>
>ASP.NET 1.0 Namespace Reference with C#
>http://www.wrox.com/acon11.asp?ISBN=3D1861007442
>
>ASP.NET 1.0 Namespace Reference with VB.NET
>http://www.wrox.com/acon11.asp?ISBN=3D1861007450
>
>These books are a complete reference to the ASP.NET namespaces
>for developers who are already familiar with using ASP.NET.
>There is no trivial introductory material or useless .NET
>hype and the presentation of the namespaces, in an easy-to use
>alphabetical order ensures a user-friendly reference format.
>We provide in-depth coverage of all the major ASP.NET classes,
>giving you those real-world tips that the documentation doesn't
>offer, and demonstrating complex techniques with simple
>examples.
>
>---
>




Message #2 by "Sairam Rangachari" <rangsai@i...> on Thu, 27 Feb 2003 13:58:42 -0600
Hi'
This is one of the causes, not sure if you tried this :
 when in a web farm/ cluster,if the encrypt and decrypt key for "<system.
web>
-- machinekey" do not match the machine.config file, then you are bound
to see this or in other words, if they r set to auto then they won t matc
h
and would cause this.
So, find out the correct key  and instead of auto put this value in for
the encrypt and decrypt, for one of ur webservers, and copy the same key
into the other webservers as well.

follow this article for it

Q313091 HOW TO: Create Keys with VB .NET for Use in Forms Authentication
http://support.microsoft.com/default.aspx?scid=3Dkb;EN-US;Q313091
this shows you how to create the key for your webserver.

to find the place you need to change in your machine.config file
location of machine.config : \winnt\microsoft.net\framework\currentversio
n\config\machine.config\
open it and
then search for "<system.web>"
then search for "machinekey"

make sure the encrypt and decrypt keys are not set to auto. This is the
most common . If this doesn not fix it, this also happens to be a bug wit
h
microsoft .NET environment, so, you might wanna contact them or find a wa
y
to woork around it.
hope this helps

regards
  sairam.



-- Original Message --

>Can you please describe in more detail what did you exactly do to solve
>
>the problem. 
>What do you mean by problem with clusters ?? I am seeing the same proble
m
>
>as soon as we moved the code to production. And need to solve the proble
m
>
>immediately.
>
>Thanks,
>Meenu.
>> I think my problem was with the clusters.I found the solution at 
>http://support.microsoft.com/default.aspx?scid=3D3Dkb;en-us;Q323744
>jus in case anyone else needs it.
>Thanks
>--s
>
>-- Original Message --
>
>>Hi everyone'
>>   I m stuck at this problem. sometimes my web page errors out with the

>>following error.I haven t been able to find any info on it, neither hav
e=3D
>
>>i been able to move on.I would appreciate any help.
>>
>>
>>HttpException (0x80004005): The View State is invalid for this page and

>>might be corrupted.]
>>   System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +150
>>   System.Web.UI.Page.LoadPageViewState() +16
>>   System.Web.UI.Page.ProcessRequestMain() +421
>>
>>I know that I m not setting any viewState property anywhere ? is this
a
>>problem should i be setting it somewhere
>>
>>--s
>>
>>
>>
>>
>>---
>>
>>ASP.NET 1.0 Namespace Reference with C#
>>http://www.wrox.com/acon11.asp?ISBN=3D3D1861007442
>>
>>ASP.NET 1.0 Namespace Reference with VB.NET
>>http://www.wrox.com/acon11.asp?ISBN=3D3D1861007450
>>
>>These books are a complete reference to the ASP.NET namespaces
>>for developers who are already familiar with using ASP.NET.
>>There is no trivial introductory material or useless .NET
>>hype and the presentation of the namespaces, in an easy-to use
>>alphabetical order ensures a user-friendly reference format.
>>We provide in-depth coverage of all the major ASP.NET classes,
>>giving you those real-world tips that the documentation doesn't
>>offer, and demonstrating complex techniques with simple
>>examples.
>>
>>---
>>
>
>
>
>
>




Message #3 by "Steve Schofield" <steve@a...> on Thu, 27 Feb 2003 17:47:25 -0500
Also besides making machine encryption/decryption key the same on all web
servers in the web-farm.  Also another item we turned off was
enableviewstatemac="False"  the 1.0 of the .NET framework has this turned on
by default.


*----------------------------------------*
*  Steve Schofield
*  steve@a...
*
*  Microsoft MVP - ASP.NET
*  http://www.aspfree.com
*
*----------------------------------------*
----- Original Message ----- 
From: "Sairam Rangachari" <rangsai@i...>
To: "ASP.NET" <aspx@p...>
Sent: Thursday, February 27, 2003 2:58 PM
Subject: [aspx] RE: viewstate error


Hi'
This is one of the causes, not sure if you tried this :
 when in a web farm/ cluster,if the encrypt and decrypt key for
"<system.web>
-- machinekey" do not match the machine.config file, then you are bound
to see this or in other words, if they r set to auto then they won t match
and would cause this.
So, find out the correct key  and instead of auto put this value in for
the encrypt and decrypt, for one of ur webservers, and copy the same key
into the other webservers as well.

follow this article for it

Q313091 HOW TO: Create Keys with VB .NET for Use in Forms Authentication
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q313091
this shows you how to create the key for your webserver.

to find the place you need to change in your machine.config file
location of machine.config :
\winnt\microsoft.net\framework\currentversion\config\machine.config\
open it and
then search for "<system.web>"
then search for "machinekey"

make sure the encrypt and decrypt keys are not set to auto. This is the
most common . If this doesn not fix it, this also happens to be a bug with
microsoft .NET environment, so, you might wanna contact them or find a way
to woork around it.
hope this helps

regards
  sairam.



-- Original Message --

>Can you please describe in more detail what did you exactly do to solve
>
>the problem.
>What do you mean by problem with clusters ?? I am seeing the same problem
>
>as soon as we moved the code to production. And need to solve the problem
>
>immediately.
>
>Thanks,
>Meenu.
>> I think my problem was with the clusters.I found the solution at
>http://support.microsoft.com/default.aspx?scid=3Dkb;en-us;Q323744
>jus in case anyone else needs it.
>Thanks
>--s
>
>-- Original Message --
>
>>Hi everyone'
>>   I m stuck at this problem. sometimes my web page errors out with the
>>following error.I haven t been able to find any info on it, neither have
>
>>i been able to move on.I would appreciate any help.
>>
>>
>>HttpException (0x80004005): The View State is invalid for this page and
>>might be corrupted.]
>>   System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +150
>>   System.Web.UI.Page.LoadPageViewState() +16
>>   System.Web.UI.Page.ProcessRequestMain() +421
>>
>>I know that I m not setting any viewState property anywhere ? is this
a
>>problem should i be setting it somewhere
>>
>>--s
>>
>>
>>
>>
>>---
>>
>>ASP.NET 1.0 Namespace Reference with C#
>>http://www.wrox.com/acon11.asp?ISBN=3D1861007442
>>
>>ASP.NET 1.0 Namespace Reference with VB.NET
>>http://www.wrox.com/acon11.asp?ISBN=3D1861007450
>>
>>These books are a complete reference to the ASP.NET namespaces
>>for developers who are already familiar with using ASP.NET.
>>There is no trivial introductory material or useless .NET
>>hype and the presentation of the namespaces, in an easy-to use
>>alphabetical order ensures a user-friendly reference format.
>>We provide in-depth coverage of all the major ASP.NET classes,
>>giving you those real-world tips that the documentation doesn't
>>offer, and demonstrating complex techniques with simple
>>examples.
>>
>>---
>>
>
>
>
>
>






Message #4 by "Sairam Rangachari" <rangsai@i...> on Thu, 27 Feb 2003 18:50:01 -0600
sorry. forgot to mention this, assumed you had checked it.
regards
  sairam.

-- Original Message --

>Also besides making machine encryption/decryption key the same on all we
b
>servers in the web-farm.  Also another item we turned off was
>enableviewstatemac=3D"False"  the 1.0 of the .NET framework has this tur
ned
>on
>by default.
>
>
>*----------------------------------------*
>*  Steve Schofield
>*  steve@a...
>*
>*  Microsoft MVP - ASP.NET
>*  http://www.aspfree.com
>*
>*----------------------------------------*
>----- Original Message ----- 
>From: "Sairam Rangachari" <rangsai@i...>
>To: "ASP.NET" <aspx@p...>
>Sent: Thursday, February 27, 2003 2:58 PM
>Subject: [aspx] RE: viewstate error
>
>
>Hi'
>This is one of the causes, not sure if you tried this :
> when in a web farm/ cluster,if the encrypt and decrypt key for
>"<system.web>
>-- machinekey" do not match the machine.config file, then you are bound
>to see this or in other words, if they r set to auto then they won t mat
ch
>and would cause this.
>So, find out the correct key  and instead of auto put this value in for
>the encrypt and decrypt, for one of ur webservers, and copy the same key

>into the other webservers as well.
>
>follow this article for it
>
>Q313091 HOW TO: Create Keys with VB .NET for Use in Forms Authentication

>http://support.microsoft.com/default.aspx?scid=3Dkb;EN-US;Q313091
>this shows you how to create the key for your webserver.
>
>to find the place you need to change in your machine.config file
>location of machine.config :
>\winnt\microsoft.net\framework\currentversion\config\machine.config\
>open it and
>then search for "<system.web>"
>then search for "machinekey"
>
>make sure the encrypt and decrypt keys are not set to auto. This is the
>most common . If this doesn not fix it, this also happens to be a bug wi
th
>microsoft .NET environment, so, you might wanna contact them or find a
way
>to woork around it.
>hope this helps
>
>regards
>  sairam.
>
>
>
>-- Original Message --
>
>>Can you please describe in more detail what did you exactly do to solve

>>
>>the problem.
>>What do you mean by problem with clusters ?? I am seeing the same probl
em
>>
>>as soon as we moved the code to production. And need to solve the probl
em
>>
>>immediately.
>>
>>Thanks,
>>Meenu.
>>> I think my problem was with the clusters.I found the solution at
>>http://support.microsoft.com/default.aspx?scid=3D3Dkb;en-us;Q323744
>>jus in case anyone else needs it.
>>Thanks
>>--s
>>
>>-- Original Message --
>>
>>>Hi everyone'
>>>   I m stuck at this problem. sometimes my web page errors out with th
e
>>>following error.I haven t been able to find any info on it, neither ha
ve=3D
>>
>>>i been able to move on.I would appreciate any help.
>>>
>>>
>>>HttpException (0x80004005): The View State is invalid for this page an
d
>>>might be corrupted.]
>>>   System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +150
>>>   System.Web.UI.Page.LoadPageViewState() +16
>>>   System.Web.UI.Page.ProcessRequestMain() +421
>>>
>>>I know that I m not setting any viewState property anywhere ? is this
>a
>>>problem should i be setting it somewhere
>>>
>>>--s
>>>
>>>
>>>
>>>
>>>---
>>>
>>>ASP.NET 1.0 Namespace Reference with C#
>>>http://www.wrox.com/acon11.asp?ISBN=3D3D1861007442
>>>
>>>ASP.NET 1.0 Namespace Reference with VB.NET
>>>http://www.wrox.com/acon11.asp?ISBN=3D3D1861007450
>>>
>>>These books are a complete reference to the ASP.NET namespaces
>>>for developers who are already familiar with using ASP.NET.
>>>There is no trivial introductory material or useless .NET
>>>hype and the presentation of the namespaces, in an easy-to use
>>>alphabetical order ensures a user-friendly reference format.
>>>We provide in-depth coverage of all the major ASP.NET classes,
>>>giving you those real-world tips that the documentation doesn't
>>>offer, and demonstrating complex techniques with simple
>>>examples.
>>>
>>>---
>>>
>>
>>
>>
>>
>>
>
>
>
>
>
>
>
>





  Return to Index