Orchard CMS: Planting My First Orchard

11 March 2013

Tried to set up Orchard CMS today, and went a little bit crazy trying to get it to run; even though in the end, none of the problems turned out to be very difficult.

First of all, it just kept throwing back 500 Server codes; so to see what's actually going wrong, head into Orchard.Web, edit the Web.config and make sure:

  • in system.WebServer you have <httpErrors errorMode="Detailed"/> (and remove the other passthrough property)
  • in system.Web you have <customErrors mode="Off">

And then once I did that, the actual error:

HTTP Error 500.21 - Internal Server Error Handler "NotFound" has a bad module "ManagedPipelineHandler" in its module list

Bingo! Something I can work with. Unlike some suggestions on the internet to use aspnet_iisreg -i, on Windows 8, you just need to turn on HTTP activation for .NET Framework 4.5 Advanced Services, WCF Services:

Enable .NET 4.5 WCF Services

Having done that, you'll likely then get:

Server Error in '/' Application. -------------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load type 'Orchard.Web.MvcApplication'. Source Error: Line 1: %@ Application Codebehind="Global.asax.cs" Inherits="Orchard.Web.MvcApplication" Language="C#" %

To which you just need to build the solution in Visual Studio, and then boom! Orchard planted!

If only the WebInstaller checked the Windows Features stuff for you...

Tags: install, MVC, Orchard

Add a Comment

No Comments