简体   繁体   English

在集成模式下运行的 IIS 7 Classic ASP 应用程序

[英]IIS 7 Classic ASP application running in Integrated mode

We have a ASP .Net application hosted on IIS 7 on Integrated mode.我们在集成模式下在 IIS 7 上托管了一个 ASP .Net 应用程序。

We have a few classic ASP pages inside this ASP .Net application.我们在这个 ASP .Net 应用程序中有一些经典的 ASP 页面。 When i am trying to fo form post from classic ASP page and try to access posted data using Request.Form("name") , it is giving me unspecified error.当我尝试从经典 ASP 页面发布表单并尝试使用Request.Form("name")访问发布的数据时,它给了我未指定的错误。 Request object is getting wiped off on form post.请求对象在表单发布时被擦除。

If i change the folder containing classic asp pages to an application and change its application pool to a new application pool which is using classic mode, everything works fine.如果我将包含经典 asp 页面的文件夹更改为应用程序并将其应用程序池更改为使用经典模式的新应用程序池,则一切正常。

Can i have Classic ASP pages running inside ASP .Net application hosted on IIS 7 in Integrated mode?我可以在集成模式下在 IIS 7 上托管的 ASP .Net 应用程序中运行经典 ASP 页面吗?

We are using Sitecore 6.5 for our web application.我们将 Sitecore 6.5 用于我们的 Web 应用程序。

Yes you can run ASP Classic on IIS7 using an integrated pipeline.是的,您可以使用集成管道在 IIS7 上运行 ASP Classic。

You might have to add a custom HTTP handler.您可能需要添加自定义 HTTP 处理程序。 Take a look at the answer from Kim Hansen .看看从应答金汉森 She uses the following code:她使用以下代码:

<add name="ASPClassic" path="*.asp" verb="GET,HEAD,POST" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="File" requireAccess="Script" />

Take a look at this resource for some general tips on running ASP Classic on IIS7.查看资源,了解有关在 IIS7 上运行 ASP Classic 的一些一般提示。

Some other things to look into:其他一些需要调查的事情:

  • 32 bit applications is disabled by default.默认情况下禁用 32 位应用程序。 Some COM objects need this to be enabled.某些 COM 对象需要启用此功能。 This option can be set per site可以为每个站点设置此选项
  • Take a look at the comPlusentry in the web.config.查看 web.config 中的comPlus条目 Escpecially executeInMta can be important in certain cases for Classic ASP.特别是executeInMta在某些情况下对于经典 ASP 可能很重要。

We had a similar issue.我们有一个类似的问题。 We run the app pool in integrated mode and have a custom http module which inspects the request on .net side.我们在集成模式下运行应用程序池,并有一个自定义 http 模块来检查 .net 端的请求。 We needed jump over that part in .net code for .asp extenstions and everything worked again.我们需要跳过 .net 代码中的那部分以获取 .asp 扩展名,然后一切正常。 Seems like whenever .net runs first and accesses the request object it's somehow "locked" for later modules.似乎每当 .net 首先运行并访问请求对象时,它都会以某种方式“锁定”以供以后的模块使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 IIS ASP.NET何时使用集成模式或经典模式? - IIS ASP.NET when to use Integrated Mode or Classic Mode? 如何以编程方式检测我的应用程序是否在ASP.NET页面中的IIS 7.0集成模式下运行 - How to programatically detect if my application is running in IIS 7.0 Integrated mode from within an ASP.NET page 经典Asp .asp扩展页的处理程序映射在IIS集成管道模式下出错 - Handler Mapping For Classic Asp .asp extension pages giving errors at IIS Integrated Pipe Line Mode 将asp.net应用程序转换为IIS7集成模式 - Convert an asp.net application to IIS7 integrated mode 经典到集成模式,http 处理程序未运行 - Classic to integrated mode, http handlers not running 应用程序池模式问题:经典或集成 - Application Pool Mode Problem: Classic Or Integrated IIS7中的“经典”和“集成”管道模式有什么区别? - What is the difference between 'classic' and 'integrated' pipeline mode in IIS7? 将IIS从经典模式切换到集成模式时锁定和高CPU - Locking and high CPU when switching IIS from Classic to Integrated mode 自定义HttpModule可在IIS7中集成,但不是经典模式 - Custom HttpModule working in IIS7 integrated, but not classic mode IIS7集成管道模式比经典慢 - IIS7 integrated pipeline mode slower than classic
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM