经典 ASP 会话在 IIS 7 Windows Server 2008 R2 x64 中不起作用

发布于 2024-10-09 09:56:50 字数 1137 浏览 0 评论 0原文

我一直在谷歌上搜索并搜索有关此问题的信息,但到目前为止找不到与我的问题相关的任何内容。

我们有一个网站目前可以在 II6 和 Windows Server 2003 (x86) 上运行,没有任何问题。现在我们想要将服务器迁移到装有 Windows Server 2008 R2 (x64) 和 IIS7 的虚拟机。

当前的应用程序是用经典 ASP 和 SQL Server 构建的(该应用程序位于第二台服务器上,但保持现在的方式)。

该网站被配置为网站,而不是虚拟目录。将 DefaultAppPool 与 4 个应用程序一起使用。

现在,我遇到的问题是会话,或者至少我是这么想的,因为我用这段代码创建了一个简单的 hello.asp

<% 
response.write "Hello"
response.write Session.SessionID
%>

这给了我们这个结果:

Hello error '8002801d' 
/hello.asp, line 3

ASP 会话属性

Enable Session State : True
Maximum Sessions : 2147483647
New ID On Secure Connection : True
Time-out : 20 min

中的日志

这是事件查看器警告 24/12/2010 14:03:42 活动服务器页面 9 无

FailedReqLog

网址 http://apps.shocklogic.com:80/hello.asp 应用程序池默认应用程序池 身份验证匿名用户来自 令牌 NT AUTHORITY\IUSR 活动 ID {00000000-0000-0000-1400-0080000000F8} 站点 1 进程 3312 失败原因 STATUS_CODE 触发状态 500 最终 状态 500 所用时间 110 毫秒

如果有人有任何想法,那就太好了。

谢谢, 费德里科

I've been googleing and searching here info about this but so far couldn't find anything relevant to my problem.

We have a website currently working on II6 and Windows Server 2003 (x86) without any problem. Now we want to migrate our server to a Virtual Machine with Windows Server 2008 R2 (x64) and IIS7.

Out current app is built in Classic ASP and SQL Server (This one located on a 2nd Server but this is staying the way it is now).

The website is configured as a WebSite, not a virtual directory. Using DefaultAppPool with 4 applications.

Now, the problem I'm getting is with the Sessions, or at least that's what I think since I created a simple hello.asp with this code

<% 
response.write "Hello"
response.write Session.SessionID
%>

And this is giving us this result:

Hello error '8002801d' 
/hello.asp, line 3

ASP Sessions Properties

Enable Session State : True
Maximum Sessions : 2147483647
New ID On Secure Connection : True
Time-out : 20 min

This is the log in Event Viewer

Warning 24/12/2010 14:03:42 Active Server Pages 9 None

FailedReqLog

Url
http://apps.shocklogic.com:80/hello.asp
App Pool DefaultAppPool
Authentication anonymous User from
token NT AUTHORITY\IUSR Activity ID
{00000000-0000-0000-1400-0080000000F8}
Site 1 Process 3312 Failure Reason
STATUS_CODE Trigger Status 500 Final
Status 500 Time Taken 110 msec

Would be great if anyone has any ideas.

Thanks,
Federico

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

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

发布评论

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

评论(1

最好是你 2024-10-16 09:56:50

听起来 ASP 有点被破坏了。尝试卸载然后重新安装。您可以从 PowerShell 中执行此操作,只需最少的烦恼:

Import-Module ServerManager
Remove-WindowsFeature Web-ASP
Add-WindowsFeature Web-ASP

您是否尝试过以 32 位模式运行应用程序池?

Sounds like ASP is a bit clobbered. Try uninstalling then re-installing. You can do this from PowerShell with minimal faffing about:

Import-Module ServerManager
Remove-WindowsFeature Web-ASP
Add-WindowsFeature Web-ASP

Have you tried to run the application pool in 32-bit mode?

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