CacheHelper failed to load siteSettings

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/22/2007 4:05:55 PM
Gravatar
Total Posts 13

CacheHelper failed to load siteSettings

I am getting an error similar to someone who posted in the Administration forum.

I do not get an admin menu.  I looked in currentlog.config and I have a ton of messages like:

 

2007-05-21 21:02:08,250 [3420] ERROR mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper failed to load siteSettings

Any ideas?

Thanks,

 

Trevor

5/22/2007 4:17:31 PM
Gravatar
Total Posts 18439

Re: CacheHelper failed to load siteSettings

Well that error can happen if it can't connect to the db or if there is not correct content in the db. Thats about all I can know from that message. What I would do is look in the db, are the tables there, are there any rows in the mp_Sites table and mp_Pages tables?

What version of mojoPortal are you working with?

If you are working with source code you can step through the code and find out exactly where the error is happening.

That error also happens in a new installation because there is no data but it then should navigate to siteroot/Setup/Default.aspx which would show some hopefully more meaningful errors and/or let you create initial site data. You might try directly navigating to that page. Another page to check is siteroot/Setup/Upgrade.aspx which should indicate if your db schema version matches the code version.

Hope it helps,

Joe

5/22/2007 4:39:48 PM
Gravatar
Total Posts 13

Re: CacheHelper failed to load siteSettings

Thanks.  It is not connecting to the db.  The installation says to create a user, but doesn't mention creating a login.  Using MS SQL Server Management I have created a login called mojouser in the Security section.  Then after creating the mojoportal database I create a mojouser user and map it to the mojouser login.  Is this correct?

I am using the 2.x svn source code.

 

-Trevor

5/22/2007 4:50:30 PM
Gravatar
Total Posts 18439

Re: CacheHelper failed to load siteSettings

Right click your login that you created in SQL Management and choose properties, then click User Mapping. Select your mojoportal db in the top pane then select db_owner in the bottom pane and click ok to save.

The other thing is to make sure SQL is configured for mixed mode authentication which allows both windows users and sql logins to connect. Right click the very top node in SQL Management and choose properties, click security then make sure SQL Server and Windows Authentication is checked.

It also needs to be accepting network connections. You'll need to open SQL Server Configuration Manager to check this, I think some of this may be disabled by default in SQL Express. Under Native Client Configuration > Client Protocols, make sure tcp/ip is enabled.

Hope it helps,

Joe

5/22/2007 5:02:10 PM
Gravatar
Total Posts 13

Re: CacheHelper failed to load siteSettings

Verified all the above.  Still no luck.  Errors now are:

2007-05-22 17:51:26,046 [2348] ERROR mojoPortal.Web.Global [(null)] - no sites found or couldn't connect to db
2007-05-22 17:51:46,453 [2348] ERROR mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper failed to load siteSettings
2007-05-22 17:51:46,625 [2348] ERROR mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper failed to load siteSettings
2007-05-22 17:51:46,734 [2348] ERROR mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper failed to load siteSettings
2007-05-22 17:51:46,750 [2348] ERROR mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper failed to load siteSettings
2007-05-22 17:51:46,750 [2348] ERROR mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper failed to load siteSettings
2007-05-22 17:51:46,750 [2348] ERROR mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper failed to load siteSettings
2007-05-22 17:51:46,781 [2348] ERROR mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper failed to load siteSettings
2007-05-22 17:55:56,640 [3728] ERROR mojoPortal.Web.Global [(null)] - System.Web.HttpException: File does not exist.
at System.Web.StaticFileHandler.RespondUsingVirtualFile(String virtualPath, HttpResponse response)
at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context)
at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2007-05-22 17:56:02,578 [3728] ERROR mojoPortal.Web.Global [(null)] - System.Web.HttpException: File does not exist.
at System.Web.StaticFileHandler.RespondUsingVirtualFile(String virtualPath, HttpResponse response)
at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context)
at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

5/22/2007 5:06:50 PM
Gravatar
Total Posts 18439

Re: CacheHelper failed to load siteSettings

Set ShowConnectionErrorOnSetup to true in Web.config and see if you get a more meaningful error on the siteroot/Setup/Default.aspx page. Are you sure you've set the connection string correctly in Web.config?

Hope it helps,

Joe

5/22/2007 5:38:12 PM
Gravatar
Total Posts 13

Re: CacheHelper failed to load siteSettings

I set this to true.  But the setup/default.aspx page just always brings me back to the Welcome to mojoportal page.

I have successfully added a new forum post and I've looked in mp_forumPosts and there is a new record, so it is seeing the database.  Yet still there is no admin menu when logged in as admin.

 

5/22/2007 5:45:36 PM
Gravatar
Total Posts 18439

Re: CacheHelper failed to load siteSettings

ok, so your site is working now. Admin pages are no longer in the main menu, you should see a key icon in the top of the page, click that to get to the Admin menu.

Joe

5/22/2007 6:22:39 PM
Gravatar
Total Posts 13

Re: CacheHelper failed to load siteSettings

OK.  Thanks.

6/13/2007 8:20:29 AM
Gravatar
Total Posts 41

Re: CacheHelper failed to load siteSettings

Hi! Trying to install a new site with ver 2.2.2.8 but get the following error in currentlog.config

 

2007-06-13 15:17:01,647 [1328] ERROR mojoPortal.Web.Global [(null)] - no sites found or couldn't connect to db
2007-06-13 15:17:02,225 [1328] ERROR mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper failed to load siteSettings
2007-06-13 15:17:12,787 [1328] ERROR mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper failed to load siteSettings
2007-06-13 15:17:13,022 [1328] ERROR mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper failed to load siteSettings
2007-06-13 15:17:13,116 [1328] ERROR mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper failed to load siteSettings
2007-06-13 15:17:13,444 [1328] ERROR mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper failed to load siteSettings
2007-06-13 15:17:13,756 [1328] ERROR mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper failed to load siteSettings
2007-06-13 15:17:13,834 [1328] ERROR mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper failed to load siteSettings
2007-06-13 15:17:13,912 [1328] ERROR mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper failed to load siteSettings
2007-06-13 15:17:14,022 [1328] ERROR mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper failed to load siteSettings
2007-06-13 15:17:14,616 [1328] ERROR mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper failed to load siteSettings

I have double checked the connection string and it should be correct. Nothing happends in the webbrowser. I tried to go to siteroot/Setup/Default.aspx aswell without any change in result.

6/13/2007 8:35:20 AM
Gravatar
Total Posts 18439

Re: CacheHelper failed to load siteSettings

It is normal to see that error on a new install until data is created no siteSettings can be loaded.

Please specify db and OS you are using

What do you see when you go to /Setup/Default.aspx?

What do you see if you go to /Setup/Upgrade.aspx?

Try in web.config change

ShowConnectionErrorOnSetup = true
and
ShowHistoryOnUpgradePage = true

and see if any better info is shown on those pages.

Hope it helps,

Joe

6/13/2007 8:47:10 AM
Gravatar
Total Posts 41

Re: CacheHelper failed to load siteSettings

DB : Mysql 5.0.41
OS: No idea, windows something (hosted).

Both ShowConnectionErrorOnSetup and ShowHistoryOnUpgradePage is set to true but no change.

You can see for yourself at www.modulesoftware.se

But now I only get this error:

2007-06-13 15:48:57,777 [3024] ERROR mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper failed to load siteSettings

6/13/2007 9:07:18 AM
Gravatar
Total Posts 18439

Re: CacheHelper failed to load siteSettings

Ok, I just sent you an email with a new mojoPortal.Web.dll to try and see if it makes any difference.

Thanks,

Joe

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