Error setting master page.

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
2/18/2011 12:18:14 PM
Gravatar
Total Posts 15

Error setting master page.

I am running mojoportal 2.3.6.1 and have added a custom skin folder under /Data/sites/1/skins and it's having a problem reading the layout.Master and so it's falling back to the default layout.Master.

I'm running IIS 7.5 on Windows server 2008 R2 Mojo is installed as an application in the /ct directory under the main IIS root directory.

It's saying the '/ct/' file doesn't exist (see the error below) but /ct is the directory under the IIS root so that seems odd.  It's setup as an IIS application and all the other skins work just fine when I switch to them.  I think the syntax of the layout.Master is okay as it was moved from our designers test site to this one and was working before plus the error doesn't point to a syntax error.

Any help would be appreciated.

Thanks, Mark

2011-02-18 10:28:44,050 ERROR mojoPortal.Web.mojoBasePage - Error setting master page. Will try setting to default skin.en-US - 

System.Web.HttpException (0x80004005): The file '/ct/' does not exist.
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)
   at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath)
   at mojoPortal.Web.ModuleWrapper.LoadModule()
   at mojoPortal.Web.ModuleWrapper.set_ConfigureModuleId(Int32 value)

2/18/2011 12:39:48 PM
Gravatar
Total Posts 18439

Re: Error setting master page.

This error is coming from a failure to load a module inside a ModuleWrapper control.

I would look at your layout.master for this control and either remove it or investigate what module it is trying to load and why it fails. ie determine the module id and try to find the module and test it when directly loaded on a page instead of via ModuleWrapper. Possibly you are loading a custom feature in ModuleWrapper and the custom feature is broken.

ModuleWrapper is a way to publish the same content on all pages, but it is a last resort approach if other approaches don't meet your needs. The newer Global Content feature is more recommended.

Hope it helps,,

Joe

2/18/2011 1:13:04 PM
Gravatar
Total Posts 15

Re: Error setting master page.

Thanks Joe!  That was it.  I will look into having the designers use the Global Content feature.

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