Last post Apr 17, 2017 07:25 AM by AbdulMohammed
Apr 13, 2017 01:32 PM|AbdulMohammed|LINK
i am working on a asp.net c# webapplication, with few pages.
i am having one product page product with few products and each product is having it own details like its name, number, quantity and date and a seperate asp.net button for enquiry for each individual product.
second a enquiry page with few text fields,
when i click on a specific enquiry button from product page it will transfer data like name, number, quantity and date from product page to enquiry page.
when enquiry page load it is getting the data correctly.
Everything is working fine in my machine, but when i host it on sever for example test.com, in that product page if i click on enquiry button then the below error will display
Apr 13, 2017 07:30 PM|niksv|LINK
Validation of viewstate MAC failed
Apr 14, 2017 03:18 AM|Zhi Lv - MSFT|LINK
The machineKey value has to be the same on all machines in a webfarm. You could refer to the following articles to configure the machinekey.
Apr 14, 2017 11:27 AM|paindaasp|LINK
I also had this problem. Answer the following to see if your situation is close to mine:
If you answered yes to some or all of the above,
check out this Validation of viewstate MAC Failed post
Apr 17, 2017 07:25 AM|AbdulMohammed|LINK
i think i couldn't explain my question properly, sorry for that,
my question was regarding asp.net web application using c#
one of my page has few asp.net labels with some text in it and a asp.net button, on button click event i need to transfer the data from labels of one asp.net page to another asp.net page
in development environment it was working fine, when i hosted it on server & when i clicked this button i got this error,
after googling alot and suggestion from this asp.net forum i came to know that i am missing machine key
now the issue is resolved by putting machine key in web.config file
thanks for your suggestion too