asp-classic - Windows Server 2012 R2 中的 IIS 8 运行经典 asp 和 web.config

标签 asp-classic windows-server-2012 iis-8

我有一个使用经典 ASP 开发的旧应用程序,它在 Windows Server 2008 和 IIS 7.0 下运行良好。我们最近升级到 Windows Server 2012 R2,因为应用程序运行不正常:

当我将“详细错误”设置为 true 时,IIS 会生成一个 web.config 文件:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <httpErrors errorMode="Detailed" />
    </system.webServer>
</configuration>

之后所有页面都出现“500 - 内部服务器错误”,如果我删除 web.config 则工作正常。

我需要启用详细错误来找出某些页面出了什么问题,这些错误是在将其移动到新服务器后发生的。

知道为什么会发生这种情况吗?我应该怎么做才能启用详细错误?

提前致谢。

最佳答案

我相信 web.config 是 ASP.Net 的一部分,它与 ASP 不兼容。您运行的可能是 32 位版本的 Windows 2008,而 Windows 2012 R2 仅是 64 位。

我建议您为您的网站创建一个单独的应用程序池,通过将 .NET CLR 版本设置为“无托管代码”来配置它(右键单击它并选择“高级设置...”),然后设置启用32 位应用程序为 True。

关于asp-classic - Windows Server 2012 R2 中的 IIS 8 运行经典 asp 和 web.config,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33445054/

相关文章:

c# - 无法通过 ASP.NET 应用程序发送电子邮件

asp.net - SITE 的 IIS 配置编辑器部分缺少 http压缩

asp.net - Azure Web 应用程序中的 4 分钟超时

asp.net - 使用 ConfigurationManager 从任意位置加载配置

ms-access - 语法错误,我没有看到 :S

datetime - 如何计算两个不同的日期,例如 2 年零 5 个月

asp-classic - FileSystemObject 是否知道文件不完整?

Windows 8.1 : "IsUserAnAdmin" returns false even though UAC is off and the user a member of "administrators"

c++ - _getch() 在 Windows Server 2012 上不起作用

php - 为什么 CodeIgniter 会耗尽允许的内存大小?