elmah

Unwanted SQLite inserted in \\bin

北慕城南 提交于 2019-12-03 12:00:12
I am using Visual Studio 2010 and using web deployment to promote the .Net MVC site to specific environments. I installed Elmah, and it worked great on my DEV environment, but when I pushed TEST, I got exceptions because SQLite was not a good format. I am not using SQLite in Elmah or otherwise that I know of. I have removed all visible refernces to SQLite, and I have removed the .dll from all configuration bin directories. But it still gets inserted with each build. I realize the exception problem is that SQLite cannot be built for CPU Any, and my environments vary from x86 to x64. But I would

Elmah log files deletion, manually or is there a setting?

て烟熏妆下的殇ゞ 提交于 2019-12-03 09:57:11
How do I delete the log files that Elmah generates on the server? Is there a setting within Elmah that I can use to delete log files? I would prefer to specify some criteria (e.g. log files that are older than 30 days). Or should I write my own code for that ? You can set the maximum number of log entries, but there isn't a native function for clearing out logs older than a given date. It's a good feature request, though! If you are storing your error logs in memory the maximum number stored is 500 by default and this requires no additional configuration. Alternatively, you can define the

External Config Files with elmah

坚强是说给别人听的谎言 提交于 2019-12-03 09:34:29
I am using elmah (v1.1.11517.0) and am trying to move the config to an external source. My config currently looks like this: <?xml version="1.0"?> <configuration> <configSections> <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"/

Limiting the Number of Emails Sent By Elmah

半世苍凉 提交于 2019-12-03 09:25:09
问题 Does anyone know of a good way to limit the number of emails sent by Elmah during a time period like you can with Health Monitoring? I want to be able to limit the emails for each error from each page to only an email once an hour or so for that particular error and page. Looking at the elmah documentation it looks like using: void ErrorMail_Filtering(object sender, ExceptionFilterEventArgs e) { // perform filtering here } in the global.ascx file might be an option. I could setup a static

Exception handling in Controller in ASP.Net MVC 4 with ELMAH and ajax

混江龙づ霸主 提交于 2019-12-03 09:22:19
I've seen a number of posts and articles but am not able to see the solution crisply. I've installed Elmah.MVC via NuGet and have commented out this line from FilterConfig.cs: //filters.Add(new HandleErrorAttribute()); So that Elmah would pick up the errors. It works when I provide an invalid action name and I get a yellow page as well as an email. I want to know about two other types of errors that my code may generate... how are we supposed to handle them: 1.E.g. if my repository or manager (business logic) layer throws an exception when trying to access database or send an email etc. a. Is

How to get Elmah working with ASP.NET and IIS 5.1 URL Routing

十年热恋 提交于 2019-12-03 09:02:46
问题 I am having issues with regards to running my ASP.NET MVC application thru my local IIS 5.1 web server. I believe these issues are related to IgnoreRoutes, but I can't seem to craft an IgnoreRoute such that it resolves the problem. Problem: I am able to view my elmah error page (localhost/mvcapplication1/elmah.axd), however, the CSS is missing and none of the links work. Steps to Reproduce 1) Create an ASP.NET MVC 1.0 Application 2) Add Elmah. Download the assemblies, add them to your project

Elmah error logging, can I just log a message?

瘦欲@ 提交于 2019-12-03 08:21:59
问题 I just installed Elmah (https://code.google.com/p/elmah/) for my ASP.NET application. Is it possible to log a message without creating an Exception first? catch(Exception e) { Exception ex = new Exception("ID = 1", e); ErrorSignal.FromCurrentContext().Raise(ex); } So is it possible to do: ErrorSignal.FromCurrentContext().log("Hello I am testing Elmah"); 回答1: Yes, you can use ErrorSignal without throwing an exception. ErrorSignal.FromCurrentContext().Raise(new NotSupportedException()); For the

Separate viewer application for ELMAH's log

无人久伴 提交于 2019-12-03 07:22:26
问题 We're using ELMAH for error logging in our ASP.NET application. We use the SQL Server error logging. Because of security and configuration constraints in the application, we would like to have the log viewer UI (Elmah.ErrorLogPageFactory) in a separate web application, connected to the same database. However, ELMAH filters errors on application name, so just deploying a separate application, you also get a separate log. Is there a way to configure ELMAH to work as a standalone log viewer, i.e

Use single Elmah.axd for multiple applications with single DB log

元气小坏坏 提交于 2019-12-03 06:46:12
问题 We have a single SQL Log for storing errors from multiple applications. We have disabled the elmah.axd page for each one of our applications and would like to have a new application that specifically displays errors from all of the apps that report errors to the common SQL log. As of now, even though the application for all errors is using the common SQL log, it only displays errors from the current application. Has anyone done this before? What within the elmah code might need to be tweaked?

Securing Elmah RSS Feeds in ASP.NET website

北城余情 提交于 2019-12-03 03:02:42
I followed the answer to this question Securing Elmah in ASP.NET website to restrict access to the elmah handler. However, it seems that adding an RSS feed to Outlook for the URL elmah.axd/rss or elmah.axd/digestrss bypasses the authentication. What's the point of securing the handler if someone can guess the RSS URL and subscribe to a feed of the error log? I secure mine in the web.config with a role: <location path="elmah.axd"> <system.web> <authorization> <allow roles="SUPER_DUPER_ADMIN"/> <deny users="*"/> </authorization> </system.web> </location> 来源: https://stackoverflow.com/questions