Using ASP.NET 2.0.
Not sure where to post this.
I am getting the following error when trying to login to my webapp using the new Login controls in ASP.NET 2.0. My hosting company is not sure what to do at this point. Any ideas?
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): Unable to validate data.]
System.Web.Configuration.M
achineKeyS
ection.Get
DecodedDat
a(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +2524520
System.Web.UI.ObjectStateF
ormatter.D
eserialize
(String inputString) +184
[ViewStateException: Invalid viewstate.
Client IP: 208.49.199.5
Port: 35574
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215)
ViewState: /wEPDwUKLTk4MDM0NDMyMg9kFg
JmD2QWAgID
D2QWAgIDD2
QWAgIBDzwr
AAoBAA8WAh
4IVXNlck5h
bWUFB2JiZW
V0aGVkZBgB
BR5fX0Nvbn
Ryb2xzUmVx
dWlyZVBvc3
RCYWNrS2V5
X18WAgUrY3
RsMDAkQ29u
dGVudFBsYW
NlSG9sZGVy
MSRMb2dpbj
EkUmVtZW1i
ZXJNZQUxY3
RsMDAkQ29u
dGVudFBsYW
NlSG9sZGVy
MSRMb2dpbj
EkTG9naW5J
bWFnZUJ1dH
RvbouSt+L6
4m+K0zk04G
5MXQa2+0IA
Referer:
http://classes.beethe.net/login.aspx?ReturnUrl=%2fDefault.aspxPath: /login.aspx]
[HttpException (0x80004005): Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.]
System.Web.UI.ViewStateExc
eption.Thr
owError(Ex
ception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +116
System.Web.UI.ObjectStateF
ormatter.D
eserialize
(String inputString) +221
System.Web.UI.ObjectStateF
ormatter.S
ystem.Web.
UI.IStateF
ormatter.D
eserialize
(String serializedState) +4
System.Web.UI.Util.Deseria
lizeWithAs
sert(IStat
eFormatter
formatter, String serializedState) +37
System.Web.UI.Util.Deseria
lizeWithAs
sert(IStat
eFormatter
formatter, String serializedState) +0
System.Web.UI.HiddenFieldP
ageStatePe
rsister.Lo
ad() +180
System.Web.UI.Page.LoadPag
eStateFrom
Persistenc
eMedium() +105
System.Web.UI.Page.LoadAll
State() +35
System.Web.UI.Page.Process
RequestMai
n(Boolean includeStagesBeforeAsyncPo
int, Boolean includeStagesAfterAsyncPoi
nt) +7901
System.Web.UI.Page.Process
Request(Bo
olean includeStagesBeforeAsyncPo
int, Boolean includeStagesAfterAsyncPoi
nt) +217
System.Web.UI.Page.Process
Request() +11
System.Web.UI.Page.Process
Request(Ht
tpContext context) +56
System.Web.CallHandlerExec
utionStep.
System.Web
.HttpAppli
cation.IEx
ecutionSte
p.Execute(
) +152
System.Web.HttpApplication
.ExecuteSt
ep(IExecut
ionStep step, Boolean& completedSynchronously) +64