TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Priya Raman
NA
1
2.1k
Invalid viewstate error using dynamic controls asp.net c#
Jul 28 2015 11:24 AM
In asp.net web application, we are using dynamic controls in asp Table and other static controls.while navigating between forms or postabcks, We
are facing an intermittent issue "Invalid Viewstate".
Error Message:Invalid viewstate.
Client IP: 27.251.48.180
Port: 8968
Referer: http://50.193.80.10/wfmtest/DailyErection.aspx
Path: /wfmtest/DailyErection.aspx
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:39.0) Gecko/20100101 Firefox/39.0
ViewState:
/wEPDwULLTEwOTMwMDU5MDYPZBYCZg9kFgICAw9kFgQCAw8PFgIeBFRleHQFEkJhcmNsYXkgRGF2aWQgVHJveWRkAhEPZBYCAgMPZBYCZg9kFhICAQ8PFgIfAAUKMDctMjgtMjAxNWRkAg0PE
A8WBh4NRGF0YVRleHRGaWVsZAUHSm9iRGVzYx4ORGF0YVZhbHVlRmllbGQFA0pvYh4LXyFEYXRhQm91bmRnFgIeCG9uY2hhbmdlBQ9TaG93UHJvZ3Jlc3MoKTsQFbMBAA8wMS0wMDAgLSBvZm
ZpY2UnMTItMTY1IC0gTm9ydGggJiBQdWxhc2tpIFNlbmlvciBIb3VzaW5nITEyLTE4NCAtIFNhbmdhbW9uIFRlcnJhY2UgU3IgQXB0cx8xMy0xMjggLSBWZXRlcmFucyBOZXcgQmVnaW5uaW5
nFDEzLTEzNyAtIFBpbm5hY2xlIDE2HTEzLTE0MyAtIFRhcGVzdHJ5IEdsZW52aWV3IFBEJjEzLTE2MCAtIEFsZGkgLSBPYWsgQ3JlZWsgV0kgRXhwYW5zaW9uJTEzLTE2MSAtIFVuaXYgb2Yg
Q2hpY2FnbyAtIFNydmNzIEJsZGcaMTMtMTY5IC0gQ2xvdmVyaGlsbCBCYWtlcnkaMTMtMTcwIC0gSGFycGVyIENvbGxlZ2UgUEQmMTMtMTcxIC0gTEEgRml0bmVzcy81NTAxICYgNTYwMCBLZ
WR6aWUdMTMtMTcyIC0gU2FnZSBZTUNBIC0gQmxkZyBBZGQnMTMtMTc0IC0gVG95b3RhI...
Source:
StackTrace:
From the forums, we found few solutions which we changed in web.config file as shown below,
<system.web>
<compilation targetFramework="4.0" />
<httpRuntime executionTimeout="420" maxRequestLength="53248" useFullyQualifiedRedirectUrl="false" />
<authentication mode="Forms">
<forms timeout="600" />
</authentication>
<sessionState mode="InProc" cookieless="false" timeout="560" />
<customErrors mode="On" defaultRedirect="errorPage.aspx" />
<pages enableEventValidation="false" enableViewState="true" enableViewStateMac="false" maxPageStateFieldLength="-1"
viewStateEncryptionMode="Never" />
<machineKey
validationKey='C912F05687CC92785747C70F9241272CE8014BD69F5A3BE7A3A333C4F50FBC83A0398590CC0693AC9D8BEDDEB1EC118A58F8C1FFE090B0D89A020DC75EB9B05E'
decryptionKey='14EFA8EA4BBC435752DE13AB1995AF4A95795F0ECEEFB808' validation='SHA1'/>
</system.web>
Even after this change, we are still finding "Invalid Viewstate" error.
This is of high importance and please anyone help in resolving this issue.
Reply
Answers (
1
)
Displaying data from Database in a Dashboard in asp.net mvc
Get And Post method