[Mono-list] Error runnig .aspx page

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

 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

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..


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

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
in <0x0006a> (wrapper delegate-invoke)
in <0x00090> System.Web.UI.WebControls.Button:OnClick
in <0x00058>
in <0x00016> System.Web.UI.Page:RaisePostBackEvent
in <0x0003a> System.Web.UI.Page:RaisePostBackEvents ()
in <0x002ab> System.Web.UI.Page:InternalProcessRequest ()
in <0x000c2> System.Web.UI.Page:ProcessRequest
in <0x002e8> ExecuteHandlerState:Execute ()
in <0x00084> StateMachine:ExecuteState

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?