Last post May 06, 2019 02:56 AM by Ackerly Xu
May 06, 2019 12:53 AM|techasuran|LINK
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)
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.
May 06, 2019 01:54 AM|KathyW|LINK
You need to have the same machine key (it doesn't matter where you generate it) in all the web.configs for the site, on all servers.
As for a 404 error related to WebResource.axd, you would need far more information than you posted for help with that. For a general discussion on some causes of that error, see, for example,
May 06, 2019 02:56 AM|Ackerly Xu|LINK
Hi techasuran ,
By default, web form uses auto generated machine key to encrypt .
If you are using a webfarm , different websites will generate different machine key , so it will cause validation failure.
For generating the same machine key for all your website in web.config , you could refer to