如何检查部署在 IIS 中的 asp.net mvc web 应用程序的日志

how to check the logs for my asp.net mvc web application which is deployed inside IIS

我已经在 IIS 中部署了一个 asp.net mvc-5 web 应用程序,现在有用户提到他收到了一个 "Error occurred while processing your request" ,这表明发生了意外错误,所以任何人都可以从哪里得到建议我可以查看此错误的详细信息吗?

看看这个指南,你应该能够在 Windows 事件查看器中找到它们

Viewing IIS Event and Error Messages

或者

您可以查看 inetpub 文件夹中的 IIS 写入日志。

c:\inetpub\logs\LogFiles

使用 ELMAH 的 NuGet 包。欲了解更多信息,请访问: