The problem with adding a new site in the cms

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.
8/14/2015 5:36:15 AM
Gravatar
Total Posts 2

The problem with adding a new site in the cms

Hello, please help!

mojoPortal Version 2.4.0.3 MSSQL
Operating system: Microsoft Windows NT 6.2.9200.0
Information ASP.NET v4.0.30319 

STOPPED ADDED SITES
AT THE ADDRESS LINKED DOMAINS ERROR:

Server Error in '/' Application.

The SiteMapProvider 'mojosite1012' cannot be found.

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.Web.HttpException: The SiteMapProvider 'mojosite1012' cannot be found.

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: 

[HttpException (0x80004005): The SiteMapProvider 'mojosite1012' cannot be found.] System.Web.UI.WebControls.SiteMapDataSource.get_Provider() +2072584 mojoPortal.Web.UI.FlexMenu.LoadSettings() +250 mojoPortal.Web.UI.FlexMenu.OnLoad(EventArgs e) +20 System.Web.UI.Control.LoadRecursive() +54 System.Web.UI.Control.LoadRecursive() +145 System.Web.UI.Control.LoadRecursive() +145 System.Web.UI.Control.LoadRecursive() +145 System.Web.UI.Control.LoadRecursive() +145 System.Web.UI.Control.LoadRecursive() +145 System.Web.UI.Control.LoadRecursive() +145 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772

cms just two sites, but siteID generated more than 1000!!!

Please help, thanks in advance

8/14/2015 8:08:56 AM
Gravatar
Total Posts 18439

Re: The problem with adding a new site in the cms

to solve the error for the broken site you will need to manually edit the file mojoSiteMap.config in the root of the site and add a line at the bottom like this:

<add name="mojosite1012" type="mojoPortal.Web.mojoSiteMapProvider" securityTrimmingEnabled="false"  />

understand that the mp_Sites table script created that table with an identity seed of 1 and an increment of 1 for the SiteID field, so it should increment by 1 when a new site is created and the mojoSiteMap.config file is already populated up to 600 so it should handle up to 600 sites without needing to edit it.

BUT Microsoft in their infinite wisdom decided to change the default behavior in SQL 2012 to add this jump, this article explains the problem and possible solutions.

Hope that helps,

Joe

8/14/2015 11:18:17 AM
Gravatar
Total Posts 2

Re: The problem with adding a new site in the cms

Thank you very much for the answer!

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