hi,
I am using SqlProvider for the ViewStates .If I do alot of post backs on a same page then sometime I get following error message.
Any thoughts?
Many thanks
Server Error in '/' Application.Violation of PRIMARY KEY constraint 'PK_WAOViewStateData'. Cannot insert duplicate key in object 'dbo.WAOViewStateData'. The duplicate key value is (VIEWSTATE_fokuma4mj3d1hrh5wyppkiay_567609788_635346299515750645).
The statement has been terminated.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PK_WAOViewStateData'. Cannot insert duplicate key in object 'dbo.WAOViewStateData'. The duplicate key value is (VIEWSTATE_fokuma4mj3d1hrh5wyppkiay_567609788_635346299515750645).
The statement has been terminated.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SqlException (0x80131904): Violation of PRIMARY KEY constraint 'PK_WAOViewStateData'. Cannot insert duplicate key in object 'dbo.WAOViewStateData'. The duplicate key value is (VIEWSTATE_fokuma4mj3d1hrh5wyppkiay_567609788_635346299515750645).
The statement has been terminated.]
MonoSoftware.Web.WAO.ViewState.Providers.SqlProvider.Save() +1416
System.Web.UI.Page.SaveAllState() +1158
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4860
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18446
This content has not been rated yet.
845
Reputation
93
Total posts