我收到此错误:
Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
但是,应用程序事件日志中没有错误。 所以我想知道在 IIS 或启用日志记录的虚拟站点中是否有特定设置?
更改 web.config 中的 customerror 设置似乎没有效果。我不认为它甚至走得那么远。
IIS 6、Windows Server 2003
最佳答案
打开 IIS 元数据库...
%systemroot%\system32\inetserv\metabase.xml
在 IIS 元数据库中检查 AspErrorsToNTLog 不是 FALSE。
如果是,请更改为 TRUE 并保存。
http://msdn.microsoft.com/en-us/library/ms524984(v=vs.90).aspx
使用 IIS 管理器启用元数据库的运行时编辑功能
修改 IIS 元数据库
关于asp.net - 在 ASP.NET 中启用未处理异常的事件日志记录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3462369/