果园CMS应用程序内部的WebForms页 [英] WebForms page inside of Orchard CMS Application

查看:114
本文介绍了果园CMS应用程序内部的WebForms页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想包括果园1.2应用程序内部的web表单(的.aspx)页面。

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

我在web.config中尝试添加回ASPX处理器

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

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

和增加code到Global.asax中,试图得到路由忽略ASPX请求

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

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

我仍然收到404响应只要我请求aspx页面。我如何使这项工作?

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

推荐答案

下面是一个已经为我工作一个web.config:

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>

这篇关于果园CMS应用程序内部的WebForms页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆