[Mono-list] Error runnig .aspx page

S Umadevi sUmadevi@novell.com
Wed, 04 Aug 2004 05:01:29 -0600


Hi
 In the code mentioned below , the problem is as follows

Label3.Text=dbReader[2].ToString(); is throwing an exception since the
SELECT statement is getting only one column.

But there is a commented code above it

//Label3.Text=((string)dbReader["RuoloAziendale"]);
Which was failing due to a bug, that the columname mapping was not
present. Have fixed this bug.
I guess that was the problem you were facing initially..



Regards
Uma




>>> <beniniva@csr.unibo.it> 7/22/2004 7:14:25 PM >>>

Hi,
I try to run dbReader.aspx page but I obtein this error:
------------------------------
Server error in '/mono' application
Description: Error processing request.

Error Message: HTTP 500.

Stack Trace:

System.IndexOutOfRangeException: Array index is out of range.
in <0x000d5> System.Data.Odbc.OdbcDataReader:GetValue (int)
in <0x0005d> (wrapper remoting-invoke-with-check)
System.Data.Odbc.OdbcDataReader:GetValue (int)
in <0x00012> System.Data.Odbc.OdbcDataReader:get_Item (int)
in <0x0005d> (wrapper remoting-invoke-with-check)
System.Data.Odbc.OdbcDataReader:get_Item (int)
in <0x0016d> dbReaderASP.WebForm1:Button1_Click
(object,System.EventArgs)
in <0x0006a> (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_EventArgs
(object,System.EventArgs)
in <0x00090> System.Web.UI.WebControls.Button:OnClick
(System.EventArgs)
in <0x00058>
System.Web.UI.WebControls.Button:System.Web.UI.IPostBackEventHandler.RaisePostBackEvent
(string)
in <0x00016> System.Web.UI.Page:RaisePostBackEvent
(System.Web.UI.IPostBackEventHandler,string)
in <0x0003a> System.Web.UI.Page:RaisePostBackEvents ()
in <0x002ab> System.Web.UI.Page:InternalProcessRequest ()
in <0x000c2> System.Web.UI.Page:ProcessRequest
(System.Web.HttpContext)
in <0x002e8> ExecuteHandlerState:Execute ()
in <0x00084> StateMachine:ExecuteState
(System.Web.HttpApplication/IStateHandler,bool&)
-----------------------------------------

What could I do?
I think the c# code is correct becouse it runs on windows.... could it
be a
problem of mono..?

I've mono 1 beta with fedora core 2.
Which version have you?
Do you obtain the same error?

Thanks,

Valentina.