![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Man Bear Pig Hunter
Join Date: Jul 2005
Location: NorCal, USA
Posts: 295
Rep Power: 4
![]() |
Validation of viewstate MAC failed, Error
Well I got this fun error on a web site for a client after I left a page with a viewstate open for a day or two before taking action.
Validation of viewstate MAC failed. Anyone ever seen that before?
__________________
People who click "images" that end with .exe shouldn't have computers. Last edited by big_k105; Sep 26th, 2006 at 10:49 AM. Reason: Changed title from "M$ Haters Enjoy =P" |
|
|
|
|
|
#2 |
|
Professional Programmer
![]() Join Date: Sep 2005
Posts: 419
Rep Power: 4
![]() |
>M$ Haters Enjoy =P
What does that have to do with Microsoft? The cause of that exception is nothing more than sloppy programming.
__________________
Even if the voices aren't real, they have some pretty good ideas. |
|
|
|
|
|
#3 | |
|
Programming Guru
![]() ![]() |
To me that error looks like your server ether isn't configured properly, or your code has a bug in it. I suggest turning on debugging, like it suggests in your error message:
Quote:
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
|
#4 |
|
Man Bear Pig Hunter
Join Date: Jul 2005
Location: NorCal, USA
Posts: 295
Rep Power: 4
![]() |
Well if you guys do any research on the issue, it is a bug in the .net 2.0 framework.... So Narue, there is your answer. It is a glitch in the view state encryption because it is lost when the session expires and tries to resume.
__________________
People who click "images" that end with .exe shouldn't have computers. |
|
|
|
|
|
#5 | |
|
Professional Programmer
|
The title Big_K changed to is still much more appropriate and descriptive than "M$ Haters Enjoy =P".
Quote:
__________________
Amateurs built the ark Professionals built the Titanic |
|
|
|
|
|
|
#6 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
I always liked, "Li'l ol' blonde, nubile, oversexed, raving beauty needs help!"
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#7 |
|
Man Bear Pig Hunter
Join Date: Jul 2005
Location: NorCal, USA
Posts: 295
Rep Power: 4
![]() |
DaWei, can I use that one later?
__________________
People who click "images" that end with .exe shouldn't have computers. |
|
|
|
|
|
#8 |
|
Expert Programmer
|
Ghost, edit your web.config file, and insert the following lines:
<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>Then run you web application again, and do whatever you did to get the error, but this time the page will show you those naughty lines of code. And you'll be able to correct them further. Also check if this error occurs locally, if the same error occurs, try debugging using Microsofts VWD debugging tools. Its pretty helpful. Mainly because during runtime you can put your mouse over a variable and see its value. :-)
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
#9 |
|
Man Bear Pig Hunter
Join Date: Jul 2005
Location: NorCal, USA
Posts: 295
Rep Power: 4
![]() |
This is currently what I have, and what I had at the time. Anything seem wrong? I dont understand why is added the assembly stuff there, but maybe you can tell me. The soluation has other projects that compile as DLLs, such as the business layer and data access layer, are those them?
<compilation debug="true" strict="false" explicit="true">
<assemblies>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
__________________
People who click "images" that end with .exe shouldn't have computers. |
|
|
|
|
|
#10 |
|
Expert Programmer
|
Well that error page explains a lot
Can you just tell me which controls are on the page? 1. One fix you may be able to try is, click on a control and push F4 to show the properties, then look for one called "Viewstate". If it is set to false on any of your controls, try switching it to true. 2. This may also help: Clicky! 3. If none of these are helping, try adding the following line to your Web.config file: <pages enableEventValidation="false" viewStateEncryptionMode ="Never" /> Have fun ![]()
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C# corruption!!! | Kilo | C++ | 32 | May 21st, 2006 8:44 PM |
| Masm | rsnd | Assembly | 4 | May 20th, 2006 9:05 PM |
| C++ OWL What am I doing wrong | Vagabond | C++ | 7 | Mar 24th, 2006 5:31 PM |
| libraries | matko | C | 1 | Jan 22nd, 2006 2:12 PM |
| HELP please!!! | hamacacolgante | C | 7 | Nov 21st, 2005 5:36 AM |