validation of viewstate MAC failed

B

bill

I have a web form developed in VS 2005 (VB) which I need to post to a web
form developed in VS 2003 (VB) which is on a different server.

There is no web farm or cluster involved.

There is an html button which calls a javascript function which submits a
<form> in the VS2005 web form when clicked. The action of the <form> is the
url of the VS2003 web form.

The VS2003 web form displays the error: "Validation of viewstate MAC failed"

What is the cause of this error? How can I avoid it?

Thanks!
Bill
 
G

Guest

Bill,
if you just put that exception message into a search as I just did, you'll
find a number of issues raised and some workarounds. One of them is adding:

<pages validateRequest="false" enableEventValidation="false"
viewStateEncryptionMode ="Never" />

to the web.config.
Peter
 
B

bill

Thanks, I did that, for hours, as I always do before posting myself. You
will see that there are also many posts from users who were unable to
resolve this problem with that workaround. I fall into that category. I am
not using a gridview control and it doesn't occur because the page is being
posted too soon, etc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top