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 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.
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">
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.