Code Monkey home page Code Monkey logo

Comments (3)

RehanSaeed avatar RehanSaeed commented on May 19, 2024

Thanks for logging this issue. Take a look at the change log or create a new project from the template (I've not yet checked in the code but will this afternoon).

I've fixed the issue with logging 500 errors. When I introduced an 'Error' folder yesterday to contain the new static error pages for 503 and 504 errors, this conflicted with the '/error' route. I've now renamed the '/error' route to 'error/internalservererror'.

I'm not sure why Elmah is not logging 404 errors. I've raised this issue with Elmah.MVC. I'll try to play around with it more and see if I can figure it out.

Its worth noting also that Elmah will NOT handle 500 errors raised by IIS. If this happens it means something catastrophic happened to your site and MVC was not even able to start and so Elmah was not able to run. This is where IIS logging comes in.

from templates.

RehanSaeed avatar RehanSaeed commented on May 19, 2024

I have found that the problem is with Elmah.MVC. It stops logging correctly if we use only attribute routing. You can fix the issue if you add the code below. I am waiting for a response from Elmah.MVC before I add this code as I want to understand what is going wrong.

routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
            );

from templates.

RehanSaeed avatar RehanSaeed commented on May 19, 2024

The default route above has been added by default, with a comment about it being required to satisfy Elmah. I'll keep any eye out for any updates.

from templates.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.