Securing Elmah in ASP.NET website

后端 未结 4 828
难免孤独
难免孤独 2020-12-07 08:05

I am having trouble trying to secure ELMAH. I have followed Phil Haacked\'s tutorial, with the only difference being the demo project is a web application and my project is

4条回答
  •  太阳男子
    2020-12-07 08:18

    If you are using ASP.NET MVC, you're going to need to have the routing engine ignore that path. If you want to move elmah to /admin/elmah.axd for instance you should add the following to Global.asax.cs:

    routes.IgnoreRoute("admin/elmah.axd/{*pathInfo}");
    

提交回复
热议问题