sqlce error on hosting

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.
7/18/2010 5:26:05 PM
Gravatar
Total Posts 125

sqlce error on hosting

I have been trying the sqlce  version of mojo and It works  great on my local machine. When I test it in my hosting space, it shows following error:

Probing system...

An Error Occurred:Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Source:mojoPortal.Data
Stack Trace at mojoPortal.Data.DBPortal.EnsureDatabase() at mojoPortal.Web.UI.Pages.SetupHome.ProbeSystem() at mojoPortal.Web.UI.Pages.SetupHome.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 
Thanks
wei
7/18/2010 6:37:23 PM
Gravatar
Total Posts 18439

Re: sqlce error on hosting

Hi Wei,

Did you deploy the file /App_Data/mojodb.sdf ?

All the dlls for SqlCe are in the bin folder? I updated the package to include them all.

Are you using the package I made or making your own from source?

Best,

Joe

7/18/2010 8:01:31 PM
Gravatar
Total Posts 125

Re: sqlce error on hosting

Hi, Joe.

Thank you for replying.

I download your pre-compiled package from http://mojoportal.codeplex.com/releases/view/49018.

All the dlls and the database included and it works on my local machine. (Win7 enterprise).

This error only happens on my hosting space (arvixe.com).

Best,

wei

7/19/2010 12:28:11 PM
Gravatar
Total Posts 18439

Re: sqlce error on hosting

Hi Wei,

Are you absolutely sure the file /App_Data/mojodb.sdf exists on the hosted server?

The error you posted is happening in a method that would try to create the database file if it does not exist. So as long as App_Data is writable, if the mojodb.sdf does not exist it will try to create it.

Are you sure your hosting is for .NET 4?

Best,

Joe

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