Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

Reply
Thread Tools

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

 
 
Dhruba Bandopadhyay
Guest
Posts: n/a
 
      05-24-2006
Validation of viewstate MAC failed. If this application is hosted by a Web
Farm or cluster, ensure that <machineKey> configuration specifies the same
validationKey and validation algorithm. AutoGenerate cannot be used in a
cluster.

The above message is what I get in my ASP.NET 2.0 page. I have debugging
turned on and for those who want to see the stack trace, see below.

In my old web site I had a frame set with a ASP page in left frame and
ASP.NET 2.0 page in right frame. It was working perfectly.

Then I changed the frame set into IFRAMEs (well actually using
floating/draggable/resizable IFRAMEs from http://blogus.xilinus.com/ ). Now
I get the above error message when I try to load up my ASP.NET 2.0 page
within a IFRAME created by http://blogus.xilinus.com/. ASP pages are fine.




Stack Trace:
[CryptographicException: Length of the data to decrypt is invalid.]
System.Security.Cryptography.RijndaelManagedTransf orm.TransformFinalBlock(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount) +1493410
System.Security.Cryptography.CryptoStream.FlushFin alBlock() +30
System.Web.Configuration.MachineKeySection.Encrypt OrDecryptData(Boolean
fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean
useValidationSymAlgo) +154
System.Web.Configuration.MachineKeySection.GetDeco dedData(Byte[] buf,
Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +119
System.Web.UI.ObjectStateFormatter.Deserialize(Str ing inputString) +214

[ViewStateException: Invalid viewstate.
Client IP: 127.0.0.1
Port: 4945
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
CLR 1.1.4322; .NET CLR 2.0.50727)
ViewState: /wEPDwULLTEyMTQ2MDU5NjVkZLmM+Cz37HbivYCM/Wp5kXC0U+qx
Referer: http://localhost/main.aspx
Path: /Record/Optimiser/ASP/OptimiserOpen.aspx]

[HttpException (0x80004005): Validation of viewstate MAC failed. If this
application is hosted by a Web Farm or cluster, ensure that <machineKey>
configuration specifies the same validationKey and validation algorithm.
AutoGenerate cannot be used in a cluster.]
System.Web.UI.ViewStateException.ThrowError(Except ion inner, String
persistedState, String errorPageMessage, Boolean macValidationError) +116
System.Web.UI.ObjectStateFormatter.Deserialize(Str ing inputString) +251
System.Web.UI.ObjectStateFormatter.System.Web.UI.I StateFormatter.Deserialize(String
serializedState) +4
System.Web.UI.Util.DeserializeWithAssert(IStateFor matter formatter,
String serializedState) +37
System.Web.UI.HiddenFieldPageStatePersister.Load() +220
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +83
System.Web.UI.Page.LoadAllState() +35
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6953
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) +154
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.record_optimiser_asp_optimiseropen_aspx.Proces sRequest(HttpContext
context) +29
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute()
+154
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously) +64


 
Reply With Quote
 
 
 
 
Alvin Bruney
Guest
Posts: n/a
 
      05-25-2006
See if this document helps. though i suspect you need to take this issue up
with the third party frames provider you listed.
http://support.microsoft.com/default...b;en-us;555353

--

________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------

"Dhruba Bandopadhyay" <> wrote in message
news:%...
> Validation of viewstate MAC failed. If this application is hosted by a Web
> Farm or cluster, ensure that <machineKey> configuration specifies the same
> validationKey and validation algorithm. AutoGenerate cannot be used in a
> cluster.
>
> The above message is what I get in my ASP.NET 2.0 page. I have debugging
> turned on and for those who want to see the stack trace, see below.
>
> In my old web site I had a frame set with a ASP page in left frame and
> ASP.NET 2.0 page in right frame. It was working perfectly.
>
> Then I changed the frame set into IFRAMEs (well actually using
> floating/draggable/resizable IFRAMEs from http://blogus.xilinus.com/ ).
> Now I get the above error message when I try to load up my ASP.NET 2.0
> page within a IFRAME created by http://blogus.xilinus.com/. ASP pages are
> fine.
>
>
>
>
> Stack Trace:
> [CryptographicException: Length of the data to decrypt is invalid.]
>
> System.Security.Cryptography.RijndaelManagedTransf orm.TransformFinalBlock(Byte[]
> inputBuffer, Int32 inputOffset, Int32 inputCount) +1493410
> System.Security.Cryptography.CryptoStream.FlushFin alBlock() +30
> System.Web.Configuration.MachineKeySection.Encrypt OrDecryptData(Boolean
> fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean
> useValidationSymAlgo) +154
> System.Web.Configuration.MachineKeySection.GetDeco dedData(Byte[] buf,
> Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +119
> System.Web.UI.ObjectStateFormatter.Deserialize(Str ing inputString) +214
>
> [ViewStateException: Invalid viewstate.
> Client IP: 127.0.0.1
> Port: 4945
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
> CLR 1.1.4322; .NET CLR 2.0.50727)
> ViewState: /wEPDwULLTEyMTQ2MDU5NjVkZLmM+Cz37HbivYCM/Wp5kXC0U+qx
> Referer: http://localhost/main.aspx
> Path: /Record/Optimiser/ASP/OptimiserOpen.aspx]
>
> [HttpException (0x80004005): Validation of viewstate MAC failed. If this
> application is hosted by a Web Farm or cluster, ensure that <machineKey>
> configuration specifies the same validationKey and validation algorithm.
> AutoGenerate cannot be used in a cluster.]
> System.Web.UI.ViewStateException.ThrowError(Except ion inner, String
> persistedState, String errorPageMessage, Boolean macValidationError) +116
> System.Web.UI.ObjectStateFormatter.Deserialize(Str ing inputString) +251
>
> System.Web.UI.ObjectStateFormatter.System.Web.UI.I StateFormatter.Deserialize(String
> serializedState) +4
> System.Web.UI.Util.DeserializeWithAssert(IStateFor matter formatter,
> String serializedState) +37
> System.Web.UI.HiddenFieldPageStatePersister.Load() +220
> System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +83
> System.Web.UI.Page.LoadAllState() +35
> System.Web.UI.Page.ProcessRequestMain(Boolean
> includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6953
> System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint,
> Boolean includeStagesAfterAsyncPoint) +154
> System.Web.UI.Page.ProcessRequest() +86
> System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context context) +18
> System.Web.UI.Page.ProcessRequest(HttpContext context) +49
> ASP.record_optimiser_asp_optimiseropen_aspx.Proces sRequest(HttpContext
> context) +29
>
> System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute()
> +154
> System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
> completedSynchronously) +64
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in running a basic code in python 3.3.0 that includes HTML file Satabdi Mukherjee Python 1 04-04-2013 07:48 PM
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. Mark B ASP .Net 2 09-11-2009 07:09 AM
Errors: Failed to load viewstate. & Validation of viewstate MAC failed. sck10 ASP .Net 6 09-01-2006 05:59 PM
How to maintain ViewState in web-farm environment? Dominic ASP .Net 5 11-19-2004 05:45 PM
Viewstate problems in web farm S S Venkatesh ASP .Net 1 10-07-2004 03:49 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57