Error when hosting mojoportal

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
3/4/2015 9:24:03 AM
Gravatar
Total Posts 30

Error when hosting mojoportal

The portal is working fine on my local machine and also on my server. When I hosted the website on Godaddy, I got an error. Please check the error detailed below. I get this error even when I try to run the setup/Default.aspx page.

 

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) +56 System.Convert.ToInt32(Object value) +28 mojoPortal.Data.DBSiteSettings.GetSiteIdByHostName(String hostName) +91 mojoPortal.Business.WebHelpers.CacheHelper.GetSiteSettingsFromCache() +124 mojoPortal.Business.WebHelpers.CacheHelper.GetSiteSettingsFromContext() +139 mojoPortal.Web.UrlRewriter.GetRedirectUrl(String targetUrl) +40 mojoPortal.Web.UrlRewriter.RewriteUrl(HttpApplication app) +561 mojoPortal.Web.UrlRewriter.UrlRewriter_BeginRequest(Object sender, EventArgs e) +420 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

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