elmah-mvc | Painless integration of ELMAH into ASP.NET MVC | Model View Controller library
kandi X-RAY | elmah-mvc Summary
kandi X-RAY | elmah-mvc Summary
For painless integration of ELMAH into ASP.NET MVC application.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of elmah-mvc
elmah-mvc Key Features
elmah-mvc Examples and Code Snippets
Community Discussions
Trending Discussions on elmah-mvc
QUESTION
We're building an ASP.NET MVC 4 app in Visual Studio 2015. The app uses Elmah.MVC for exception handling. We're three developers; for two of us it's working fine on localhost, but one developer is getting this error (captured by Elmah):
The controller for path '/favicon.ico' was not found or does not implement IController.
This post provides a solution, and I've modified the routes to include it and the developer in question has synced his code:
...ANSWER
Answered 2019-May-19 at 05:34Add this to your global.asax file.
QUESTION
I'm working on an ASP.NET MVC 5 app in Visual Studio 2015. We use NLog to write some errors and other information to the database in our try/catch
blocks. However, it would be nice to also implement ELMAH.MVC, so that any/all uncaught exceptions get caught/logged and the user redirected to a friendly page.
Here's our NLog table structure; note that ApplicationId
is not equivalent to Application
on the ELMAH_Error
table; people apply for things through the app, and this is the ID we assign when they start the process. And RouteId
is not an MVC route.
ANSWER
Answered 2017-Jul-07 at 16:57Found a solution that works very nicely: https://github.com/NLog/NLog.Elmah/
To install,
Install-Package NLog.Elmah
Update-Package NLog
- I also installed NLog.Web package, but isn't required for this.
- Modify NLog.config to include:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install elmah-mvc
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page