当我将.NET通配符映射添加到目录时,为什么我不能在经典ASP中获取应用程序对象?

时间:2022-09-01 23:13:38

We're migrating a site from classic asp to .NET. In the process, I need to use .NET authentication to secure the classic asp pages. This works great with wildcard mapping...unless the classic asp pages try to use something like the Application object.

我们正在将一个站点从经典的asp迁移到.NET。在这个过程中,我需要使用.NET身份验证来保护经典的asp页面。这适用于通配符映射...除非经典的asp页面尝试使用类似Application对象的东西。

I have tried adding an HTTPHandler to pass the request to the asp.dll, but to no avail.

我已经尝试添加HTTPHandler将请求传递给asp.dll,但无济于事。

Is what I am trying to do even possible?

我甚至想做什么?

2 个解决方案

#1


Are you trying to have some of your old 'classic' asp pages within the same site as the .aspx pages? We've done something similar here, but we wound up with two websites, one for the asp and one for the .net and did some session sharing to perform the authentication.

您是否尝试将一些旧的“经典”asp页面放在与.aspx页面相同的站点中?我们在这里做了类似的事情,但我们结束了两个网站,一个用于asp,另一个用于.net,并进行了一些会话共享以执行身份验证。

#2


It is possible on IIS7 using the integrated pipeline, I would say it would be highly fragile on IIS6 with wildcard mapping.

在IIS7上使用集成管道是可能的,我会说在IIS6上使用通配符映射会非常脆弱。

#1


Are you trying to have some of your old 'classic' asp pages within the same site as the .aspx pages? We've done something similar here, but we wound up with two websites, one for the asp and one for the .net and did some session sharing to perform the authentication.

您是否尝试将一些旧的“经典”asp页面放在与.aspx页面相同的站点中?我们在这里做了类似的事情,但我们结束了两个网站,一个用于asp,另一个用于.net,并进行了一些会话共享以执行身份验证。

#2


It is possible on IIS7 using the integrated pipeline, I would say it would be highly fragile on IIS6 with wildcard mapping.

在IIS7上使用集成管道是可能的,我会说在IIS6上使用通配符映射会非常脆弱。