This project is read-only.

Serving Asp.Net Web Pages from module

Topics: Writing modules
Feb 20, 2014 at 2:01 PM

Anyone tested scenario where there's need to serve single *.cshtml page as web pages from custom module?

So no mvc routing kicks in and there's no controller with action.

Fast test shows that it yields an error saying "the resource cannot be found". I added <add key="webpages:Enabled" value="true"/> to orchard web.config but no cshtml still served.

Thanks in advance,
Feb 21, 2014 at 8:52 PM
I don't know of any solution. However if you need nothing fancy you could write a HomeController with just and Index action, returning that view.