locked
Webresource.axd error and Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster RRS feed

  • Question

  • User1838940990 posted

    HI all,

    We are facing two  issues  in the asp.net web application,  and unfortunately these two error we are able to produce in our stagin and prod servers where load balancer is available

    1, Tree image are not loading initially and after  two or  three clicks on the nodes of the tree view it start loading the image properly . 

    error we can see is the in the  browser console is 

    Failed to load resource: the server responded with a status of 404 (Not Found)
    WebResource.axd

    We can see there are solution is  like adding machine key  in webconfig, we have the below doubt on that as well

    1, how to generate this machine key, can it be from the same server?

    or we can generate the key from out laptop and the same key can be deployed in all the two severs under the loadbalancer.

    2, Other one is when we click on the button and press enter in text box for search , the below error is happening, this is also intermittent

    Server Error in '/' Application.
    Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies

    can anybody has faced the above two issues and is the rootcauase the machine key for the both.

    can anybody help us on this, thanks in advance.

    Monday, May 6, 2019 12:53 AM

All replies