- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个安装了 ELMAH nuGet 包的 ASP.NET MVC 4 应用程序,托管在 Windows Azure 上。当我在本地主机上访问/elmah 时一切正常,但在生产服务器上我现在收到请求超时错误。它也曾经在生产服务器上工作。我对该应用程序所做的最后更改是删除 MiniProfiler 和 Glimpse 包,并在 Windows Azure 网站上添加 New Relic 分析包和附加组件。 Elmah 仍然记录所有错误(我可以看到生成的 xml 文件),但我不知道为什么我不能再查看错误日志。有什么想法吗?
这是完整的错误信息:
Server Error in '/' Application.
Request timed out.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Request timed out.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): Request timed out.]
这是 web.config:
<sectionGroup name="elmah">
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
</sectionGroup>
...
<appSettings>
<add key="elmah.mvc.disableHandler" value="false" />
<add key="elmah.mvc.disableHandleErrorFilter" value="false" />
<add key="elmah.mvc.requiresAuthentication" value="true" />
<add key="elmah.mvc.allowedRoles" value="admin" />
<add key="elmah.mvc.route" value="elmah" />
</appSettings>
...
<system.web>
<httpModules>
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
</httpModules>
</system.web>
...
<system.webServer>
<modules>
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
</modules>
</system.webServer>
...
<elmah>
<security allowRemoteAccess="true" />
<errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/App_Data/elmah" />
</elmah>
更新:现在我开始收到 502 错误
502 - Web server received an invalid response while acting as a gateway or proxy server.
There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.
最佳答案
这在通过 FTP 登录并手动删除 Newrelic 文件夹后效果非常好,因为 Azure 无法为我做这件事。
uninstall-package NewRelic.Azure.WebSites
关于asp.net-mvc - 为什么 elmah 日志返回 Request timed out on production server?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17061247/
有人成功使用过 CaSTLe MonoRail 和 ELMAH 吗? 我们正在使用许多 Resuces 向用户显示友好的错误消息,但如果我们这样做,异常永远不会像 MonoRail 救援拦截它们那样达
我正在尝试配置 ELMAH 以发送电子邮件,但出现以下错误: Server Error in '/' Application. The SMTP server requires a secure co
在我的作品中,我们制作的网站好像已经过时了(即每年有很多网站) 我想在所有这些上安装 ELMAH 作为公司实践,然后集中记录所有内容以供我们的开发人员查看。这个过程必须非常简单,否则它的使用不会起飞。
任何人都可以建议一种快速的方法来告诉 Elmah 不要将电子邮件处理程序用于本地请求吗? 即当 Request.IsLocal == true我不想每次生成异常时都收到电子邮件。或者,一种简单地为本地
我想在我的 web.config 中以声明方式过滤 ELMAH 结果。我无法成功过滤掉我想要的一些异常。 HttpStatusCode 已成功过滤,但我仍无法通过 ViewStateException
安装后elmah.mvc来自 nuget: 默认创建的日志文件在哪里? 当我转到 时,错误记录得很好/myapp/elmah 但是我没有看到实际的日志文件所在的位置。 谢谢 最佳答案 查看 myapp
设置: 我通过 NuGet 在 ASP.NET MVC 4 站点上安装了 ELMAH。 在开发计算机上,应用程序安装在根目录下。一切正常,并且样式与 ELMAH 页面通常一样。它总是这样做,我的意思是
我的雇主目前正在试用 Fogbugz,其中一个不错的功能是我们的异常记录器 (ELMAH) 和 FogBugz 中的案例生成之间的某种自动化。具体来说,如果有一个模块可以向 FogBugz 发送错误报
我发布了我的网站并抛出了异常,但 App_Data 文件夹中没有生成错误文件。我想知道它是否具有对该文件夹的写访问权限。 文档说 ASP.Net 进程需要写访问权限,但不确定这是什么意思。有人能告诉我
我在独立(非 Azure)项目中使用了 ELMAH。对于 Azure 相关项目,我遇到了 Windows Azure 诊断 (WAD) 库。 从表面上看,它们似乎做同样的事情(Azure Diagno
我已通过 Nuget 将 Elmah.mvc 集成到我的 mvc 应用程序中。它正确存储日志,但是当我在 web.config 中进行任何更改或重新启动站点时,所有存储的错误日志都会被删除。有没有办法
该应用程序包括: ASP .NET MVC Web 应用程序 达尔 后台服务 图书馆项目 Web 应用程序和后台服务项目使用库项目来发送电子邮件。 SMTP 设置包含在库项目本身的配置文件中。 在这种
我在我的 ASP.NET 项目中使用 ELMAH 进行错误报告。一切正常,除了在调试项目时,我不想向允许的用户发送电子邮件报告。 我怎样才能完成这个壮举? 最佳答案 假设您的开发和生产环境有不同的 w
我目前正在使用 NLog 从我的 ASP.NET MVC3 应用程序中记录安全事件。 现在我们有另一个要求将应用程序错误添加到单独的日志中。 由于我们已经在使用 NLog(并且喜欢 Targets 的
我安装了 elmah.mvc nuget 包并保留了默认配置,没有设置发送电子邮件并将其插入 SQL 数据库。 当我使用 Visual Studio 主机时,在我的本地计算机上,我可以打开我的应用程序
我基本上已经加载了 Elmah 程序集并使用 NuGet 插件安装了该包。我记得它与我的一个项目一起工作,但突然它停止与 “无法从程序集 'Elmah' 加载类型 'Elmah.ErrorLogMod
我在/elmah.axd 路径上看不到未处理的异常 (MyService:RestServiceBase)。 我添加了用于查看错误的 http 处理程序。 我已经安装了 ServiceStack.
我有Code First MVC 4应用程序。 我尝试安装用于记录Elmah的NuGet软件包-似乎一切正常-错误消息在http://myapp/elmah.axd 然后我注意到有一个Elmah.MV
任何人都可以帮助我了解如何使用 ELMAH 和 C# 记录自定义消息,以防万一成功的 Web 请求返回状态代码 200。 有没有类似于下面提到的方法: Elmah.ErrorSignal.FromCu
我是 ASP.NET MVC 的新手,我正在寻找最不痛苦的方法来设置全局错误处理、日志记录和报告(通过电子邮件)。仅供引用,我的 ASP.NET MVC 应用程序在 Azure 中作为 Web 角色托
我是一名优秀的程序员,十分优秀!