elmah.mvc

ELMAH exceptions generating generic “The service is unavailable” message

半腔热情 提交于 2019-12-02 06:27:41
问题 I'm trying to create an availability page which checks all the services that a site uses, wrapping each check in a try/catch and then displaying any failures to the users. One of those services is ELMAH, so I am calling that to double check that we can log errors there successfully. Controller: var a = new AvailabilityModel(); try { a.ElmahConnectionString = ConfigurationManager.ConnectionStrings["elmah-sqlserver"].ConnectionString; Elmah.ErrorSignal.FromCurrentContext().Raise(new Exception(

ELMAH exceptions generating generic “The service is unavailable” message

梦想与她 提交于 2019-12-01 23:10:01
I'm trying to create an availability page which checks all the services that a site uses, wrapping each check in a try/catch and then displaying any failures to the users. One of those services is ELMAH, so I am calling that to double check that we can log errors there successfully. Controller: var a = new AvailabilityModel(); try { a.ElmahConnectionString = ConfigurationManager.ConnectionStrings["elmah-sqlserver"].ConnectionString; Elmah.ErrorSignal.FromCurrentContext().Raise(new Exception("Elmah availability test")); a.ElmahSuccess = true; } catch (Exception ex) { a.ElmahSuccess = false; a

How to stop Elmah logging?

社会主义新天地 提交于 2019-12-01 04:31:11
I am using Elmah.MVC 2 with MVC3, ASP.NET 4.5 on Azure Websites. I have set it up to log, via the web.config, to XML files on the webserver. This all works. However I want to stop it temporarily, as I believe it may be slowing the web server, since it is taking up time writing these error files. I plan to log to SQL Server. But for now I need to stop Elmah. My Web.config Elmah sections are : <sectionGroup name="elmah"> <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" /> <section name="errorLog" requirePermission="false" type="Elmah

How to stop Elmah logging?

拥有回忆 提交于 2019-12-01 03:05:53
问题 I am using Elmah.MVC 2 with MVC3, ASP.NET 4.5 on Azure Websites. I have set it up to log, via the web.config, to XML files on the webserver. This all works. However I want to stop it temporarily, as I believe it may be slowing the web server, since it is taking up time writing these error files. I plan to log to SQL Server. But for now I need to stop Elmah. My Web.config Elmah sections are : <sectionGroup name="elmah"> <section name="security" requirePermission="false" type="Elmah

Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0, Elmah.MVC issue

旧时模样 提交于 2019-11-29 20:55:54
Locally - my MVC 4, asp.net, c# app runs fine on IIS 8 / Windows 8. When deployed to Windows Server 2008, I get this error: Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) and [FileLoadException: Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition

Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0, Elmah.MVC issue

点点圈 提交于 2019-11-28 17:06:17
问题 Locally - my MVC 4, asp.net, c# app runs fine on IIS 8 / Windows 8. When deployed to Windows Server 2008, I get this error: Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) and [FileLoadException: Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral,