[Mono-dev] Casting error loading viewstate
APS
dev.malst at apsystems.it
Fri Jun 26 11:32:14 EDT 2009
Hi,
yesterday I moved my web application from Opensuse Mono 2.0.1 to
CentOS Mono 2.4.
Now in some page, during postback I obtain the following error. I
will check what there is in viewstate but I can't understand why it
works on 2.0.1 and not on 2.4
Some change in Mono can cause this problem? Thanks in advance.
System.Web.HttpUnhandledException: Exception of type
'System.Web.HttpUnhandledException' was thrown. --->
System.InvalidCastException: Cannot cast from source type to destination type.
at System.Web.UI.StateBag.LoadViewState (System.Object savedState)
[0x00000]
at System.Web.UI.Control.LoadViewState (System.Object savedState) [0x00000]
at System.Web.UI.Control.LoadViewStateRecursive (System.Object
savedState) [0x00000]
at System.Web.UI.Control.LoadViewStateRecursive (System.Object
savedState) [0x00000]
at System.Web.UI.Control.LoadViewStateRecursive (System.Object
savedState) [0x00000]
at System.Web.UI.Control.LoadViewStateRecursive (System.Object
savedState) [0x00000]
at System.Web.UI.Control.LoadViewStateRecursive (System.Object
savedState) [0x00000]
at System.Web.UI.Control.LoadViewStateRecursive (System.Object
savedState) [0x00000]
at System.Web.UI.Control.LoadViewStateRecursive (System.Object
savedState) [0x00000]
at System.Web.UI.Control.LoadViewStateRecursive (System.Object
savedState) [0x00000]
at System.Web.UI.Control.LoadViewStateRecursive (System.Object
savedState) [0x00000]
at System.Web.UI.Control.LoadViewStateRecursive (System.Object
savedState) [0x00000]
at System.Web.UI.Control.LoadViewStateRecursive (System.Object
savedState) [0x00000]
at System.Web.UI.Control.LoadViewStateRecursive (System.Object
savedState) [0x00000]
at System.Web.UI.Control.LoadViewStateRecursive (System.Object
savedState) [0x00000]
at System.Web.UI.Control.LoadViewStateRecursive (System.Object
savedState) [0x00000]
at System.Web.UI.Page.LoadPageViewState () [0x00000]
at System.Web.UI.Page.RestorePageState () [0x00000]
at System.Web.UI.Page.InternalProcessRequest () [0x00000]
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext
context) [0x00000]
--- End of inner exception stack trace ---
at System.Web.UI.Page.ProcessException (System.Exception e) [0x00000]
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext
context) [0x00000]
at System.Web.HttpApplication+<Pipeline>c__Iterator2.MoveNext () [0x00000]
at System.Web.HttpApplication.Tick () [0x00000]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090626/c88c0946/attachment-0001.html
More information about the Mono-devel-list
mailing list