gpt4 book ai didi

azure - Azure 上的经典 ASP 网站 "The page cannot be displayed because an internal server error has occurred."

转载 作者:行者123 更新时间:2023-12-02 00:44:51 25 4
gpt4 key购买 nike

我们已将用经典 asp 编写的应用程序迁移到 Azure 网站(共享),但某些页面仅给出错误“由于发生内部服务器错误,无法显示该页面。”没有任何细节。这些页面在 IIS 7 或使用 IIS Express 下工作正常。但在 Azure 网站上却没有。

根据其他一些帖子中的建议,我为 Azure 上的网站配置了以下内容:

1) Web 服务器日志记录 - 开启
2) 详细错误消息 - 开启
3) Web.config - 关闭自定义错误模式。

<customErrors mode="Off"/>
<compilation debug="true" targetFramework="4.0">

日志消息仍然没有提供错误的更多详细信息,仅提供以下信息:

详细错误信息:

模块IsapiModule
通知执行请求处理程序
处理程序 ASPClassic
错误代码 0x00000000

感谢您提供有关如何调试 Azure 网站上的经典 asp 页面问题的任何帮助。谢谢。

最佳答案

谢谢 G.斯托伊涅夫!添加自定义错误asp页面后就可以了!我使用以下链接中的代码创建自定义错误 asp 页面

http://support.microsoft.com/kb/224070

以下链接也有帮助http://www.tacticaltechnique.com/web-development/classic-asp-getlasterror-in-iis7/

现在,我的 web.config 中的 system.webServer 部分如下所示:

<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules runAllManagedModulesForAllRequests="true"/>
<httpErrors>
<remove statusCode="500" subStatusCode="100" />
<error statusCode="500" subStatusCode="100" prefixLanguageFilePath="" path="/errors.asp" responseMode="ExecuteURL" />
</httpErrors>
</system.webServer>

关于azure - Azure 上的经典 ASP 网站 "The page cannot be displayed because an internal server error has occurred.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15532099/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com