开发者

Viewstate Error in asp.net 4.0 web-application

开发者 https://www.devze.com 2023-03-28 21:26 出处:网络
I have an error in an web application writen in asp.net 4.0 with c#. There is a viewstate or viewstate-MAC error with the following message:

I have an error in an web application writen in asp.net 4.0 with c#. There is a viewstate or viewstate-MAC error with the following message:

[FormatException: The Input开发者_StackOverflow社区 is not a valid Base-64-String....]
.
.
[ViewStateException: Invalid ViewState....]

I´ve tried everything I found on the web for this error.The error appears if the user clicks on an icon redirecting to the details patch of the selected item of an ListView.

Tried without success:

  • setting a machine key (allthough the app isn´t hosted on a webfarm or cluster)
  • Validation of viewstate MAC failed error I have tried this without success
  • and a lot of other things

I hope anyone can help me with this frustrating error. Thx in advance to all of u...


Since your application is not distributed, try adding this to your web.config:

<pages enableViewStateMac="false">
0

精彩评论

暂无评论...
验证码 换一张
取 消