Problems with the database mssql

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/6/2011 4:57:52 AM
Gravatar
Total Posts 2

Problems with the database mssql

A year ago, set mojoportal, recently downloaded the source and tried to run from VS2010.

After the initial update the database schema, an attempt to go to the home page gives an error (
The database field IncludeInSearch absent.The database field IncludeInSear

[InvalidCastException: Unable to cast this object from DBNull to other type.]
    System.DBNull.System.IConvertible.ToBoolean (IFormatProvider provider) +56
    System.Convert.ToBoolean (Object value) +28
    mojoPortal.Business.WebHelpers.CacheHelper.LoadCurrentPage () in D: \ newfdr \ web \ mojoPortal.Business.WebHelpers \ CacheHelper.cs: 712
    mojoPortal.Business.WebHelpers.CacheHelper.GetCurrentPage () in D: \ newfdr \ web \ mojoPortal.Business.WebHelpers \ CacheHelper.cs: 621
    mojoPortal.Web.SiteUtils.GetMasterPage (Page page, SiteSettings siteSettings, Boolean allowOverride) in D: \ newfdr \ web \ Web \ Components \ SiteUtils.cs: 591
    mojoPortal.Web.UI.CmsPage.SetupMasterPage () in D: \ newfdr \ web \ Web \ Default.aspx.cs: 524
    mojoPortal.Web.UI.CmsPage.OnPreInit (EventArgs e) in D: \ newfdr \ web \ Web \ Default.aspx.cs: 54
    System.Web.UI.Page.PerformPreInit () +31
    System.Web.UI.Page.ProcessRequestMain (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +328

2/6/2011 9:29:12 AM
Gravatar
Total Posts 18439

Re: Problems with the database mssql

Sounds like something did not get updated correctly in the database. If you were just testing it a year ago then you might try starting with a new db. If it is a production site, you might try

UPDATE mp_Modules
SET IncludeInSearch = 1

This should have already happened in the upgrade script for 2.3.5.9

Hope it helps,

Joe

2/7/2011 1:20:43 AM
Gravatar
Total Posts 2

Re: Problems with the database mssql

Thank you, I'm stupid. Access to the base of the old code created a few records with NULL content, it glitches.

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