Disconnect Error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • K B

    #1

    Disconnect Error

    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
    EnableViewstate MAC="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_Err or:Error in: http://216.94.25.56/ProductCast.aspx Error
    Message: The client disconnected. Exception: System.Web.Http Exception:
    The client disconnected. ---System.Web.UI.V iewStateExcepti on: 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:
    gWhuGp59Xfm5WTX BD49+g1g3Atf1mx 9KGXwGLGF/ZkmSXKvNbsHAM5Y FGK+5bBssY1N1hR sM
    FwQeIX6BGAXurgS PGV8YRN+4K2TT8K zyWsRzwyH33uDOP/OpVfGxWL/xwYnPH3kgu19h4l Ff
    1hMvSzGfJw9m07S 6UpQU1oEFowhWHO C2h+TdSt4wPuxov 1hmZM1vxPDt8HbW Y3TjPnAFEc2x
    3LClq/Mp4OWiss5wmYvNX sWzXBzzGl7WlGR5 TfTK+vcusyF1bp1 ircSNtLDxaDrJE/G84i0J
    iZFbZuKiOQ9yyad hqODyKMbT7ELksL 0SfOlTEATXrsJrv rY74O9/0wh8wTgnYHVh0lY 7AFi/
    sQmF/9m5HoDLf6b+QB/ZgqtfI0oHpXpGI4 wbOoqyqEM8uNhBP xmTQI+RJ7tFpju0 cPmKwmfN
    7pJZVR9Gtj3GuxK Eav0CIxDmL0mPP4 1t2E45hjOB69WIW w0ezAJURNWuiKy2 SffCkeJ6de7x
    6Gig+Qd0OfDZylB U7hqLsVZevKcYfL lltHs7xQZl/7obp3Z71CEGkVPw usJCvWx+keOjXz9 1
    q4715A6L/LXFz3hkSWQoHzhX QTxcdOstgPMHw0g Aclah6ntGh3k5yb xhpgkRNxTX2MnvT VR/
    gaYTYlPrVo2GK3q EcKmU1LBz5E2CrR sxRzKa8q0nNAYd8 xrvpqNgu7QslSx6 Bu3wqNIKeWZL
    eNUXi6AQjYf0xPO sBnMixc/unQ4HF6YjD6xVMp Cq7joTYtuxzUFbJ jE6/Pf/06IgESW6Ddqu
    0OiQImJRSg/P3Wm/rgISsqmwxYqg4Yw WpBhPJ4eJ3aMUZg 97TnT3HkEsM0c1N mVqQ9+To...
    ---System.FormatEx ception: Invalid character in a Base-64 string.
    at System.Convert. FromBase64Strin g(String s)
    at System.Web.UI.O bjectStateForma tter.Deserializ e(String inputString)
    at
    System.Web.UI.O bjectStateForma tter.System.Web .UI.IStateForma tter.Deseria
    lize(String serializedState )
    at System.Web.UI.U til.Deserialize WithAssert(ISta teFormatter
    formatter, String serializedState )
    at System.Web.UI.H iddenFieldPageS tatePersister.L oad()
    --- End of inner exception stack trace ---
    --- End of inner exception stack trace ---
    at System.Web.UI.V iewStateExcepti on.ThrowError(E xception inner,
    String persistedState, String errorPageMessag e, Boolean
    macValidationEr ror)
    at System.Web.UI.H iddenFieldPageS tatePersister.L oad()
    at System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium()
    at System.Web.UI.P age.LoadAllStat e()
    at System.Web.UI.P age.ProcessRequ estMain(Boolean
    includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
    at System.Web.UI.P age.ProcessRequ est(Boolean
    includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
    at System.Web.UI.P age.ProcessRequ est()
    at System.Web.UI.P age.ProcessRequ estWithNoAssert (HttpContext context)
    at System.Web.UI.P age.ProcessRequ est(HttpContext context)
    at ASP.productcast _aspx.ProcessRe quest(HttpConte xt context)
    at
    System.Web.Http Application.Cal lHandlerExecuti onStep.System.W eb.HttpAppli
    cation.IExecuti onStep.Execute( )
    at System.Web.Http Application.Exe cuteStep(IExecu tionStep step,
    Boolean& completedSynchr onously) Stack Trace: at
    System.Web.UI.V iewStateExcepti on.ThrowError(E xception inner, String
    persistedState, String errorPageMessag e, Boolean macValidationEr ror)
    at System.Web.UI.H iddenFieldPageS tatePersister.L oad()
    at System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium()
    at System.Web.UI.P age.LoadAllStat e()
    at System.Web.UI.P age.ProcessRequ estMain(Boolean
    includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
    at System.Web.UI.P age.ProcessRequ est(Boolean
    includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
    at System.Web.UI.P age.ProcessRequ est()
    at System.Web.UI.P age.ProcessRequ estWithNoAssert (HttpContext context)
    at System.Web.UI.P age.ProcessRequ est(HttpContext context)
    at ASP.productcast _aspx.ProcessRe quest(HttpConte xt context)
    at
    System.Web.Http Application.Cal lHandlerExecuti onStep.System.W eb.HttpAppli
    cation.IExecuti onStep.Execute( )
    at System.Web.Http Application.Exe cuteStep(IExecu tionStep step,
    Boolean& completedSynchr onously)




    *** Sent via Developersdex http://www.developersdex.com ***
  • bruce barker

    #2
    Re: Disconnect Error

    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
    EnableViewstate MAC="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_Err or:Error in: http://216.94.25.56/ProductCast.aspx Error
    Message: The client disconnected. Exception: System.Web.Http Exception:
    The client disconnected. ---System.Web.UI.V iewStateExcepti on: 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:
    gWhuGp59Xfm5WTX BD49+g1g3Atf1mx 9KGXwGLGF/ZkmSXKvNbsHAM5Y FGK+5bBssY1N1hR sM
    FwQeIX6BGAXurgS PGV8YRN+4K2TT8K zyWsRzwyH33uDOP/OpVfGxWL/xwYnPH3kgu19h4l Ff
    1hMvSzGfJw9m07S 6UpQU1oEFowhWHO C2h+TdSt4wPuxov 1hmZM1vxPDt8HbW Y3TjPnAFEc2x
    3LClq/Mp4OWiss5wmYvNX sWzXBzzGl7WlGR5 TfTK+vcusyF1bp1 ircSNtLDxaDrJE/G84i0J
    iZFbZuKiOQ9yyad hqODyKMbT7ELksL 0SfOlTEATXrsJrv rY74O9/0wh8wTgnYHVh0lY 7AFi/
    sQmF/9m5HoDLf6b+QB/ZgqtfI0oHpXpGI4 wbOoqyqEM8uNhBP xmTQI+RJ7tFpju0 cPmKwmfN
    7pJZVR9Gtj3GuxK Eav0CIxDmL0mPP4 1t2E45hjOB69WIW w0ezAJURNWuiKy2 SffCkeJ6de7x
    6Gig+Qd0OfDZylB U7hqLsVZevKcYfL lltHs7xQZl/7obp3Z71CEGkVPw usJCvWx+keOjXz9 1
    q4715A6L/LXFz3hkSWQoHzhX QTxcdOstgPMHw0g Aclah6ntGh3k5yb xhpgkRNxTX2MnvT VR/
    gaYTYlPrVo2GK3q EcKmU1LBz5E2CrR sxRzKa8q0nNAYd8 xrvpqNgu7QslSx6 Bu3wqNIKeWZL
    eNUXi6AQjYf0xPO sBnMixc/unQ4HF6YjD6xVMp Cq7joTYtuxzUFbJ jE6/Pf/06IgESW6Ddqu
    0OiQImJRSg/P3Wm/rgISsqmwxYqg4Yw WpBhPJ4eJ3aMUZg 97TnT3HkEsM0c1N mVqQ9+To...
    ---System.FormatEx ception: Invalid character in a Base-64 string.
    at System.Convert. FromBase64Strin g(String s)
    at System.Web.UI.O bjectStateForma tter.Deserializ e(String inputString)
    at
    System.Web.UI.O bjectStateForma tter.System.Web .UI.IStateForma tter.Deseria
    lize(String serializedState )
    at System.Web.UI.U til.Deserialize WithAssert(ISta teFormatter
    formatter, String serializedState )
    at System.Web.UI.H iddenFieldPageS tatePersister.L oad()
    --- End of inner exception stack trace ---
    --- End of inner exception stack trace ---
    at System.Web.UI.V iewStateExcepti on.ThrowError(E xception inner,
    String persistedState, String errorPageMessag e, Boolean
    macValidationEr ror)
    at System.Web.UI.H iddenFieldPageS tatePersister.L oad()
    at System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium()
    at System.Web.UI.P age.LoadAllStat e()
    at System.Web.UI.P age.ProcessRequ estMain(Boolean
    includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
    at System.Web.UI.P age.ProcessRequ est(Boolean
    includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
    at System.Web.UI.P age.ProcessRequ est()
    at System.Web.UI.P age.ProcessRequ estWithNoAssert (HttpContext context)
    at System.Web.UI.P age.ProcessRequ est(HttpContext context)
    at ASP.productcast _aspx.ProcessRe quest(HttpConte xt context)
    at
    System.Web.Http Application.Cal lHandlerExecuti onStep.System.W eb.HttpAppli
    cation.IExecuti onStep.Execute( )
    at System.Web.Http Application.Exe cuteStep(IExecu tionStep step,
    Boolean& completedSynchr onously) Stack Trace: at
    System.Web.UI.V iewStateExcepti on.ThrowError(E xception inner, String
    persistedState, String errorPageMessag e, Boolean macValidationEr ror)
    at System.Web.UI.H iddenFieldPageS tatePersister.L oad()
    at System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium()
    at System.Web.UI.P age.LoadAllStat e()
    at System.Web.UI.P age.ProcessRequ estMain(Boolean
    includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
    at System.Web.UI.P age.ProcessRequ est(Boolean
    includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
    at System.Web.UI.P age.ProcessRequ est()
    at System.Web.UI.P age.ProcessRequ estWithNoAssert (HttpContext context)
    at System.Web.UI.P age.ProcessRequ est(HttpContext context)
    at ASP.productcast _aspx.ProcessRe quest(HttpConte xt context)
    at
    System.Web.Http Application.Cal lHandlerExecuti onStep.System.W eb.HttpAppli
    cation.IExecuti onStep.Execute( )
    at System.Web.Http Application.Exe cuteStep(IExecu tionStep step,
    Boolean& completedSynchr onously)
    >
    >
    >
    >
    *** Sent via Developersdex http://www.developersdex.com ***

    Comment

    • K B

      #3
      Re: Disconnect Error

      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 ***

      Comment

      Working...