Hi,
This two errors are not going away i've tried giving machine key manually and changing my web.confg but its not helping
This happens when i do postback or dropdown is changed with autopostback true
Server Error in '/' Application.
The state information is invalid for this page and might be corrupted.
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.Web.HttpException: The state information is invalid for this page and might be corrupted.
Source Error:
[No relevant source lines]
Source File: c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\748f2ec5\e4cfec24\App_Web_aktwsur3.1.cs Line: 0
Stack Trace:
[FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or a non-white space character among the padding characters. ]
System.Convert.FromBase64String(String s) +0
System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +77
System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +4
System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37
System.Web.UI.HiddenFieldPageStatePersister.Load() +147
[ViewStateException: Invalid viewstate.
Client IP: 127.0.0.1
Port:
Referer: http://localhost:8636/LR/AddLRS.aspx
Path: /LR/AddLRS.aspx
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0 AlexaToolbar/alxf-2.17
ViewState: /wEPDwUKLTE5NDEwNzYzMg9kFgJmD2QWAmYPZBYCAgMPZBYCAgEPZBYGAgMPPCsADQEMFCsACAUbMDowLDA6MSwwOjIsMDozLDA6NCwwOjUsMDo2FCsAAhYEHgRUZXh0BQRIb21lHgtOYXZpZ2F0ZVVybAURfi9BZG1pbi9Ib21lLmFzcHhkFCsAAhYEHwAFE01hdGVyaWFsIE1hbmFnZW1lbnQfAQUkfi9NYW5hZ2VtZW50L01hdGVyaWFsTWFuYWdlbWVudC5hc3B4FCsABQUPMDowLDA6MSwwOjIsMDozFCsAAhYEHwAFDEFkZCBNYXRlcmlhbB8BBRh+L0FkbWluL0FkZE1hdGVyaWFsLmFzcHhkFCsAAhYEHwAFEkFkZCBNYXRlcmlhbCBUeXBlcx8BBRx+L0FkbWluL0FkZE1hdGVyaWFsVHlwZS5hc3B4ZBQrAAIWBB8ABQZNYW5hZ2UfAQUbfi9BZG1pbi9TZWFyY2hNYXRlcmlhbC5hc3B4ZBQrAAIWBB8ABQ9VcGRhdGUgTWF0ZXJpYWwfAQUcfi9BZG1pbi9VcGRhdGVNYXRlcmlhbC5hc3B4IGQUKwACFgQfAAUNTWFuYWdlIFN0b2Nrcx8BBSF+L01hbmFnZW1lbnQvU3RvY2tNYW5hZ2VtZW50LmFzcHgUKwACBQMwOjAUKwACFgQfAAURQWxsb2NhdGUgTWF0ZXJpYWwfAQUafi9BZG1pbi9NYXRlcmlhbElzc3VlLmFzcHhkFCsAAhYEHwAFElZlaGljbGUgTWFuYWdlb...]
[HttpException (0x80004005): The state information is invalid for this page and might be corrupted.]
System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +198
System.Web.UI.ViewStateException.ThrowViewStateError(Exception inner, String persistedState) +14
System.Web.UI.HiddenFieldPageStatePersister.Load() +251
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +106
System.Web.UI.Page.LoadAllState() +43
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8431
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253
System.Web.UI.Page.ProcessRequest() +78
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.lr_addlrs_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\748f2ec5\e4cfec24\App_Web_aktwsur3.1.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Server Error in '/' Application.
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machinekey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
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.Web.HttpException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machinekey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
Source Error:
[No relevant source lines]
Source File: c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\748f2ec5\e4cfec24\App_Web_wh5scuvj.1.cs Line: 0
Stack Trace:
[ViewStateException: Invalid viewstate.
Client IP: 127.0.0.1
Port:
Referer: http://localhost:8636/Vendor/PurchaseMaterial.aspx
Path: /Vendor/PurchaseMaterial.aspx
User-Agent: Mozilla/5.0 (Windows NT 5.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0 AlexaToolbar/alxf-2.17
ViewState: /wEPDwUJNjIxNDU5MjQ5D2QWAmYPZBYCZg9kFgICAw9kFg9MUi9BZGRMUlMuYXNweGQUKwACFgQfAAUISXNzdWUgTFIfAQUUfi9MUi9QZW5kaW5nTFJTLmFzcHhkFCsAAhYEHwAFCUxvY2F0aW9ucx8BBRV+L0xSL0FkZExvY2F0aW9uLmFzcHhkFCsAAhYEHwAFB1JlcG9ydHMfAQUjfi9NYW5hZ2VtZW50L1JlcG9ydHNNYW5hZ2VtZW50LmFzcHgUKwADBQcwOjAsMDoxFCsAAhYEHwAFD01hdGVyaWFsIElzc3VlZB8BBR5+L1JlcG9ydHMvTUFURVJJQUxfSVNTVUVELmFzcHhkFCsAAhYEHwAFBlN0b2Nrcx8BBRV+L1JlcG9ydHMvU3RvY2tzLmFzcHhkZAIHD2QWBgICDxAPFgYeDURhdGFUZXh0RmllbGQFEk1BVEVSSUFMX1RZUEVfTkFNRR4ORGF0YVZhbHVlRmllbGQFEE1BVEVSSUFMX1RZUEVfSUQeC18hRGF0YUJvdW5kZ2QQFQEKRWxlY3RyaWNhbBUBATEUKwMBZxYBZmQCAw8QDxYGHwIFDU1BVEVSSUFMX05BTUUfAwULTUFURVJJQUxfSUQfBGdkEBUDBlNlbGVjdARmZGZhAmZkFQMGU2VsZWN0BWRmYWRzBWRzZmRzFCsDA2dnZxYBAgFkAgQPEA8WBh8CBQtWRU5ET1JfTkFNRR8DBQlWRU5ET1JfSUQfBGdkEBUBB1Zlb...]
[HttpException (0x80004005): Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machinekey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.]
System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +198
System.Web.UI.ViewStateException.ThrowMacValidationError(Exception inner, String persistedState) +14
System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +274
System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +4
System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37
System.Web.UI.HiddenFieldPageStatePersister.Load() +241
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +106
System.Web.UI.Page.LoadAllState() +43
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8431
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253
System.Web.UI.Page.ProcessRequest() +78
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.vendor_purchasematerial_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\748f2ec5\e4cfec24\App_Web_wh5scuvj.1.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Please Let me know the Workaround