ASP.NET
Web Form App written in Visual Studio using 4.6.1 framework not working in IE 11
Gravatar is a globally recognized avatar based on your email address. Web Form App written in Visual Studio using 4.6.1 framework not working in IE 11
  Rick D
  All
  Aug 3, 2017 @ 08:52am

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 configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

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

Gravatar is a globally recognized avatar based on your email address. re: Web Form App written in Visual Studio using 4.6.1 framework not working in IE 11
  Rick Strahl
  Rick D
  Aug 3, 2017 @ 09:52am

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 ---

Gravatar is a globally recognized avatar based on your email address. re: Web Form App written in Visual Studio using 4.6.1 framework not working in IE 11
  Rick D
  Rick Strahl
  Aug 3, 2017 @ 06:06pm

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

© 1996-2024