Layout Selector - 0.3 not working on production server, but works on local dev box

Topics: General
Sep 4, 2014 at 4:22 PM
Edited Sep 4, 2014 at 4:27 PM
We are using Orchard 1.8 to develop a CMS based website and on a local dev box with a Visual Studio 2013 project file. We are using SQL Server 2012 as the DB .

We have installed DownPlay Design’s Layout Selector - 0.3; which adds a DDL to select a layout for pages. It works fine on the local Dev box with the VS2013 Orchard project.

We published the Orchard.Web project to a production server using a VS file system publish and imported the DB from the dev environment into the production SQL Server DB.

Some of the site seems to run, however it is always using Layout.cshtml rather than specific layout pages (Layout-HomePage.cshtml, Layout-AboutPage.cshtml, etc...) that are supposed to be selected by the Layout Selector.

The Layout Selector does not show up on the page editor in the Orchard admin panel, even though the module shows as installed in Orchard and as a Feature. Also, the page content definition for pages shows the "Layout Selector" part.

Some of the code seems to be in the Modules folder on the production server (there are some folder file differences between the dev box and the production box), when one edits a page, the DDL to select the layout does not appear in the page editor.

Folder tree for Dev Box: \Modules\Downplay.Orchard.LayoutSelector
|    - Downplay.Orchard.LayoutSelector.csproj
|    - Downplay.Orchard.LayoutSelector.csproj.user
|    - Downplay.Orchard.LayoutSelector.csproj.vspscc
|    - Downplay.Orchard.LayoutSelector_DirList.txt
|    - Migrations.cs
|    - Module.txt
|    - placement.info
|    - Web.config
+_ bin
|  |    - Orchard.Core.dll
|  |    - Orchard.Framework.dll
|  |    - Orchard.Themes.dll
|  |    - System.Web.Mvc.dll
+_ Controllers
+_ Drivers
|  |    - LayoutSelectorPartDriver.cs
+_ Handlers
|  |    - LayoutSelectorPartHandler.cs
+_ Models
|  |    - LayoutSelectorPart.cs
|  |    - LayoutSelectorPartRecord.cs
+_ obj
|  +_ Debug
|       - DesignTimeResolveAssemblyReferencesInput.cache
|       - Downplay.Orchard.LayoutSelector.csproj.FileListAbs
|       - Downplay.Orchard.LayoutSelector.csprojResolveAssem
|     +_ TempPE
+_ Properties
|  |    - AssemblyInfo.cs
+_ Scripts
|  |    - Web.config
+_ Services
|  |    - DefaultLayoutAlternatesProvider.cs
|  |    - ILayoutAlternatesProvider.cs
|  |    - ILayoutSelectorService.cs
|  |    - LayoutSelectorService.cs
|  |    - ThemeLayoutAlternatesProvider.cs
+_ Styles
|  |    - Web.config
+_ Views
     - Web.config
   +_ EditorTemplates
      +_ Parts
         |    - LayoutSelector.cshtml
Folder tree for Production Box: Modules\Downplay.Orchard.LayoutSelector
|    - Module.txt
|    - placement.info
|    - Web.config
+_ Scripts
|  |    - Web.config
+_ Styles
|  |    - Web.config
+_ Views
     - Web.config
   +_ EditorTemplates
      +_ Parts
         |    - LayoutSelector.cshtml

Any one know what we should look for to troubleshoot or how to fix? We need to be able to select a layout for each page and this module did it well; at least it did on the development.

Thanks in advance.