Hello - I created three web applications built on the 4.6.1 framework in Visual Studio 2015. These apps do not work on IE 11, but works fine in Chrome. The error I receive is this -- > Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that
I am using Bootstrap and HTML5
I am not hosting on a Web Farm or in a cluster. Also I am not specifying a machine key
Any Ideas?
Thanks
Rick D
No idea.
ViewStateMac uses machine keys to generate the unique key that gets embedded in Viewstate, but since it's working in other browsers I don't think there's a problem with the actual viewstate data, but rather how the data is being sent across the requests.
I would run Fiddler traces to compare whats different between the IE and Chrome (or whatever) browser instances and see if there's something different. Viewstate validation errors usually mean that the VS isn't being sent properly across requests. It could also be that your Viewstate is too large - IE has some configurable limitations for the HTTP content body/headers that might have an affect on this although I'd think you'd get a different error.
+++ Rick ---
Thanks for the advice. I use Fiddler and see if I can find out what might be going on. I did get one working later today by setting the framework to 4.5 and recompiling. After I deployed to IIS it worked. I don't remember if I mentioned in my initial post that the applications are deployed to VMWare virtual servers.
Rick