Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebForms page inside of Orchard CMS Application

I'm trying to include a webforms (.aspx) page inside of an Orchard 1.2 application.

I've tried adding back the aspx handler in the web.config

<add path="*.aspx" verb="*" type="System.Web.UI.PageHandlerFactory" /> 

and added code to the Global.asax to try and get routing to ignore aspx requests

routes.IgnoreRoute("{resource}.aspx/{*pathInfo}");

I'm still receiving a 404 response anytime I request the aspx page. How do I make this work?

like image 311
joshb Avatar asked Jul 09 '11 21:07

joshb


1 Answers

Here's a web.config that has worked for me:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
      <handlers accessPolicy="Script">
        <add name="ASPX" path="*.aspx" verb="*" type="System.Web.UI.PageHandlerFactory" preCondition="integratedMode" requireAccess="Script"/>
      </handlers>
    </system.webServer>
</configuration>
like image 126
Bertrand Le Roy Avatar answered Nov 06 '22 18:11

Bertrand Le Roy