[Mono-aspnet-list] System.InvalidCastException on LoadViewState

APS dev.malst at apsystems.it
Thu Oct 8 06:00:25 EDT 2009


Probably I have some custom object inside viewstate, maybe this could 
be the problem, but why it works on MS and Mono 2.0.1? What I can check?

At 11.46 05/10/2009, APS wrote:
>Hi,
>
>yesterday I moved my web application from Mono 2.0.1 to 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? It works on MS. 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]
>
>
>
>--
>
>Il messaggio e' stato analizzato alla ricerca di virus o
>
>contenuti pericolosi da
><http://www.mailscanner.info/>MailScanner, ed e'
>
>risultato non infetto.
>
>
>
>_______________________________________________
>
>Mono-aspnet-list mailing list
>
>Mono-aspnet-list at lists.ximian.com
>
>http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20091008/d5c71837/attachment-0001.html 


More information about the Mono-aspnet-list mailing list