Edit Links not working

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.
8/24/2005 3:27:53 PM
Gravatar
Total Posts 12

Re: Edit Links not working

When I try to edit a Links module the following error is shown. Database is MySQL, mojoPortal is 20050710 and .NET Framework is MS 1.1.4322.2300. Thanks!

Server Error in '/' Application.
Object cannot be cast from DBNull to other types.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Object cannot be cast from DBNull to other types.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidCastException: Object cannot be cast from DBNull to other types.]
System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider) +48
System.Convert.ToInt32(Object value) +36
mojoPortal.Business.Module.GetModule(Int32 ModuleID) +372
mojoPortal.Business.Module..ctor(Int32 ModuleID) +72
mojoPortal.Web.ModuleSettingsPage.Page_Load(Object sender, EventArgs e) +577
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
8/24/2005 3:47:09 PM
Gravatar
Total Posts 18439

Re: Edit Links not working

Sounds like some null values in the mp_Links table. Look in there and if its null populate it with a reasonable value and add defaults.

Update: actually looks like you were trying to edit module settings. Look in the mp_Modules and mp_ModuleSettings tables for null values and make them not null with some data.

Let me know what you find.

You are working with the source code or the release files?

Thanks,

Joe
You must sign in to post in the forums. This thread is closed to new posts.