Orchard HelloWorld Example fails on IController not implemented

Topics: Customizing Orchard
Aug 6, 2012 at 12:45 AM

I tried the HelloWorld example listed here: http://docs.orchardproject.net/Documentation/Building-a-hello-world-module

I'm using Orchard v1.5.1.

When trying to render /HelloWorld page I get the error:

"The controller for path '/OrchardLocal/HelloWorld' was not found or does not implement IController.:" at line 140 in the file ShellRoute.cs.

What am I doing wrong?   Or is the HelloWorld example out of date with the most recent release of Orchard v1.5.1?   

What needs to change with the HelloWorld.cs controller to use IController?

Aug 6, 2012 at 4:27 AM

Nevermind.  I found the problem.  I didn't completely follow the tutorial.   I created the module with "codegen module portland50.HelloWorld", however  the Routes.cs file was referring to "HelloWorld" for the route area as described in the tutorial.  Changing "HelloWorld" to "portland50.HelloWorld" in Routes.cs fixed the problem.