[Mono-list] Error runnig .aspx page

beniniva@csr.unibo.it beniniva@csr.unibo.it
Thu, 22 Jul 2004 15:44:25 +0200


This message is in MIME format.

---MOQ1090503865f76394c1f9873719bbf6fea5c0dd68fd
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit


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.


---MOQ1090503865f76394c1f9873719bbf6fea5c0dd68fd
Content-Type: application/octet-stream; name="WebForm1dbReader.aspx"
Content-Transfer-Encoding: base64
Content-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VDogMTA0cHg7IFBPU0lUSU9OOiBhYnNvbHV0ZTsgVE9QOiA5NnB4
IiBydW5hdD0ic2VydmVyIj5JbnNlcmlzY2kgbGEgdHVhIGxvZ2luOjwvYXNwOkxhYmVsPg0KCQkJ
PGFzcDpCdXR0b24gaWQ9IkJ1dHRvbjEiIHN0eWxlPSJaLUlOREVYOiAxMDM7IExFRlQ6IDIzMnB4
OyBQT1NJVElPTjogYWJzb2x1dGU7IFRPUDogMTYwcHgiIHJ1bmF0PSJzZXJ2ZXIiDQoJCQkJVGV4
dD0iSW52aWEiPjwvYXNwOkJ1dHRvbj4NCgkJCTxhc3A6TGFiZWwgaWQ9IkxhYmVsMiIgc3R5bGU9
IlotSU5ERVg6IDEwNDsgTEVGVDogMTY4cHg7IFBPU0lUSU9OOiBhYnNvbHV0ZTsgVE9QOiAyMTZw
eCIgcnVuYXQ9InNlcnZlciI+SWwgdHVvIHJ1b2xvIGF6aWVuZGFsZSDoOjwvYXNwOkxhYmVsPg0K
CQkJPGFzcDpMYWJlbCBpZD0iTGFiZWwzIiBzdHlsZT0iWi1JTkRFWDogMTA1OyBMRUZUOiAzMjhw
eDsgUE9TSVRJT046IGFic29sdXRlOyBUT1A6IDIxNnB4IiBydW5hdD0ic2VydmVyIj48L2FzcDpM
YWJlbD4NCgkJPC9mb3JtPg0KCTwvYm9keT4NCjwvSFRNTD4NCg==

---MOQ1090503865f76394c1f9873719bbf6fea5c0dd68fd
Content-Type: text/x-csharp; name="WebForm1dbReader.aspx.cs"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="WebForm1dbReader.aspx.cs"

dXNpbmcgU3lzdGVtOw0KdXNpbmcgU3lzdGVtLkNvbGxlY3Rpb25zOw0KdXNpbmcgU3lzdGVtLkNv
bXBvbmVudE1vZGVsOw0KdXNpbmcgU3lzdGVtLkRhdGE7DQp1c2luZyBTeXN0ZW0uRHJhd2luZzsN
CnVzaW5nIFN5c3RlbS5XZWI7DQp1c2luZyBTeXN0ZW0uV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