E
Ewild
Hey All,
I have a playaround site that I have been using to learn about ASP.NET
2.0. I wanted to see how it renders on a PocketPC that a friend has. Some
pages work, but most I get a viewState error.
"Invalid length for a Base-64 char array." (below is the full stack.)
I googled, and didnot come up with much at all. I did change my config
file to explicitly not encrypt the viewstate, and that didn't help.
Is there something oblvious I missing here?
Is there a setting on the PocketPC I need to set?
The .NET controls should render for PocketPC and smartPhones, right?
Thanks
Eric
----------------------------------------
Timestamp: 3/6/2006 2:51:00 PM
Message: HandlingInstanceID: 4796903d-66c1-400e-99cf-adfc504963b7
An exception of type 'System.Web.HttpException' occurred and was caught.
------------------------------------------------------------------------
03/06/2006 09:51:00
Type : System.Web.HttpException, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Message : The state information is invalid for this page and might be
corrupted.
Source : System.Web
Help link :
ErrorCode : -2147467259
Data : System.Collections.ListDictionaryInternal
TargetSite : Void ThrowError(System.Exception, System.String, System.String,
Boolean)
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.usersettings_main_aspx.ProcessRequest(HttpContext context)
at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)
Additional Info:
TimeStamp : 3/6/2006 2:51:00 PM
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=null
AppDomainName : /LM/W3SVC/1664132360/Root-3-127861299864062500
ThreadIdentity : ewild
WindowsIdentity : NT AUTHORITY\NETWORK SERVICE
Inner Exception
---------------
Type : System.Web.UI.ViewStateException, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Message : Invalid viewstate.
Port: 31138
User-Agent: Mozilla/2.0 (compatible; MSIE 3.02; Windows CE; PPC; 240x320)
ViewState:
/wEPDwUKMTk1NzAxODg2Mw9kFgJmD2QWAgIDD2QWBAIFEDwrAA0CAA8WAh4LXyFEYXRhQm91bmRnZAwUKwACBQMwOjAUKwACFhAeBFRleHQFCUhvbWUgUGFnZR4FVmFsdWUFCUhvbWUgUGFnZR4LTmF2aWdhdGVVcmwFCi9NYWluLmFzcHgeB1Rvb2xUaXAFEUhvbWUgcGFnZSBpcyBjb29sHgdFbmFibGVkZx4KU2VsZWN0YWJsZWceCERhdGFQYXRoBQovbWFpbi5hc3B4HglEYXRhQm91bmRnFCsACAUbMDowLDA6MSwwOjIsMDozLDA6NCwwOjUsMDo2FCsAAhYOHwEFBUFkbWluHwIFBUFkbWluHwMFEC9BZG1pbi9Ib21lLmFzcHgfBWcfBmcfBwUQL2FkbWluL2hvbWUuYXNweB8IZxQrAAMFBzA6MCwwOjEUKwACFg4fAQUMRmFtaWx5IEFkbWluHwIFDEZhbWlseSBBZG1pbh8DBRcvQWRtaW4vRmFtaWx5QWRtaW4uYXNweB8FZx8GZx8HBRcvYWRtaW4vZmFtaWx5YWRtaW4uYXNweB8IZ2QUKwACFg4fAQUSU3RvY2sgQ29tcGFueSBFZGl0HwIFElN0b2NrIENvbXBhbnkgRWRpdB8DBRcvQWRtaW4vQ29tcGFueUVkaXQuYXNweB8FZx8GZx8HBRcvYWRtaW4vY29tcGFueWVkaXQuYXNweB8IZ2QUKwACFhAfAQUFU3RvY2sfAgUFU3RvY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CGdkFCsAAhYQHwEFC1BlcnNvbmFsaXplHwIFC1BlcnNvbmFsaXplHwMFFy9Vc2VyU2V0dGluZ3MvTWFpbi5hc3B4HwVnHwZnHwcFFy91c2Vyc2V0dGluZ3MvbWFpbi5hc3B4HwhnHghTZWxlY3RlZGdkFCsAAhYOHwEFBk1vd
Path : /UserSettings/Main.aspx
IsConnected : True
Data : System.Collections.ListDictionaryInternal
TargetSite :
Stack Trace : The stack trace is unavailable.
Inner Exception
---------------
Type : System.FormatException, mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
Message : Invalid length for a Base-64 char array.
Source : mscorlib
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : Byte[] FromBase64String(System.String)
Stack Trace : at System.Convert.FromBase64String(String s)
at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString)
at
System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState)
at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter,
String serializedState)
at System.Web.UI.HiddenFieldPageStatePersister.Load()
Category: Critical
Priority: 0
EventId: 100
Severity: Error
Title:Enterprise Library Exception Handling
Application Domain: /LM/W3SVC/1664132360/Root-3-127861299864062500
Process Id: 2672
Process Name: c:\windows\system32\inetsrv\w3wp.exe
Win32 Thread Id: 356
Thread Name:
Extended Properties:
----------------------------------------
I have a playaround site that I have been using to learn about ASP.NET
2.0. I wanted to see how it renders on a PocketPC that a friend has. Some
pages work, but most I get a viewState error.
"Invalid length for a Base-64 char array." (below is the full stack.)
I googled, and didnot come up with much at all. I did change my config
file to explicitly not encrypt the viewstate, and that didn't help.
Is there something oblvious I missing here?
Is there a setting on the PocketPC I need to set?
The .NET controls should render for PocketPC and smartPhones, right?
Thanks
Eric
----------------------------------------
Timestamp: 3/6/2006 2:51:00 PM
Message: HandlingInstanceID: 4796903d-66c1-400e-99cf-adfc504963b7
An exception of type 'System.Web.HttpException' occurred and was caught.
------------------------------------------------------------------------
03/06/2006 09:51:00
Type : System.Web.HttpException, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Message : The state information is invalid for this page and might be
corrupted.
Source : System.Web
Help link :
ErrorCode : -2147467259
Data : System.Collections.ListDictionaryInternal
TargetSite : Void ThrowError(System.Exception, System.String, System.String,
Boolean)
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.usersettings_main_aspx.ProcessRequest(HttpContext context)
at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)
Additional Info:
TimeStamp : 3/6/2006 2:51:00 PM
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=null
AppDomainName : /LM/W3SVC/1664132360/Root-3-127861299864062500
ThreadIdentity : ewild
WindowsIdentity : NT AUTHORITY\NETWORK SERVICE
Inner Exception
---------------
Type : System.Web.UI.ViewStateException, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Message : Invalid viewstate.
Port: 31138
User-Agent: Mozilla/2.0 (compatible; MSIE 3.02; Windows CE; PPC; 240x320)
ViewState:
/wEPDwUKMTk1NzAxODg2Mw9kFgJmD2QWAgIDD2QWBA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GRmFtaWx5HwIFBkZhbWlseR8DBREvRmFtaWx5L0hvbWUuYXNweB8FZx8GZx8HBREvZmFtaWx5L2hvbWUuYXNweB8IZxQrAAMFBzA6MCwwOjEUKwACFhAfAQUIUGljdHVyZXMfAgUIUGljdHVyZXMfAwUkL0ZhbWlseS9QaWN0dXJlcy9QaWN0dXJlVHJlZVhNTC5hc3B4HwQFHVBpY3R1cmVzIG9mIHRoZSB3aWZlIGFuZCBraWRzHwVnHwZnHwcFJC9mYW1pbHkvcGljdHVyZXMvcGljdHVyZXRyZWV4bWwuYXNweB8IZ2QUKwACFhAfAQUGTW92aWVzHwIFBk1vdmllcx8DBRovRmFtaWx5L01vdmllcy9Nb3ZpZXMuYXNweB8EBRtNb3ZpZXMgb2YgdGhlIHdpZmUgYW5kIGtpZHMfBWcfBmcfBwUaL2ZhbWlseS9tb3ZpZXMvbW92aWVzLmFzcHgfCGdkFCsAAhYOHwEFB0Nvb2tpbmcfAgUHQ29va2luZx8DBRIvQ29va2luZy9tYWluLmFzcHgfBWcfBmcfBwUSL2Nvb2tpbmcvbWFpbi5hc3B4HwhnZBQrAAIWDh8BBQtQcm9ncmFtbWluZx8CBQtQcm9ncmFtbWluZx8DBRYvUHJvZ3JhbW1pbmcvTWFpbi5hc3B4HwVnHwZnHwcFFi9wcm9ncmFtbWluZy9tYWluLmFzcHgfCGdkFCsAAhYQHwEFC1BlcnNvbmFsaXplHwIFC1BlcnNvbmFsaXplHwMFFy9Vc2VyU2V0dGluZ3MvTWFpbi5hc3B4HwVnHwZnHwcFFy91c2Vyc2V0dGluZ3MvbWFpbi5hc3B4HwhnHghTZWxlY3RlZGdkFCsAAhYOHwEFBk1vd
Path : /UserSettings/Main.aspx
IsConnected : True
Data : System.Collections.ListDictionaryInternal
TargetSite :
Stack Trace : The stack trace is unavailable.
Inner Exception
---------------
Type : System.FormatException, mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
Message : Invalid length for a Base-64 char array.
Source : mscorlib
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : Byte[] FromBase64String(System.String)
Stack Trace : at System.Convert.FromBase64String(String s)
at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString)
at
System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState)
at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter,
String serializedState)
at System.Web.UI.HiddenFieldPageStatePersister.Load()
Category: Critical
Priority: 0
EventId: 100
Severity: Error
Title:Enterprise Library Exception Handling
Application Domain: /LM/W3SVC/1664132360/Root-3-127861299864062500
Process Id: 2672
Process Name: c:\windows\system32\inetsrv\w3wp.exe
Win32 Thread Id: 356
Thread Name:
Extended Properties:
----------------------------------------