[Mono-list] MySql/Asp
Carlos Ble
carlosble at shidix.com
Thu Sep 14 10:28:19 EDT 2006
Hi,
the problem is in your source code. It looks like you are requesting
data from an empty DataSet. Check that the dataset is not null and
check that the table has some record (dataset.Tables[0].Rows.Count). I
think that the behaviour of the runtime could be a little bit different
in Mono when dataset is empty, but not sure.
greetings
El jue, 14-09-2006 a las 13:20 +0100, damien churchill escribió:
> I’m getting this error when using mono, when the exact same files run
> on iis this error doesn’t occur.
>
>
>
> Description: Error processing request.
>
>
>
> Error Message: HTTP 500.
>
>
>
> Stack Trace:
>
>
>
> System.NullReferenceException: Object reference not set to an instance
> of an object
>
> at DB.GetDataTable (System.String sql, System.String exception)
> [0x00000]
>
> at faq.Page_Load (System.Object sender, System.EventArgs e)
> [0x00000]
>
> at (wrapper delegate-invoke)
> System.MulticastDelegate:invoke_void_object_EventArgs
> (object,System.EventArgs)
>
> at System.Web.UI.Control.OnLoad (System.EventArgs e) [0x00000]
>
> at System.Web.UI.Control.LoadRecursive () [0x00000]
>
> at System.Web.UI.Page.InternalProcessRequest () [0x00000]
>
> at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext
> context) [0x00000]
>
>
>
> It was working before I reinstalled mono/xsp/mod_mono, which is the
> part that’s confusing me.
>
>
>
> Just wondered if anyone would be able to give me a hint as to why this
> is happening.
>
>
>
>
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
--
Carlos Ble
Shidix Technologies
www.shidix.com/carlosble
More information about the Mono-list
mailing list