Disconnect Error

K

K B

I have suddenly begun getting error messages on multiple pages as
follows. I tried researching, but the issue seems quite confusing...or
perhaps just over my head. Could someone please advise what this means
and if there is a way to fix it. I have tried adding
EnableViewstateMAC="false" in the page declaration with no success.
Again, it does not appear to be consistent.
I'm using ASP.NET 2.0 with IE7.

THANKS!
Kit

Application_Error:Error in: http://216.94.25.56/ProductCast.aspx Error
Message: The client disconnected. Exception: System.Web.HttpException:
The client disconnected. ---> System.Web.UI.ViewStateException: Invalid
viewstate.
Client IP: 66.152.230.252
Port: 15481
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
1.1.4322; .NET CLR 2.0.50727)
ViewState:
gWhuGp59Xfm5WTXBD49+g1g3Atf1mx9KGXwGLGF/ZkmSXKvNbsHAM5YFGK+5bBssY1N1hRsM
FwQeIX6BGAXurgSPGV8YRN+4K2TT8KzyWsRzwyH33uDOP/OpVfGxWL/xwYnPH3kgu19h4lFf
1hMvSzGfJw9m07S6UpQU1oEFowhWHOC2h+TdSt4wPuxov1hmZM1vxPDt8HbWY3TjPnAFEc2x
3LClq/Mp4OWiss5wmYvNXsWzXBzzGl7WlGR5TfTK+vcusyF1bp1ircSNtLDxaDrJE/G84i0J
iZFbZuKiOQ9yyadhqODyKMbT7ELksL0SfOlTEATXrsJrvrY74O9/0wh8wTgnYHVh0lY7AFi/
sQmF/9m5HoDLf6b+QB/ZgqtfI0oHpXpGI4wbOoqyqEM8uNhBPxmTQI+RJ7tFpju0cPmKwmfN
7pJZVR9Gtj3GuxKEav0CIxDmL0mPP41t2E45hjOB69WIWw0ezAJURNWuiKy2SffCkeJ6de7x
6Gig+Qd0OfDZylBU7hqLsVZevKcYfLlltHs7xQZl/7obp3Z71CEGkVPwusJCvWx+keOjXz91
q4715A6L/LXFz3hkSWQoHzhXQTxcdOstgPMHw0gAclah6ntGh3k5ybxhpgkRNxTX2MnvTVR/
gaYTYlPrVo2GK3qEcKmU1LBz5E2CrRsxRzKa8q0nNAYd8xrvpqNgu7QslSx6Bu3wqNIKeWZL
eNUXi6AQjYf0xPOsBnMixc/unQ4HF6YjD6xVMpCq7joTYtuxzUFbJjE6/Pf/06IgESW6Ddqu
0OiQImJRSg/P3Wm/rgISsqmwxYqg4YwWpBhPJ4eJ3aMUZg97TnT3HkEsM0c1NmVqQ9+To...
---> System.FormatException: Invalid character in a Base-64 string.
at System.Convert.FromBase64String(String s)
at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString)
at
System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deseria
lize(String serializedState)
at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter
formatter, String serializedState)
at System.Web.UI.HiddenFieldPageStatePersister.Load()
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Web.UI.ViewStateException.ThrowError(Exception inner,
String persistedState, String errorPageMessage, Boolean
macValidationError)
at System.Web.UI.HiddenFieldPageStatePersister.Load()
at System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
at System.Web.UI.Page.LoadAllState()
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.productcast_aspx.ProcessRequest(HttpContext context)
at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpAppli
cation.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously) Stack Trace: at
System.Web.UI.ViewStateException.ThrowError(Exception inner, String
persistedState, String errorPageMessage, Boolean macValidationError)
at System.Web.UI.HiddenFieldPageStatePersister.Load()
at System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
at System.Web.UI.Page.LoadAllState()
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.productcast_aspx.ProcessRequest(HttpContext context)
at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpAppli
cation.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously)
 
B

bruce barker

there are three steps in saving viewstate

1) serialize to buffer
2) encrypt buffer (prevent hacking) mac address effects this
3) base64 encode buffer (make binary into a 7bit char string)

reading is the reverse. you are getting an error on the base64 decode. a
base64 string has a fixed set of characters (a-z) (A-Z) "+", "/" and
"=". its length must be a multiple of 3.

the error means the viewstate value sent to the browser is not the value
the browser is sending back. a common cause is a proxy server that
truncate the value. if you are sending over 1k of viewstate you should
change you usage of viewstate.


-- bruce (sqlwork.com)
 
K

K B

Thank you, Bruce. I am using a dedicated host server. Can I change the
setting to not truncate the viewstate? If so, could you please point me
in the right direction?

Also, what is the alternative for viewstate? For example, a gridview
upon postback. How would I keep that current? I'm not sure the less than
1K is feasible for my purposes...but its clear you know much more than I
about this. Would you mind giving me more information?

Thanks again!
Kit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,701
Latest member
XavierQ83

Latest Threads

Top