ASP.NET 1.1、FormsAuthentication 和 IIS7 (Windows Server 2008 R2 x64)

发布于 2024-09-15 20:22:48 字数 426 浏览 4 评论 0原文

将一些旧站点从旧服务器移至运行 Windows Server 2008 x64 的较新服务器。一些站点正在运行 ASP.NET 1.1。我已经让它们都以最小的故障工作(除了确保通过 aspnet_regiis 重新映射每个 ASP.NET 版本并将 1.1 machine.config 复制到 Framework64 位置),但 ASP 似乎不支持 FormsAuthentication .NET 1.1/IIS7/7.5。这意味着,FormsAuthentication 不是 IIS Admin 中的一个选项,配置文件中的 FormsAuthentication 设置只会导致 403 Not Authorized 页面呈现,而不是重定向到登录页面等。

有人让它工作吗?我真的只是希望它快速而肮脏,因为它只影响三个站点,这是唯一剩下的问题。我不想保留 Win2003 服务器(虚拟或其他)。

谢谢。

Moving some old sites off an old server to a newer one running Windows Server 2008 x64. Some of the sites are running ASP.NET 1.1. I've gotten them all to work with minimal hiccups (other than making sure to remap each ASP.NET version via aspnet_regiis and copying over the 1.1 machine.config to the Framework64 location) except for FormsAuthentication doesn't appear to be supported for ASP.NET 1.1/IIS7/7.5. Meaning, FormsAuthentication is not an option in IIS Admin, and FormsAuthentication settings in config files merely causes 403 Not Authorized page to render instead of redirecting to a login page etc.

Has anyone gotten it to work? I really just want it quick and dirty as it's only affecting three sites and this is the only remaining issue. I'd prefer not to have to keep a Win2003 server around (virtual or otherwise).

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小嗲 2024-09-22 20:22:48

好的,首先我认为IIS7.0和IIS7.5之间有一个区别,7.0似乎与ASP.NET 1.1更兼容。

您应该能够在 Windows 2008 服务器上安装 IIS7.0,但我认为它不能在 Windows 7 上使用。请注意,.NET 1.1 应该在 WoW64 配置下运行,因为我认为它本身不支持 64 位。查看这篇文章,了解如何在带有 IIS 7.0 的 Windows 2008 上安装 ASP.NET 1.1 - http://learn.iis.net/page.aspx/472/how-to-install-aspnet-11-with-iis7-on -vista-and-windows-2008/

我看到这篇文章,将 ASP.NET 1.1 升级到 IIS7.0 - http://learn.iis.net/page.aspx/270/upgrading-aspnet- 11-to-iis7-on-windows-vista--windows-server-2008/ 这可能会有所帮助。特别要查看“集成模式和经典模式之间的差异”部分,其中讨论了表单身份验证行为的差异。

OK First of all I think there is a difference between IIS7.0 and IIS7.5 in that 7.0 seems to be more compatible with ASP.NET 1.1.

You should be able to install IIS7.0 on Windows 2008 server but I don't think it is available on Windows 7. Please not that .NET 1.1 should be running under the WoW64 configuration since I don't think it supports 64bit natively. Look at this article for installing ASP.NET 1.1 on Windows 2008 with IIS 7.0 - http://learn.iis.net/page.aspx/472/how-to-install-aspnet-11-with-iis7-on-vista-and-windows-2008/

I came across this article for upgrading ASP.NET 1.1 to IIS7.0 - http://learn.iis.net/page.aspx/270/upgrading-aspnet-11-to-iis7-on-windows-vista--windows-server-2008/ which might be helpful. Especially look at the section on "Differences between Integrated Mode and Classic Mode" where forms authentication behavior differences are discussed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文