I'm getting this error in production very often. Does anyone of you know any reasons for it?
I can't reproduce this in dev/test environments. All the javascripts are covered with CDATA. The thing that I noticed is that the 't' param to the ScriptResource is always missing when the error occures.
Would be really great if someone can help with this issue.
Also this is an authenticated environment and bots can't come to these pages.
Click "Mark as Answer" on the post that helped you.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
Did you ever get to the bottom of this? We are experiencing the same problem on our production site. Is this a known bug?
Timestamp local: 19/04/2009 2:49:05 PM Message: HandlingInstanceID: 8be38756-c687-4eb1-a31a-72c33102a654 An exception of type 'System.Web.HttpException' occurred and was caught. ------------------------------------------------------------------------ 04/19/2009
14:49:05 Type : System.Web.HttpException, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a Message : Invalid viewstate. Source : System.Web Help link : ErrorCode : -2147467259 Data : System.Collections.ListDictionaryInternal TargetSite
: System.String DecryptStringWithIV(System.String, System.Web.Configuration.IVType) Stack Trace : at System.Web.UI.Page.DecryptStringWithIV(String s, IVType ivType) at System.Web.UI.Page.DecryptString(String s) at System.Web.Handlers.ScriptResourceHandler.DecryptParameter(NameValueCollection
queryString) at System.Web.Handlers.ScriptResourceHandler.ProcessRequestInternal(HttpResponse response, NameValueCollection queryString, VirtualFileReader fileReader) at System.Web.Handlers.ScriptResourceHandler.ProcessRequest(HttpContext context) at System.Web.Handlers.ScriptResourceHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext
context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
This is not really something that we are going to be able to solve here as it is not really a coding problem. You could try setting EnableViewStateMac="false" in the page header and see if that helps
I agree that this problem seems to be related to an IE8 issue/bug. We'll try your solutions, but we are concerned that this will not resolve the problem for the long term.
Some investigation and response on the part of Microsoft about this issue would be reassuring. Do they know about it? Do they acknowledge it? If so, what is going to be done about it? Can some code be applied where we can override the asp.net's behavior
to account for this issue or are we stuck waiting for IE8 upgrades or patches.
Pardon my newbie status, but which file do I need to insert the tag on? More specifically, do I just need to insert it into our login page and then the session adapts to subsequent pages? or do I need the tag on every page our customers hit. I'm having the
same issue.
sujaai
0 Points
4 Posts
DecryptStringWithIV - Invalid viewstate error
Apr 13, 2009 08:56 PM|LINK
I'm getting this error in production very often. Does anyone of you know any reasons for it?
I can't reproduce this in dev/test environments. All the javascripts are covered with CDATA. The thing that I noticed is that the 't' param to the ScriptResource is always missing when the error occures.
Would be really great if someone can help with this issue.
Also this is an authenticated environment and bots can't come to these pages.
Thanks!
2009-04-13 09:22:52,043 [15] DEBUG ASP.global_asax [(null)] - Request end. Time Elapsed: 15.6242 (ms), URL: /Web/Signin.aspx?ReturnUrl=%2fWeb%2fSeeker%2fJobDetails.aspx%3fJobId0%3dead21a26-6456-4130-a9ef-87e5e76ced9e&JobId0=ead21a26-6456-4130-a9ef-87e5e76ced9e
2009-04-13 09:22:52,839 [8] DEBUG ASP.global_asax [(null)] - Request start - URL: /Web/ScriptResource.axd?d=fwIDjwxM7qD3nzWlM9-GJJREjuxud8fjuaD26MYhuo2Bf9pz2myiCTK
2009-04-13 09:22:52,839 [8] DEBUG ASP.global_asax [(null)] - Application_AuthenticateRequest started
2009-04-13 09:22:52,839 [8] ERROR ASP.global_asax [(null)] - Unexpected error. User presented with Site Error page.
System.Web.HttpException: Invalid viewstate.
at System.Web.UI.Page.DecryptStringWithIV(String s, IVType ivType)
at System.Web.UI.Page.DecryptString(String s)
at System.Web.Handlers.ScriptResourceHandler.DecryptParameter(NameValueCollection queryString)
at System.Web.Handlers.ScriptResourceHandler.ProcessRequestInternal(HttpResponse response, NameValueCollection queryString, VirtualFileReader fileReader)
at System.Web.Handlers.ScriptResourceHandler.ProcessRequest(HttpContext context)
at System.Web.Handlers.ScriptResourceHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
TATWORTH
All-Star
72415 Points
14017 Posts
MVP
Re: DecryptStringWithIV - Invalid viewstate error
Apr 14, 2009 05:02 AM|LINK
You can also ask on the Dot Net forum at http://forums.microsoft.com/MSDN/default.aspx?ForumGroupID=12&SiteID=1
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
mylesjj
Member
2 Points
1 Post
Re: DecryptStringWithIV - Invalid viewstate error
Apr 20, 2009 12:43 AM|LINK
Did you ever get to the bottom of this? We are experiencing the same problem on our production site. Is this a known bug?
Timestamp local: 19/04/2009 2:49:05 PM Message: HandlingInstanceID: 8be38756-c687-4eb1-a31a-72c33102a654 An exception of type 'System.Web.HttpException' occurred and was caught. ------------------------------------------------------------------------ 04/19/2009 14:49:05 Type : System.Web.HttpException, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a Message : Invalid viewstate. Source : System.Web Help link : ErrorCode : -2147467259 Data : System.Collections.ListDictionaryInternal TargetSite : System.String DecryptStringWithIV(System.String, System.Web.Configuration.IVType) Stack Trace : at System.Web.UI.Page.DecryptStringWithIV(String s, IVType ivType) at System.Web.UI.Page.DecryptString(String s) at System.Web.Handlers.ScriptResourceHandler.DecryptParameter(NameValueCollection queryString) at System.Web.Handlers.ScriptResourceHandler.ProcessRequestInternal(HttpResponse response, NameValueCollection queryString, VirtualFileReader fileReader) at System.Web.Handlers.ScriptResourceHandler.ProcessRequest(HttpContext context) at System.Web.Handlers.ScriptResourceHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
sujaai
0 Points
4 Posts
Re: DecryptStringWithIV - Invalid viewstate error
Apr 20, 2009 12:50 AM|LINK
It seems to be the same issue.
I'm yet to find any solution for this in the Internet. Please let me know if you come across a soluton.
Thanks,
Chamila
NC01
All-Star
82577 Points
15430 Posts
MVP
Re: DecryptStringWithIV - Invalid viewstate error
Apr 20, 2009 06:06 PM|LINK
Here are a few links that might help:
http://support.microsoft.com/kb/555353
http://www.west-wind.com/WebLog/posts/2588.aspx
http://blogs.msdn.com/tess/archive/2007/06/11/a-case-of-invalid-viewstate.aspx
more at: http://www.google.com/search?hl=en&q=Invalid+viewstate&btnG=Google+Search&aq=f&oq=
NC...
ans_anish
Member
317 Points
110 Posts
Re: DecryptStringWithIV - Invalid viewstate error
May 07, 2009 01:46 AM|LINK
I'm also facing similar problem in my production server. But I have narrowed it down to IE8 issue/bug. No error is generated in IE7, firefox.
Application_Error ScriptResource.axd?d=zesQ8qWtSY5VVHupTTuo0OLyQUaSoQEZrd6R3_TfQOsPc6gLidVn
I just added <meta http-equiv="X-UA-Compatible" content="IE=7" />. This meta tag which will switch IE8 into IE7 compatibility.
Problem fixed.
NC01
All-Star
82577 Points
15430 Posts
MVP
Re: DecryptStringWithIV - Invalid viewstate error
May 07, 2009 11:29 AM|LINK
This is not really something that we are going to be able to solve here as it is not really a coding problem. You could try setting EnableViewStateMac="false" in the page header and see if that helps
Also these links have some very useful information:
http://support.microsoft.com/kb/555353
http://bytes.com/topic/asp-net/answers/861764-invalid-viewstate-system-string-decryptstringwithiv
NC...
JFMConcepts
Member
12 Points
8 Posts
Re: DecryptStringWithIV - Invalid viewstate error
May 18, 2009 03:57 PM|LINK
I agree that this problem seems to be related to an IE8 issue/bug. We'll try your solutions, but we are concerned that this will not resolve the problem for the long term.
Some investigation and response on the part of Microsoft about this issue would be reassuring. Do they know about it? Do they acknowledge it? If so, what is going to be done about it? Can some code be applied where we can override the asp.net's behavior to account for this issue or are we stuck waiting for IE8 upgrades or patches.
Thanks,
John
NC01
All-Star
82577 Points
15430 Posts
MVP
Re: DecryptStringWithIV - Invalid viewstate error
May 18, 2009 04:25 PM|LINK
I have seen few Microsoft personnel posting here. I would go to their tech site for help on this.
NC...
elbombero
Member
2 Points
1 Post
Re: DecryptStringWithIV - Invalid viewstate error
Jun 20, 2009 12:52 PM|LINK
Hey Fellas,
Pardon my newbie status, but which file do I need to insert the tag on? More specifically, do I just need to insert it into our login page and then the session adapts to subsequent pages? or do I need the tag on every page our customers hit. I'm having the same issue.
<meta http-equiv="X-UA-Compatible" content="IE=7" />.
Any help would be appreciated.
Thanks.