S
sck10
Hello,
I have a web project (VS 2008 c#). I have a page that opens, but when I try
to call an assembly (managed c++) on a submit event, I get the following
error on the web server, but not on my development machine. It seems that
this is the only dll in the Bin folder that has this problem. Any help with
this would be appreciated.
Thanks, sck10
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\v2.0.50727\Temporary ASP.NET
Files\root\ee318654\cc1d961a\App_Web_license.aspx.a0baaa50.5m89g2lw.0.cs
Line: 0
Stack Trace:
[HttpException (0x80004005): Unable to validate data.]
System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf,
Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +294
System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +203
[ViewStateException: Invalid viewstate.
Client IP: 135.185.49.144
Port: 1545
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648;
..NET CLR 3.5.21022)
ViewState:
/wEPDwUKMTcwMDU3NDA4Mw9kFgJmD2QWAgIDD2QWDgIDDxYCHgRUZXh0BQxMaWNlbnNlIEZvcm1kAgUPFgIfAAUFMTE6MzlkAgcPFgIfAAUFMTc6MzlkAgkPFgIfAAUFMjM6MzlkAgsPFgIeC18hSXRlbUNvdW50AiAWQAIBD2QWBAIBDxYCHwBkZAICDxUBHzxzcGFuIGNsYXNzPSJCbHVlQiI+R1NUVDwvc3Bhbj5kAgIPZBYEAgEPFgIfAGRkAgIPFQE0PGEgaHJlZj0iLi4vLi4vZGVmYXVsdC5hc3B4IiB0YXJnZXQ9Il9zZWxmIj5Ib21lPC9hPmQCAw9kFgQCAQ8WAh8ABVk8dHI+PHRkIHN0eWxlPSd3aWR0aDoxMDAlOyBoZWlnaHQ6MnB4Oyc+PGhyIHN0eWxlPSdjb2xvcjogIzJENTk4Njsgc2l6ZToxcHgnIC8+PC90ZD48L3RyPmQCAg8VASg8c3BhbiBjbGFzcz0iQmx1ZUIiPkN1c3RvbWVyIENhcmU8L3NwYW4+ZAIED2QWBAIBDxYCHwBkZAICDxUBNzxhIGhyZWY9Ii4uLy4uL3hhc3B4cy9zY19jY3MvIiB0YXJnZXQ9Il9zZWxmIj5JbnRybzwvYT5kAgUPZBYEAgEPFgIfAAVZPHRyPjx0ZCBzdHlsZT0nd2lkdGg6MTAwJTsgaGVpZ2h0OjJweDsnPjxociBzdHlsZT0nY29sb3I6ICMyRDU5ODY7IHNpemU6MXB4JyAvPjwvdGQ+PC90cj5kAgIPFQEnPHNwYW4...]
[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) +267
System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +282
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() +198
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +83
System.Web.UI.Page.LoadAllState() +35
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7350
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) +213
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.xaspx_db_ccs_license_aspx.ProcessRequest(HttpContext context) in
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\root\ee318654\cc1d961a\App_Web_license.aspx.a0baaa50.5m89g2lw.0.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+358
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +64
I have a web project (VS 2008 c#). I have a page that opens, but when I try
to call an assembly (managed c++) on a submit event, I get the following
error on the web server, but not on my development machine. It seems that
this is the only dll in the Bin folder that has this problem. Any help with
this would be appreciated.
Thanks, sck10
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\v2.0.50727\Temporary ASP.NET
Files\root\ee318654\cc1d961a\App_Web_license.aspx.a0baaa50.5m89g2lw.0.cs
Line: 0
Stack Trace:
[HttpException (0x80004005): Unable to validate data.]
System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf,
Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +294
System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +203
[ViewStateException: Invalid viewstate.
Client IP: 135.185.49.144
Port: 1545
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648;
..NET CLR 3.5.21022)
ViewState:
/wEPDwUKMTcwMDU3NDA4Mw9kFgJmD2QWAgIDD2QWDgIDDxYCHgRUZXh0BQxMaWNlbnNlIEZvcm1kAgUPFgIfAAUFMTE6MzlkAgcPFgIfAAUFMTc6MzlkAgkPFgIfAAUFMjM6MzlkAgsPFgIeC18hSXRlbUNvdW50AiAWQAIBD2QWBAIBDxYCHwBkZAICDxUBHzxzcGFuIGNsYXNzPSJCbHVlQiI+R1NUVDwvc3Bhbj5kAgIPZBYEAgEPFgIfAGRkAgIPFQE0PGEgaHJlZj0iLi4vLi4vZGVmYXVsdC5hc3B4IiB0YXJnZXQ9Il9zZWxmIj5Ib21lPC9hPmQCAw9kFgQCAQ8WAh8ABVk8dHI+PHRkIHN0eWxlPSd3aWR0aDoxMDAlOyBoZWlnaHQ6MnB4Oyc+PGhyIHN0eWxlPSdjb2xvcjogIzJENTk4Njsgc2l6ZToxcHgnIC8+PC90ZD48L3RyPmQCAg8VASg8c3BhbiBjbGFzcz0iQmx1ZUIiPkN1c3RvbWVyIENhcmU8L3NwYW4+ZAIED2QWBAIBDxYCHwBkZAICDxUBNzxhIGhyZWY9Ii4uLy4uL3hhc3B4cy9zY19jY3MvIiB0YXJnZXQ9Il9zZWxmIj5JbnRybzwvYT5kAgUPZBYEAgEPFgIfAAVZPHRyPjx0ZCBzdHlsZT0nd2lkdGg6MTAwJTsgaGVpZ2h0OjJweDsnPjxociBzdHlsZT0nY29sb3I6ICMyRDU5ODY7IHNpemU6MXB4JyAvPjwvdGQ+PC90cj5kAgIPFQEnPHNwYW4...]
[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) +267
System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +282
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() +198
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +83
System.Web.UI.Page.LoadAllState() +35
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7350
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) +213
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.xaspx_db_ccs_license_aspx.ProcessRequest(HttpContext context) in
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\root\ee318654\cc1d961a\App_Web_license.aspx.a0baaa50.5m89g2lw.0.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+358
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +64