DBNull When editing module settings

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
2/9/2006 3:21:27 PM
Gravatar
Total Posts 2

DBNull When editing module settings

I'm running mono 1.1.13 with mysql 4.1.10-a and the compiled deployment files.  I can add any modules fine and they function correct.  Until I try and edit the module settings.  I'm guessing one of the db scripts didn't run right on my setup or something.  If you anyone could point me in the right direction that would be much appreciated.

System.Exception: Unhandled Exception while processing NeatUpload child request ---> System.InvalidCastException: Cannot cast from source type to destination type.
in <0x0001d> System.DBNull:System.IConvertible.ToInt32 (IFormatProvider provider)
in <0x0008c> System.Convert:ToInt32 (System.Object value, IFormatProvider provider)
in <0x00016> System.Convert:ToInt32 (System.Object value)
in <0x001d3> mojoPortal.Business.Module:GetModule (Int32 moduleID)
in <0x0003d> mojoPortal.Business.Module:.ctor (Int32 moduleID)
in <0x00288> mojoPortal.Web.ModuleSettingsPage:Page_Load (System.Object sender, System.EventArgs e)
in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
in <0x00117> System.Web.UI.Control:OnLoad (System.EventArgs e)
in <0x000e5> System.Web.UI.Control:LoadRecursive ()
in <0x0011e> System.Web.UI.Page:InternalProcessRequest ()
in <0x000a1> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext context)--- End of inner exception stack trace ---

in <0x004a3> Brettle.Web.NeatUpload.UploadHttpModule:Application_BeginRequest (System.Object sender, System.EventArgs e)
in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
in <0x0046f> System.Web.HttpApplication+<RunHooks>__0:MoveNext ()

2/9/2006 4:42:53 PM
Gravatar
Total Posts 18439

Re: DBNull When editing module settings

Hi Mike,

I think running this script will solve it:

ALTER TABLE mp_Modules ALTER COLUMN EditUserID SET DEFAULT 0;

Let me know. Also was this a clean install or an upgrade?

Thanks,

Joe
2/9/2006 5:58:39 PM
Gravatar
Total Posts 2

Re: DBNull When editing module settings

The script worked, everything is running great.  I did a clean install.
Thanks, for the quick response.
3/17/2006 4:23:22 AM
Gravatar
Total Posts 58

Re: DBNull When editing module settings

I also recieved this error with the EditUserID was null.  I changed it like you said to default of 0 and everything is working well.  Thanks for the post.
You must sign in to post in the forums. This thread is closed to new posts.