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

标签 azure asp-classic web cloud

我们已将用经典 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/

相关文章:

xml - 如何解决 "The download of the specified resource has failed"错误?

regex - 使用经典 asp 进行正则表达式

javascript - 如何告诉网站正在使用 Electron?

java - 是否有任何 "modern"框架支持在编译时检查数据绑定(bind)?

使用外部引用的 nuget 包在 Portal (CSX) 中编写的 Azure Functions 不起作用

azure - 如何从Azure Key Vault读取和更新Azure Logic App的parameters.json文件中的 secret 信息

azure - Azure 中的事件存储

azure - 有没有办法对 Azure 数据仓库中的表或列进行注释或记录?

javascript - 用ASP写入JS文件

java - Keycloak 重定向 localhost 而不是重定向远程 url