911 - Site Down - Upgrading to 4.0 with SQL to latest code I get a .net error

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

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.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
5/18/2011 1:57:57 PM
Gravatar
Total Posts 165

911 - Site Down - Upgrading to 4.0 with SQL to latest code I get a .net error

Hey Joe,

Need Help....  I'm getting the following error:  But Setup says everything process just fine.

 

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.ToBoolean(IFormatProvider provider) +56
   System.Convert.ToBoolean(Object value) +28
   mojoPortal.Business.WebHelpers.CacheHelper.LoadCurrentPage() +1044
   mojoPortal.Business.WebHelpers.CacheHelper.GetCurrentPage() +143
   mojoPortal.Web.SiteUtils.GetMasterPage(Page page, SiteSettings siteSettings, Boolean allowOverride) +33
   mojoPortal.Web.UI.CmsPage.SetupMasterPage() +197
   mojoPortal.Web.UI.CmsPage.OnPreInit(EventArgs e) +61
   System.Web.UI.Page.PerformPreInit() +31
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +328

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

5/18/2011 3:20:56 PM
Gravatar
Total Posts 165

Re: 911 - Site Down - Upgrading to 4.0 with SQL to latest code I get a .net error

JOE... Thank you for your help on this... Please enjoy some beer that I have sent your way.

11/30/2011 12:00:32 AM
Gravatar
Total Posts 12

Re: 911 - Site Down - Upgrading to 4.0 with SQL to latest code I get a .net error

So what was the solution.  I'm having the same problem!

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