Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...System.Security.Cryptography.CryptoAPITransform.TransformFinalBlockSystem.Security.Cryptography.CryptoAPITransform.TransformFinalBlock
Previous
 
Next
New Post
8/31/2008 12:19 AM
 

What kind of error is this??? I am getting them like crazy!!! 50-100 per day!

InnerException: Validation of v13wstat3 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.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Security.Cryptography.CryptoAPITransform.TransformFinalBlock
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Validation of v13wstat3 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.HttpException: Validation of v13wstat3 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.v13wstat3Exception: Invalid v13wstat3. Client IP: 211.214.145.171 Port: 2892 User-Agent: Mozilla/4.79 [en] (Windows NT 5.0; U) v13wstat3: l8+PUzt54s8OfBXUbDm3OW5r0Qar94b8fApu8yTCl19wRpbdLSkLI8N71AYpWQIULG4QDKp/nT+3VjFy0jPBUsHGbtqE0XGncJLi8+oSyNYg4WTLXJHsairzsWoGaXrtWA1whMOAPgz4yefVrP+43OSiwbBNXr35ptXHNFVYooFH/qXU9MV2nOLV6tAOjZeIs7YEHPJyBkJtIq2BvQfUpmavWo/YvnLHs6yskJb5WMdNELhBAebKQwp803fkVSPZcIxH/+3wHQkHhLTYZViCYB40z5Djz1k0ct0/o32kVgDN0BMsfaXXrx3b0X0ZwzqBy9vtFlVhK3sQWpdkLlaBAXhhJrfhezD3ft2BigJP5185t9fLDdRqzJluXHoAjoMtp1SI1LISgfPzuRhzqSQhnMZ7/BME3+mADB8bEdjSEraTg11SFGNUMTb+LUwtjstdbTMwpl0mTh2p3w3Axpe47PDyXgiqpnzLcJANNDftTR8ON69CujsCFfBBsRTze/Adv4bYUVg3JcLu3wr+fc7PT6myzT4MquIHdqYI81YfrY4lT0/GUXzGNs8NIYOY28eu0sQRQjbDziqd3UWGuVShFwrOWGJV7y2zJH5Xqk3VsU7yhXEyIT/f38bNOcWPaJCrIQbhb6QDZ04d705ats/AENlHRjhtYRcQUeu2RIBis3IYtdxaYJfZjVcNpXq/ew2LvtmAjasngXFXiMmcVcIkph+hZxGmwcXwy9v+atXy1Q69DGMEkhW0T/Bxxd+3vFNIHvwRSQwIXBHsYpvfJ3ssrMhJ0oMMw8lf7XdrH3PEZoB1S01u44YOHOYQW0/onIKRl4zeteUlC6OaUkMj6RsckMKlSPSOq/PmM1B9QWLqX7jDsc7jK2tTGFbfBSwonBb402q//OgWdn4RZc/XM... ---> System.Security.Cryptography.CryptographicException: Length of the data to decrypt is invalid. at System.Security.Cryptography.CryptoAPITransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) at System.Security.Cryptography.CryptoStream.FlushFinalBlock() at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo) at System.Web.UI.ObjectStateformatter.Deserialize(String inputString) --- End of inner exception stack trace --- --- End of inner exception stack trace --- at System.Web.UI.v13wstat3Exception.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) at System.Web.UI.ObjectStateformatter.Deserialize(String inputString) at System.Web.UI.ObjectStateformatter.System.Web.UI.IStateformatter.Deserialize(String serializedState) at System.Web.UI.Util.DeserializeWithAssert(IStateformatter formatter, String serializedState) at System.Web.UI.HiddenFieldPageStatePersister.Load() at System.Web.UI.Page.LoadPageStateFromPersistenceMedium() at System.Web.UI.Page.LoadAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---Source:
Server Name: WEB16

 

II

Method: System.Web.Configuration.MachineKeySection.GetDecodedData
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Validation of v13wstat3 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.HttpException: Validation of v13wstat3 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.v13wstat3Exception: Invalid v13wstat3. Client IP: 89.149.253.21 Port: 2710 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040614 Firefox/0.9 v13wstat3: /wEPDwUKLTIyODM3NTczMw9kFgZmDxYCHgRUZXh0BT48IURPQ1RZUEUgSFRNTCBQVUJMSUMgIi0vL1czQy8vRFREIEhUTUwgNC4wIFRyYW5zaXRpb25hbC8vRU4iPmQCAg9kFgwCAQ8WAh4HVmlzaWJsZWhkAgIPFgIeB2NvbnRlbnQFIUludml0ZSB5b3VyIGZyaWVuZHMgdG8gSkRKaW54LmNvbWQCAw8WAh8CBaQBUmVmZXIsIEpkamlueCwgRnJpZW5kLCBMYXcsIEZvcnVtLCBCYXIgZXhhbSwgRnJlZSwgT3V0bGluZXMsIGJhciBleGFtIGZvcnVtLCBiYXIgZXhhbSBkaXNjdXNzaW9uLCBtYmUsIGJhciBleGFtIGVzc2F5IGRpc2N1c3Npb24sIEpEVW5kZXJncm91bmQsIEF1dG9hZG1pdCwgWG94b2h0aCxkAgQPFgIfAgUqQ29weXJpZ2h0IDIwMDggYnkgQWxsNEpEcy5jb20gLyBKREppbnguY29tZAIFDxYEHwJkHwFoZAIGDxYCHwIFLkFsbDRKRHMgQmFyIEV4YW0gJiBMYXcgU2Nob29sIERpc2N1c3Npb24gRm9ydW1kAgQPZBYCAgEPZBYCAgQPZBYCZg9kFhACAQ9kFgJmDw8WBB4HVG9vbFRpcAUuQWxsNEpEcyBCYXIgRXhhbSAmIExhdyBTY2hvb2wgRGlzY3Vzc2lvbiBGb3J1bR4LTmF2aWdhdGVVcmwFJ2h0dHA6Ly93d3cuamRqaW54LmNvbS9EZWZhdWx0LmFzcHg/YmFzZWRkAgMPZBYCZg8PFgYeCENzc0NsYXNzBQlMb2dpbkxpbmsfAAUIUmVnaXN0ZX... ---> System.Web.HttpException: Unable to validate data. at System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) at System.Web.UI.ObjectStateformatter.Deserialize(String inputString) --- End of inner exception stack trace --- --- End of inner exception stack trace --- at System.Web.UI.v13wstat3Exception.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) at System.Web.UI.ObjectStateformatter.Deserialize(String inputString) at System.Web.UI.ObjectStateformatter.System.Web.UI.IStateformatter.Deserialize(String serializedState) at System.Web.UI.Util.DeserializeWithAssert(IStateformatter formatter, String serializedState) at System.Web.UI.HiddenFieldPageStatePersister.Load() at System.Web.UI.Page.LoadPageStateFromPersistenceMedium() at System.Web.UI.Page.LoadAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: WEB16

Any idea? thanks

 

 
New Post
8/31/2008 10:21 AM
 

Hi Frozen,

Under host settings, is your page state persistance set to "Memory"?  Also, what page is creating this error?  Does it have a forum module on it?

 

 
New Post
8/31/2008 3:46 PM
 

Yes and yes/

 
New Post
8/31/2008 5:56 PM
 

Hey Frozen,

You actually have to separate issues that are happening that are most likely causing the problem.

Issue #1:

When you configure DotNetNuke to use "Memory" for Page state persistance, it causes problems because it is buggy.  Basically, if you have two browser windows open and are browsing the site, the current memry persistance code is not smart enough to know that so it gets the v13wstat3 confused between page refreshes.

Solution:  Turn off memory page state persistance.

Issue #2:

There is a bug in .NET 2.0/3.0/3.5 related to the GridView/formView and some other controls which manifests itself when quickly moving though pages.  Here is the Microsoft Connect article:

http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=101988

Basically, the way to work around this is to make these change to your web.config:

<pages validateRequest="false" enableEventValidation="false" v13wstat3EncryptionMode ="Never" />

I will warn you though, it is usually not a good idea to turn off view state encryption, so I would recommend changing #1 and then as a last result, change #2.

 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...System.Security.Cryptography.CryptoAPITransform.TransformFinalBlockSystem.Security.Cryptography.CryptoAPITransform.TransformFinalBlock


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out