How to access aspx file?

Topics: Troubleshooting
Jul 23, 2014 at 3:50 PM
It worked a few version ago, but not anymore with 1.8.1.0

The home of an Orchard instance is:
http://localhost:8081/Orchard
File foo.aspx resides in the root directory. http://localhost:8081/Orchard/foo.aspx give HTTP404 error.

I have added the following to Global.asax:
routes.IgnoreRoute("{resource}.aspx/{*pathInfo}");
I have also tried:
routes.Ignore("{*allaspx}", new { allaspx = @".*\.aspx(/.*)?" });
I added the following to web.config:
<add name="aspx" path="*.aspx" verb="*" type="System.Web.UI.PageHandlerFactory"/>
Any tip will be greatly appreciated.