473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Disconnect Error

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+TdSt4wPuxov1hmZM 1vxPDt8HbWY3TjPnAFEc2x
3LClq/Mp4OWiss5wmYvNXsWzXBzzGl7WlGR5TfTK+vcusyF1bp1ircSN tLDxaDrJE/G84i0J
iZFbZuKiOQ9yyadhqODyKMbT7ELksL0SfOlTEATXrsJrvrY74O 9/0wh8wTgnYHVh0lY7AFi/
sQmF/9m5HoDLf6b+QB/ZgqtfI0oHpXpGI4wbOoqyqEM8uNhBPxmTQI+RJ7tFpju0cPmKw mfN
7pJZVR9Gtj3GuxKEav0CIxDmL0mPP41t2E45hjOB69WIWw0ezA JURNWuiKy2SffCkeJ6de7x
6Gig+Qd0OfDZylBU7hqLsVZevKcYfLlltHs7xQZl/7obp3Z71CEGkVPwusJCvWx+keOjXz91
q4715A6L/LXFz3hkSWQoHzhXQTxcdOstgPMHw0gAclah6ntGh3k5ybxhpgk RNxTX2MnvTVR/
gaYTYlPrVo2GK3qEcKmU1LBz5E2CrRsxRzKa8q0nNAYd8xrvpq Ngu7QslSx6Bu3wqNIKeWZL
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(Str ing inputString)
at
System.Web.UI.ObjectStateFormatter.System.Web.UI.I StateFormatter.Deseria
lize(String serializedState)
at System.Web.UI.Util.DeserializeWithAssert(IStateFor matter
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(Except ion inner,
String persistedState, String errorPageMessage, Boolean
macValidationError)
at System.Web.UI.HiddenFieldPageStatePersister.Load()
at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()
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(Http Context context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.productcast_aspx.ProcessRequest(HttpContext context)
at
System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpAppli
cation.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step,
Boolean& completedSynchronously) Stack Trace: at
System.Web.UI.ViewStateException.ThrowError(Except ion inner, String
persistedState, String errorPageMessage, Boolean macValidationError)
at System.Web.UI.HiddenFieldPageStatePersister.Load()
at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()
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(Http Context context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.productcast_aspx.ProcessRequest(HttpContext context)
at
System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpAppli
cation.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step,
Boolean& completedSynchronously)


*** Sent via Developersdex http://www.developersdex.com ***
Apr 25 '07 #1
2 9358
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 B wrote:
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+TdSt4wPuxov1hmZM 1vxPDt8HbWY3TjPnAFEc2x
3LClq/Mp4OWiss5wmYvNXsWzXBzzGl7WlGR5TfTK+vcusyF1bp1ircSN tLDxaDrJE/G84i0J
iZFbZuKiOQ9yyadhqODyKMbT7ELksL0SfOlTEATXrsJrvrY74O 9/0wh8wTgnYHVh0lY7AFi/
sQmF/9m5HoDLf6b+QB/ZgqtfI0oHpXpGI4wbOoqyqEM8uNhBPxmTQI+RJ7tFpju0cPmKw mfN
7pJZVR9Gtj3GuxKEav0CIxDmL0mPP41t2E45hjOB69WIWw0ezA JURNWuiKy2SffCkeJ6de7x
6Gig+Qd0OfDZylBU7hqLsVZevKcYfLlltHs7xQZl/7obp3Z71CEGkVPwusJCvWx+keOjXz91
q4715A6L/LXFz3hkSWQoHzhXQTxcdOstgPMHw0gAclah6ntGh3k5ybxhpgk RNxTX2MnvTVR/
gaYTYlPrVo2GK3qEcKmU1LBz5E2CrRsxRzKa8q0nNAYd8xrvpq Ngu7QslSx6Bu3wqNIKeWZL
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(Str ing inputString)
at
System.Web.UI.ObjectStateFormatter.System.Web.UI.I StateFormatter.Deseria
lize(String serializedState)
at System.Web.UI.Util.DeserializeWithAssert(IStateFor matter
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(Except ion inner,
String persistedState, String errorPageMessage, Boolean
macValidationError)
at System.Web.UI.HiddenFieldPageStatePersister.Load()
at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()
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(Http Context context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.productcast_aspx.ProcessRequest(HttpContext context)
at
System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpAppli
cation.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step,
Boolean& completedSynchronously) Stack Trace: at
System.Web.UI.ViewStateException.ThrowError(Except ion inner, String
persistedState, String errorPageMessage, Boolean macValidationError)
at System.Web.UI.HiddenFieldPageStatePersister.Load()
at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()
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(Http Context context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.productcast_aspx.ProcessRequest(HttpContext context)
at
System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpAppli
cation.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step,
Boolean& completedSynchronously)


*** Sent via Developersdex http://www.developersdex.com ***
Apr 25 '07 #2
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
*** Sent via Developersdex http://www.developersdex.com ***
Apr 25 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Sven Jacobs | last post by:
Dear newsgroup, I've upgraded to PEAR::DB 1.6.5 recently. Unfortunately now the database connection doesn't work as expected anymore :( The problems seems to be the method disconnect(), which...
0
by: Sateesh | last post by:
Hello, I am mapping to a network share from a .Net service to transfer some specified directories and some times before I disconnect the drive, network would become unavailable. I am unable to...
0
by: mamod20 | last post by:
Please advise, I have the following example and want to know the best way to use $dbh->disconnect; and $sth->finish; -------------- $sql_host="localhost"; $sql_dataname = "database";...
2
by: kristian.freed | last post by:
Hi, I currently work in a project written fully in C# where we make extensive use of delegates and events. We have a model where a "state", an object holding data but not much code but which...
3
by: xincmu | last post by:
I built a very basic server-client in C#. When my server disconnects from the client, the socket at the server is already disconnected, but the socket the client remains open. I used the sample...
0
by: Socorro | last post by:
I'm getting a strange recurring error when debugging a website project. It happens frequently and takes a long time (even hours sometimes) to recover and work around. Object...
5
by: DanielGifford | last post by:
Hi, I'm writing a tcp connection program. Whenever the client disconnects from the server, I get this error: ////////begin error An unhandled exception of type...
0
by: shahiz | last post by:
This the error i get when i try to run my program Error: Unable to realize com.sun.media.amovie.AMController@18b81e3 Basically i have a mediapanel class that initialize and play the media as...
1
by: rnashting | last post by:
Hello again everyone! I'm having an error trying to retrieve things into a form from a database. I'm just learning, so I'm using the Northwind template that access has, but I'm getting an error...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.