HelloWorld sample problem

Topics: Writing modules
Oct 31, 2011 at 8:46 AM

I followed the steps in http://www.orchardproject.net/docs/Building-a-hello-world-module.ashx.

I used the codegen to create the module, used notepad to create the files needed or to edit the csproj and enabled the feature via the command line. That all worked nicely and I can see in a running Orchard that the module is enabled in the dashboard.

But when I navigate to http://localhost:22775/HelloWorld then I get a 404 Resource not found. What is going wrong here?

This is my first head start with Orchard custom modules but I would like to know what's going on before moving on to something more complex.

Oct 31, 2011 at 9:05 AM
Edited Oct 31, 2011 at 9:07 AM

I went over all the steps again and it seemed I forgot to put the following part in:

  <Compile Include="Routes.cs"/>
  <Compile Include="Controllers\HomeController.cs"/>

And now it worked out.