Im developing an ASP.NET application used for maintinance purpose and
it may be idle for some ours. The application crash with the error
shown below when the user click on some contol in the appliaction.
This crash occurs on every clients at same time, event for the client
at the local server. I added some logging to the Application_Err or
method that contains following:
Exception of type System.Web.Http UnhandledExcept ion was thrown.
at System.Web.UI.P age.HandleError (Exception e)
at System.Web.UI.P age.ProcessRequ estMain()
at System.Web.UI.P age.ProcessRequ est()
at System.Web.UI.P age.ProcessRequ est(HttpContext context)
at System.Web.Call HandlerExecutio nStep.System.We b.HttpApplicati on
+IExecutionStep .Execute()
at System.Web.Http Application.Exe cuteStep(IExecu tionStep step,
Boolean& completedSynchr onously)
We have deployed the application on a lot of plats without any problem
so it seems that we have some problem with the setting for the IIS.
The IIS is windows standard compinent in Windows server 2003. Note
that we using .Net framework 1.1 and the serve also have .NET
framework 2.0 installed.
Information from the Webclient:
Unable to validate data.
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.Http Exception: Unable to validate data.
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:
[HttpException (0x80004005): Unable to validate data.]
System.Web.Conf iguration.Machi neKey.GetDecode dData(Byte[] buf,
Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +196
System.Web.UI.L osFormatter.Des erialize(String input) +60
[HttpException (0x80004005): Authentication of viewstate failed. 1)
If this is a cluster, edit <machineKeyconf iguration so all servers
use the same validationKey and validation algorithm. AutoGenerate
cannot be used in a cluster. 2) Viewstate can only be posted back to
the same page. 3) The viewstate for this page might be corrupted.]
System.Web.UI.L osFormatter.Des erialize(String input) +118
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium() +102
[HttpException (0x80004005): Invalid_Viewsta te
Client IP: 127.0.0.1
Port: 4160
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET
CLR 1.1.4322; .NET CLR 2.0.50727)
ViewState: dDwxMDkyNjEwOT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aW9uRGF0YTp jaGtVcGRhdGVUcn VuOz4+/
U9vGHqMxtg5HH83 KjI8tR+iw9c=
Http-Referer: http://localhost/Default.aspx
Path: /Default.aspx.]
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium() +448
System.Web.UI.P age.LoadPageVie wState() +18
System.Web.UI.P age.ProcessRequ estMain() +447
/Stefan S
it may be idle for some ours. The application crash with the error
shown below when the user click on some contol in the appliaction.
This crash occurs on every clients at same time, event for the client
at the local server. I added some logging to the Application_Err or
method that contains following:
Exception of type System.Web.Http UnhandledExcept ion was thrown.
at System.Web.UI.P age.HandleError (Exception e)
at System.Web.UI.P age.ProcessRequ estMain()
at System.Web.UI.P age.ProcessRequ est()
at System.Web.UI.P age.ProcessRequ est(HttpContext context)
at System.Web.Call HandlerExecutio nStep.System.We b.HttpApplicati on
+IExecutionStep .Execute()
at System.Web.Http Application.Exe cuteStep(IExecu tionStep step,
Boolean& completedSynchr onously)
We have deployed the application on a lot of plats without any problem
so it seems that we have some problem with the setting for the IIS.
The IIS is windows standard compinent in Windows server 2003. Note
that we using .Net framework 1.1 and the serve also have .NET
framework 2.0 installed.
Information from the Webclient:
Unable to validate data.
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.Http Exception: Unable to validate data.
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:
[HttpException (0x80004005): Unable to validate data.]
System.Web.Conf iguration.Machi neKey.GetDecode dData(Byte[] buf,
Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +196
System.Web.UI.L osFormatter.Des erialize(String input) +60
[HttpException (0x80004005): Authentication of viewstate failed. 1)
If this is a cluster, edit <machineKeyconf iguration so all servers
use the same validationKey and validation algorithm. AutoGenerate
cannot be used in a cluster. 2) Viewstate can only be posted back to
the same page. 3) The viewstate for this page might be corrupted.]
System.Web.UI.L osFormatter.Des erialize(String input) +118
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium() +102
[HttpException (0x80004005): Invalid_Viewsta te
Client IP: 127.0.0.1
Port: 4160
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET
CLR 1.1.4322; .NET CLR 2.0.50727)
ViewState: dDwxMDkyNjEwOTE 4O3Q8cDxsPEN0cm xJZDs
+O2w8UG9zaXRpb2 5EYXRhOz4+O2w8a TwxPjs+O2w8dDw7 bDxpPDM
+Oz47bDx0PHA8cD xsPENzc0NsYXNzO 18hU0I7PjtsPG1h aW5UYWJsZTtpPDI
+Oz4+Oz47bDxpPD A+O2k8MT47PjtsP HQ8O2w8aTwwPjs+ O2w8dDw7bDxpPDA
+Oz47bDx0PDtsPG k8MD47aTwyPjs
+O2w8dDxwPHA8bD xDc3NDbGFzcztfI VNCOz47bDx0YWJU YWJsZTtpPDI
+Oz4+Oz47Oz47dD xwPHA8bDxDc3NDb GFzcztfIVNCOz47 bDx0YWJTdWJUYWJ sZTtpPDI
+Oz4+Oz47Oz47Pj 47Pj47Pj47dDw7b DxpPDA
+Oz47bDx0PDtsPG k8MD47PjtsPHQ8O 2w8aTwxPjtpPDM
+Oz47bDx0PDtsPG k8MT47aTwzPjtpP DU
+O2k8OT47aTwxMT 47aTwxNT47aTwxN z47PjtsPHQ8cDxw PGw8VGV4dDs
+O2w8Wm9uOz4+Oz 47Oz47dDx0PDt0P Gk8MTM
+O0A8Q2hvb3NlIF pvbmU7TWFza2UgM SBQbG9ja3N0YXRp b24gMTtNYXNrZSA xIFBsb2Nrc3RhdG lvbiAyO01hc2tlI DIgUGxvY2tzdGF0 aW9uIDM7TWFza2U gMiBQbG9ja3N0YX Rpb24gNDtNYXNrZ SAzIElEIFN0YXRp b24gMTtNYXNrZSA zIElEIFN0YXRpb2 4gMjtNYXNrZSAzI ElEIFN0YXRpb24g MztNYXNrZSA0IEt yYW4gMS0yO01hc2 tlIDQgS3JhbiAzL TQ7TWFza2UgNCBL cmFuIDUtNjtNYX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ZF 9Qb3NpdGlvbkRhd GE6YnV0UHJldjtD dHJsSWRfUG9zaXR pb25EYXRhOmJ1dE 5leHQ7Q3RybElkX 1Bvc2l0aW9uRGF0 YTpjaGtNTUM7Q3R ybElkX1Bvc2l0aW 9uRGF0YTpjaGtQb GM7Q3RybElkX1Bv c2l0aW9uRGF0YTp jaGtVcGRhdGVUcn VuOz4+/
U9vGHqMxtg5HH83 KjI8tR+iw9c=
Http-Referer: http://localhost/Default.aspx
Path: /Default.aspx.]
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium() +448
System.Web.UI.P age.LoadPageVie wState() +18
System.Web.UI.P age.ProcessRequ estMain() +447
/Stefan S
Comment