[Mono-devel-list] System.InvalidCastException: Cannot cast from source type to dest ination type.
Bumbia, M Kamran
mbumbi at coair.com
Thu Sep 2 14:42:50 EDT 2004
I am getting the following problem
The thing is that I have a link button in a data grid that transfers to the
page specified.
It works on windows, Microsoft .NET, but throws the exception below on linux
mono.
Can anybody help me out ?
Kamran
Code snippet
Server.Transfer("FlightPassengersRetreive.aspx + "?" + qs);
qs is a the query string.
Stack trace:
System.InvalidCastException: Cannot cast from source type to destination
type.
in <0x0003d> System.Web.UI.WebControls.DataGrid:LoadViewState (object)
in <0x00093> System.Web.UI.Control:LoadViewStateRecursive (object)
in <0x001b4> System.Web.UI.Control:LoadViewStateRecursive (object)
in <0x001b4> System.Web.UI.Control:LoadViewStateRecursive (object)
in <0x0005b> System.Web.UI.Page:LoadPageViewState ()
in <0x000f1> System.Web.UI.Page:InternalProcessRequest ()
in <0x000c2> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
in <0x00359> System.Web.HttpServerUtility:Execute
(string,System.IO.TextWriter,bool)
in <0x000bb> System.Web.HttpServerUtility:Transfer (string,bool)
in <0x00016> System.Web.HttpServerUtility:Transfer (string)
in <0x0034a> ASP.PNRRetreive_aspx:SegmentDataGrid_SelectedIndexChanged
(object,System.EventArgs)
in <0x00069> (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_EventArgs
(object,System.EventArgs)
in <0x0009e> System.Web.UI.WebControls.BaseDataList:OnSelectedIndexChanged
(System.EventArgs)
in <0x00103> System.Web.UI.WebControls.DataGrid:OnBubbleEvent
(object,System.EventArgs)
in <0x00032> System.Web.UI.Control:RaiseBubbleEvent
(object,System.EventArgs)
in <0x0008f> System.Web.UI.WebControls.DataGridItem:OnBubbleEvent
(object,System.EventArgs)
in <0x00032> System.Web.UI.Control:RaiseBubbleEvent
(object,System.EventArgs)
in <0x000ae> System.Web.UI.WebControls.LinkButton:OnCommand
(System.Web.UI.WebControls.CommandEventArgs)
in <0x000b5>
System.Web.UI.WebControls.LinkButton:System.Web.UI.IPostBackEventHandler.Rai
sePostBackEvent (string)
in <0x00016> System.Web.UI.Page:RaisePostBackEvent
(System.Web.UI.IPostBackEventHandler,string)
in <0x00161> System.Web.UI.Page:RaisePostBackEvents ()
in <0x002c3> System.Web.UI.Page:InternalProcessRequest ()
in <0x000c2> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
in <0x002eb> ExecuteHandlerState:Execute ()
in <0x00084> StateMachine:ExecuteState
(System.Web.HttpApplication/IStateHandler,bool&)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040902/681966aa/attachment.html
More information about the Mono-devel-list
mailing list