HomeHome Product Discus... Product Discus...SmithCartSmithCartRefreshing a category page. Page load exception. Validation of viewstate MAC failed.Refreshing a category page. Page load exception. Validation of viewstate MAC failed.
Previous
 
Next
New Post
11/28/2012 9:44 AM
 
Hi guys,

I wanted to report this bug, as I have seen this error in my event viewer popping up at least 10 times every day for my visitors. Today I encountered the error first hand while cruising my site, so I can provide more details.

It just happened to me while paging through products in a single cateogry. Instead of using the "Prev" link at the bottom of the page provided by smith cart, I hit the brower's back button. I am prompted by the browser that I will need to "resend information" to reload the page. Most of the time I just hit the "resend" and the page loads fine. However, this time I received the following error in my browser.

DotNetNuke

DotNetNuke Error


An error has occurred. DotNetNuke.Services.Exceptions.PageLoadException: 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.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. ---> System.Web.UI.ViewStateException: Invalid viewstate. Client IP: 24.252.59.203 Port: 60481 Referer: https://www.yandasmusic.com/01/tabid/229/categoryid/46/charvel-guitars Path: /Default.aspx User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.91 Safari/537.11 ViewState: HuoJ2n3tAwcG89PwkBUQUlxq0HJnevpskYOxfyxsmijOks1MLaKsBCZXVBWVvY7vlhv9HC4uyExSbdrNWjSKBLZX1AmqYXeMNwDI7kvzQi5VruNIOMzdB/tkX3I60W1eBX+XDh8efwNqUb0AfKV+GZUUhMXmhEgdN/8MUBPeeQHNvQWf5UtG1nR/+vlp3ltaWt16XJzXC2kkXHFboBcTcYQhGEppVLpFPwLbXHoorNQnE5tDSh2QtvXXwbT/kGM2D9wOmKuecbO4aoQMG9ipxE3ptD4v/lX0i5GaAzrmDbB2AYfFfVzYFdgBPrxjFjWtTxlQfL/eQAm+LkQigEbacR862ghGBDG4ue37kpWtQ03PEv1x1brRJwwlSBj4h9Vrq4F01pUfGdR0bSsmcxPwYt1AKQr9taLwR2m3LtHw5wFX7Pf4hByeUP60hzbNBx8oV0ujP5dUiGBNP+Xv4u1qfbwjEkz4XnRUNJN90jXW2gtfT4YkZ3hHQBsgryHsIn95GNt0SFklNUXq23+sgH3hspQCXU9lZSN2KS6y431W8XZiTPB4hYD26LLLdquz/keYRFGDgQjZcQ5Y5I8V+NFJz3QfEeWKjd7UX493vHZKJSg/XEiLc8IncHXOu9ByHmn41RFIcadVAVVZcKu0WUcp72LlPnopXQJrvBzseegnzzCIsZaS+vgC84lx+x1LD5DZIXvwx9GnAjvNxImOoKE5/rDIteoQZCvcKon... --- End of inner exception stack trace --- at System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) at System.Web.UI.ViewStateException.ThrowMacValidationError(Exception inner, String persistedState) 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 ---
Normally, I would just let it go, as only 10 people a day are experience the error. However, once the user has received the error, it effectively knocks out the ability of the user to browse the products. Clicking back or forward on any page continues to show the error.

Now I'm smart enough to refresh the page, and that solves it. Normal browsing is restored. However, my visitors would not refresh the page. They would simply think "This crap site doesn't work!" and peace out, which is bad business my friends.

Thanks for looking into this!
Alex

 
New Post
11/28/2012 6:47 PM
 
Hi Alex,

Which browser were you using when you received the error above? How many pages did you go through before clicking the browser's "Back" button?

Are there any errors in your DNN Event Viewer logged at the same time as receiving this error?

Thanks
 
New Post
11/29/2012 6:35 AM
 
I was using Chrome.
If I had to guess how many pages, I would say 3 or 4

Yes, here is the event viewer error:

AssemblyVersion: 6.2.4
PortalID: 0
PortalName: YandasMusic.com - Online Music Web Store
UserID: 3
UserName: hostadmin
ActiveTabID: 229
ActiveTabName: 01
RawURL: /01/tabid/229/categoryid/46/charvel-guitars
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: https://www.yandasmusic.com/01/tabid/229/categoryid/46/charvel-guitars
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.91 Safari/537.11
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: c6dce53b-8e6c-48d1-8c28-2cda55ff427e
InnerException: 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.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method:
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: 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.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. ---> System.Web.UI.ViewStateException: Invalid viewstate. Client IP: 24.252.59.203 Port: 60956 Referer: https://www.yandasmusic.com/01/tabid/229/categoryid/46/charvel-guitars Path: /Default.aspx User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.91 Safari/537.11 ViewState: Er5iSlqZqy3ImjYT/Lsw/Vz9qTVGllXC5GrPJYbwVEtJP69kjTJC0N/LtGwhK0VYDS7CIqn4uWIZVk3lXpznssXhCaqIp+5JMFCFAjQcSgklRliOq+HJc8KkqG6HcwZFlWv76hzcCYA+Bi7lWToNg+ZhgHP5IMidvyH6WFtuC7uiACmGvvEwnXaTCqDTiKoDsG6lZ82Kdbf1zhwhgjqNBYbw+UdtK5zvQXrb+b+zU9JV+Er30YgD8btEHMM0EqCpOdzbfOXow6eKG23SCL8zvKwV5jGz+/hHdIg7UJs/Hjrj0XjSuJV6ZoBc85thcBYw6FZXZoyfjBV/rhLdtbFq6EL1MkS4kOgcRF2sVB6RDa5+IvLZP7QlffeZNKifVJZg9g+YpV7xN3pqpyIGwkNHlvVKjpgWMkmOimIh1Nie7/dxMPV/7GsvGWtTX1fTzxfRUsHOGjBrbxARWKTDuHuLhnCQqvXLd1g49L4YK/StVpFnjFTp6bgevWrTK8Xi1p7ohcU+iDV0BwX1FReFbjj+ELoEpku1HTPeHqYOGti/UiMBsnI5eZGSeenKnPcVrR57eNC8e9VNLnuw23NETVHTA8pAHZ4GKuToGvYms1KRkkr5v/3paIi+hapSZuuc5oIr4uDLAXvZC+Egqk1jvdYn1ahSuV5Cud81MrMNRE8EeHOZ64YFAX7fHdYzDcyDG6NkHCZ87OqqHjmw3cEF9SyOL9z0AeUB3w6Shc+... --- End of inner exception stack trace --- at System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) at System.Web.UI.ViewStateException.ThrowMacValidationError(Exception inner, String persistedState) 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: CLOUD278
 
New Post
11/29/2012 8:55 AM
 
Here is another one I just received.

I am on the Firefox browser. I had been opening products in a new tab, editing them, and then closing the tab.
My main tab did not change, as I was using it as a placeholder as I edited a category of items.

After finishing the first 20, I clicked next to view the next 20 in the category. I received the following error in my browser.
An error has occurred. DotNetNuke.Services.Exceptions.PageLoadException: 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.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. ---> System.Web.UI.ViewStateException: Invalid viewstate. Client IP: 24.252.59.203 Port: 62304 Referer: https://www.yandasmusic.com/22/tabid/250/categoryid/622/pdp-drum-sets Path: /Default.aspx User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0 ViewState: HolFnkWL1g/rbS5oj2GD0FBRVnBgMc5DuuNEDZDvJ1587CRx9ivxzYF8YZwamD3WTupUE1BwHg0RlPdZxaDbGLRS7EyvLH8NzREQJYxy/YEx2P6qOnRe/58DBBg0ZYmOCrmwskL4pk2GnSohn7u3trD016v+cREXNzjD0KmHDlZSf9RDxXjANO4+d3hvgYxZ4ZzI3HZzVKzIcaqFvT57CAuvnhlSapTo2ZkY5NGbSsYk100sW3Ci5UbR6oJI+E/dZvtGvQYW3Ehkvx//2GMbpD6naid4wSPpfiCTfY6zoms9H6kGWfTjzGTS3EGt98fac2gBVKG/zTqGCOYQiGxwHV3zDUL9TwnLxf/6OcKBWVs4A2K3dox3DfBBDLXHG3yU2ThWUKJs20S0tq+he7/11Wk2CRRXiZFrgs2p6MBQyG7VT+b7H0AMYfEFfw9ZxoBZnUqTY0SOtuNH/aKSNjahL9xU5czwUVdgrmo3VwsII4RrmrArJnSaGuDonXBal3l/MVN0tS0X/mxIVTYt24MHzUowv3qup8pSO7OsuGypUMl0syhej7cpxo4F8dfLOY01GeUG7PrSAwmX131eoEq27HKCqyB8fQv+Iy8hmyUgrSWgu99rAiZEd7XDiISOMZM/iuoF5W2NSbfhBMJSuMn6j73huL4Y91s/x/tY4joxLIdZcykqQ6RiD+S8ezwPgnI2jHNKoJ2HXpiJrA0R40Wib5jVynr3bjluYAZPXRQE6cwbSJiVQwRIcSCxEHWG3LakRcg0kd81... --- End of inner exception stack trace --- at System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) at System.Web.UI.ViewStateException.ThrowMacValidationError(Exception inner, String persistedState) 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 ---

My Event Viewer produced the following error:


AssemblyVersion: 6.2.4

PortalID: 0

PortalName: YandasMusic.com - Online Music Web Store

UserID: 3

UserName: hostadmin

ActiveTabID: 250

ActiveTabName: 22

RawURL: /22/tabid/250/categoryid/622/pdp-drum-sets

AbsoluteURL: /Default.aspx

AbsoluteURLReferrer: https://www.yandasmusic.com/22/tabid/250/categoryid/622/pdp-drum-sets

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

ExceptionGUID: 9087ea4e-8e13-4e16-beff-465400f50ec7

InnerException: 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.

FileName:

FileLineNumber: 0

FileColumnNumber: 0

Method:

StackTrace:

Message: DotNetNuke.Services.Exceptions.PageLoadException: 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.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. ---> System.Web.UI.ViewStateException: Invalid viewstate. Client IP: 24.252.59.203 Port: 62304 Referer: https://www.yandasmusic.com/22/tabid/250/categoryid/622/pdp-drum-sets Path: /Default.aspx User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0 ViewState: HolFnkWL1g/rbS5oj2GD0FBRVnBgMc5DuuNEDZDvJ1587CRx9ivxzYF8YZwamD3WTupUE1BwHg0RlPdZxaDbGLRS7EyvLH8NzREQJYxy/YEx2P6qOnRe/58DBBg0ZYmOCrmwskL4pk2GnSohn7u3trD016v+cREXNzjD0KmHDlZSf9RDxXjANO4+d3hvgYxZ4ZzI3HZzVKzIcaqFvT57CAuvnhlSapTo2ZkY5NGbSsYk100sW3Ci5UbR6oJI+E/dZvtGvQYW3Ehkvx//2GMbpD6naid4wSPpfiCTfY6zoms9H6kGWfTjzGTS3EGt98fac2gBVKG/zTqGCOYQiGxwHV3zDUL9TwnLxf/6OcKBWVs4A2K3dox3DfBBDLXHG3yU2ThWUKJs20S0tq+he7/11Wk2CRRXiZFrgs2p6MBQyG7VT+b7H0AMYfEFfw9ZxoBZnUqTY0SOtuNH/aKSNjahL9xU5czwUVdgrmo3VwsII4RrmrArJnSaGuDonXBal3l/MVN0tS0X/mxIVTYt24MHzUowv3qup8pSO7OsuGypUMl0syhej7cpxo4F8dfLOY01GeUG7PrSAwmX131eoEq27HKCqyB8fQv+Iy8hmyUgrSWgu99rAiZEd7XDiISOMZM/iuoF5W2NSbfhBMJSuMn6j73huL4Y91s/x/tY4joxLIdZcykqQ6RiD+S8ezwPgnI2jHNKoJ2HXpiJrA0R40Wib5jVynr3bjluYAZPXRQE6cwbSJiVQwRIcSCxEHWG3LakRcg0kd81... --- End of inner exception stack trace --- at System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) at System.Web.UI.ViewStateException.ThrowMacValidationError(Exception inner, String persistedState) 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: CLOUD278

 
New Post
11/29/2012 9:29 AM
 
And again.

This time I simply clicked the back button from viewing a product, attempting to return to the category listing. My firefox browser prompted me that I need to resend information to load the page. It produced the following error in my event viewer.



AssemblyVersion: 6.2.4

PortalID: 0

PortalName: YandasMusic.com - Online Music Web Store

UserID: 3

UserName: hostadmin

ActiveTabID: 250

ActiveTabName: 22

RawURL: /22/tabid/250/categoryid/622/pdp-drum-sets

AbsoluteURL: /Default.aspx

AbsoluteURLReferrer: https://www.yandasmusic.com/22/tabid/250/categoryid/622/pdp-drum-sets

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

ExceptionGUID: 9087ea4e-8e13-4e16-beff-465400f50ec7

InnerException: 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.

FileName:

FileLineNumber: 0

FileColumnNumber: 0

Method:

StackTrace:

Message: DotNetNuke.Services.Exceptions.PageLoadException: 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.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. ---> System.Web.UI.ViewStateException: Invalid viewstate. Client IP: 24.252.59.203 Port: 62304 Referer: https://www.yandasmusic.com/22/tabid/250/categoryid/622/pdp-drum-sets Path: /Default.aspx User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0 ViewState: HolFnkWL1g/rbS5oj2GD0FBRVnBgMc5DuuNEDZDvJ1587CRx9ivxzYF8YZwamD3WTupUE1BwHg0RlPdZxaDbGLRS7EyvLH8NzREQJYxy/YEx2P6qOnRe/58DBBg0ZYmOCrmwskL4pk2GnSohn7u3trD016v+cREXNzjD0KmHDlZSf9RDxXjANO4+d3hvgYxZ4ZzI3HZzVKzIcaqFvT57CAuvnhlSapTo2ZkY5NGbSsYk100sW3Ci5UbR6oJI+E/dZvtGvQYW3Ehkvx//2GMbpD6naid4wSPpfiCTfY6zoms9H6kGWfTjzGTS3EGt98fac2gBVKG/zTqGCOYQiGxwHV3zDUL9TwnLxf/6OcKBWVs4A2K3dox3DfBBDLXHG3yU2ThWUKJs20S0tq+he7/11Wk2CRRXiZFrgs2p6MBQyG7VT+b7H0AMYfEFfw9ZxoBZnUqTY0SOtuNH/aKSNjahL9xU5czwUVdgrmo3VwsII4RrmrArJnSaGuDonXBal3l/MVN0tS0X/mxIVTYt24MHzUowv3qup8pSO7OsuGypUMl0syhej7cpxo4F8dfLOY01GeUG7PrSAwmX131eoEq27HKCqyB8fQv+Iy8hmyUgrSWgu99rAiZEd7XDiISOMZM/iuoF5W2NSbfhBMJSuMn6j73huL4Y91s/x/tY4joxLIdZcykqQ6RiD+S8ezwPgnI2jHNKoJ2HXpiJrA0R40Wib5jVynr3bjluYAZPXRQE6cwbSJiVQwRIcSCxEHWG3LakRcg0kd81... --- End of inner exception stack trace --- at System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) at System.Web.UI.ViewStateException.ThrowMacValidationError(Exception inner, String persistedState) 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: CLOUD278
 
New Post
11/29/2012 5:43 PM
 
Hi Alex,

I have done some research on this issue and have come across a solution which seems to indicate a session timeout on your web server.

Try to set form authentication timeout less than your session timeout in web config e.g (18 minutes)
DNN does not use sessions, but default session timeout is 20 minutes if they are used.

You can find more info at the following link: http://www.dotnetnuke.com/resources/f...

Please let me know if you have any questions.

Thanks
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartRefreshing a category page. Page load exception. Validation of viewstate MAC failed.Refreshing a category page. Page load exception. Validation of viewstate MAC failed.