c# - asp.net Invalid character in a Base-64 string -


I have a C # mobile site and there is a problem with some mobile clients I posted a trace below, but the basic form From the phone or WAP gateway browser, the phone connects the hidden input to the view from the Internet URL encoded.

/ wEPDwULLTExNTMyOTcwOTBkGAEFBlTTGlzdA9nZA ==

% 2FwEPDwULLTExNTMyOTcwOTBkGAEFBlTbGlzdA9nZA% 3D% 3D

the viewer fails.

Anyway override and before the processing of URDDCode viewest information?

 System.Web.HttpException: State information for this page is invalid and it may be corrupted. ---> System.Web.UI.ViewStateException: Invalid viewstate client IP: 65.91.116.34 Port: 37172 User-agent: SK-R430 UP. Broser / 6.2.3.8 (GUI) MMP / 2.0 ViewState:% 2 FWPWWTXNTUKKVWBKGFFBLTTGLGDA9NJA% 3D% 3DReffer: Path: / Mobile / Inbox.APX ---> System.FormatException: Invalid character in base-64 string. System.Web.U.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize (String serializedState) on System.Web.O.I.ObjectStateFormatter.Deserialize on System.Web on System.Convert.FromBase64String (String) on ​​System Structure (String InputString) . .UI.Util.DeserializeWithAssert (IStateFormatter formatter, String serializedState) System.Web.UI.HiddenFieldPageStatePersister.Load () - Internal Exceptions End of Stack Trace --- Internal Exception Stack Trace --- End System. Web.UI.ViewStateException.ThrowError (Exceptions Internal, String Perstated Stats, String Error Page Messages, Boolean MAC Validation Error) System Web. UI .ViewStateException.ThrowViewStateError (exception internal, string persiststate) on system. Web. UI. HiddenFieldPageStatePersister.Load () includes SystemWeb.UI.Page.LoadPageStateFromPersistenceMedium () on System.Web.UI.Page.LoadAllState () at System.Web.UI.Page.ProcessRequestMain (Boolean included in StagesBeforeAsyncPoint, Boolean StageAfterAsyncPoint) System.Web.UI.Page.ProcessRequest (System BooleanStagesBeforeAsyncPoint, boolean in StageAfterAsyncPoint) on System.Web.UI.Page.ProcessRequest () on System.Web.UI.Page.ProcessRequestWithNoAssert (HttpContext Reference) system. Processing request (HttpContext reference) on System.Web.HttpApplication.ExecuteStep (IExecutionStep) in Web.UI.Page in System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute on ASP.mobile_inbox_aspx.ProcessRequest (HttpContext Reference) Step, boolean and full time) 

You can apply a custom ViewStartParse object that handles it. Have a look you want to get from it, in which the way to implement compression on the top of the viewstation is shown, but it is similar to what you need to do.

It involves some extent: You have to use the reflection to set the area of ​​the base class, which, unlike that, is not marked as virtual, can be override without reflection .


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -