This project is read-only.

Viewing aspx page from a module

Topics: Customizing Orchard
Sep 26, 2013 at 8:08 AM
Can i view / display a aspx page?

public ActionResult ViewReport()
 return View();

then i have a ViewReport.aspx

I got an error: The view 'About' or its master was not found or no view engine supports the searched locations. The following locations were searched:
Sep 26, 2013 at 1:42 PM
Edited Sep 26, 2013 at 1:42 PM
Which Orchard version are you using? We dropped support for .aspx views in 1.7 (or even earlier in 1.6, iirc). It's not coming back. You should stick to Razor (.cshtml) instead.
Jun 23, 2015 at 2:35 PM

I use 1.9.1 now. I have requirement to put a *.aspx file into module's folder. Can I modify system.webserver's handlers setting to enable aspx file handle ?