elmah

ELMAH: Elmah pages not styled making them difficult to read

时光总嘲笑我的痴心妄想 提交于 2019-12-22 04:22:16
问题 Setup: I have ELMAH installed via NuGet on an ASP.NET MVC 4 site. On the dev machine the app is installed at the root. It all works and is styled as ELMAH pages usually are. It always does that, work on the dev machine I mean, doesn't it? But on the server, the app installed in a sub folder (~/tracker). Although ELMAH works fine, the pages are unstyled, making them difficult to read. Question: What do I need to do to get the pages to style? Presumably, the styling comes from a resource that

ELMAH: Elmah pages not styled making them difficult to read

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-22 04:21:19
问题 Setup: I have ELMAH installed via NuGet on an ASP.NET MVC 4 site. On the dev machine the app is installed at the root. It all works and is styled as ELMAH pages usually are. It always does that, work on the dev machine I mean, doesn't it? But on the server, the app installed in a sub folder (~/tracker). Although ELMAH works fine, the pages are unstyled, making them difficult to read. Question: What do I need to do to get the pages to style? Presumably, the styling comes from a resource that

ELMAH is not logging

你离开我真会死。 提交于 2019-12-21 18:29:37
问题 I've been using ELMAH on my development machine and it works fine. I also deployed it on Win2008 IIS7 and run the LOCALHOST website with force exception and it logs.. However, when i try browsing the website on other machine (using other machine from the network to browse the website) ELMAH is not logging.. I've check the App_Data for xml and none created. I already give Network service persmission on the folders. So, the problem is when browsing the website in localhost ELMAH logs, when

MVC app deployment; System.Data.SqlClient.SqlException: Could not find stored procedure 'ELMAH_GetErrorsXml'

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-21 07:26:51
问题 I have deployed my MVC app but the error handling does not work. I use a SQLite database and when I try to navigate to the error messages in Elmah i get this exception; System.Data.SqlClient.SqlException: Could not find stored procedure 'ELMAH_GetErrorsXml'. Of course I need to deploy the SQLite database, defined in my web.config as; add name="ELMAH.SQLite" connectionString="Data Source=|DataDirectory|errors.s3db" /> I am thinking that I did not deploy a SQLite database when I deployed my

Castle MonoRail & ELMAH

我们两清 提交于 2019-12-21 05:46:36
问题 Is anyone using Castle MonoRail and ELMAH with success? We are using a number of Resuces to present users with friendly error messages, but if we do this the exceptions never get as far as ELMAH as the MonoRail rescue intercepts them. Ideally we want the user to see the rescue, but for the exception to be logged in ELMAH. Any ideas/pointers? Cheers, Jay. 回答1: After looking at the links Macka posted, I wrote this simple monorail exception handler: public class ElmahExceptionHandler :

How to get ELMAH to include session values?

痴心易碎 提交于 2019-12-21 04:07:11
问题 NOTE: I know the various reasons to avoid using the session, but this is a project I've inherited, so please skip that part of any replies :) Since it's a solved problem, I'm hoping someone can point to an ELMAH patch/branch/fork that includes logging session data rather than reinventing the wheel. One weird thing is an older post from Atif that says they're already logged: http://markmail.org/message/ncmdgwm5rmzewbwu commenter henningst mentioned adding in the session variables here: http:/

Unwanted SQLite inserted in \bin

落爺英雄遲暮 提交于 2019-12-21 03:38:22
问题 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

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

ε祈祈猫儿з 提交于 2019-12-21 02:36:13
问题 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

Elmah 1.2 does not log to SQL on Windows 2008 IIS7.5 Integrated mode (but works locally)

穿精又带淫゛_ 提交于 2019-12-20 03:50:51
问题 I'm building a new Web Forms aspnet 4.0 website and have installed Elmah 1.2 using NuGet. I've added a line to the web.config to log to sql server express, and created the relevant table and 3 stored procs. Locally (Win 7/ IIS 7.5) everything works well (when run through vs2010 dev server, and my local IIS)- I can hit elmah.axd/test then return to elmah.axd and, sure enough, my error has been logged. I then publish the site up to our dev server (Win 2008 R2/ IIS 7.5). If I hit elmah.axd it

How to use EntityFramework connection string for Elmah?

陌路散爱 提交于 2019-12-19 06:28:09
问题 In ELMAH for logging errors to the database you can write: <errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="EducoparkEntities"/> However, if I use EntityFramework, this doesn't work because the connection string for EF contains metadata as well: <add name="EducoparkEntities" connectionString="metadata=res://*/EducoparkData.csdl|res://*/EducoparkData.ssdl|res://*/EducoparkData.msl;provider=System.Data.SqlClient;provider connection string="Data Source=(Local);Initial Catalog=...