【发布时间】:2012-01-07 02:06:14
【问题描述】:
我的 ELMAH 1.2.1 正在我的 ASP.NET MVC 3 站点中运行。我正在使用 admin/elmah.axd URL 方法。但是当我尝试深入了解详细信息页面或 RSS 提要等时,我会收到 404 错误。
为什么 admin/elmah.axd 对我有用,而不是 /admin/elmah.axd/detail/?id=F983FCAD-98C3-4665-B8E3-A9C00E30B510 或 RSS 提要或可下载日志等详细信息页面?
这是我的路线配置的 Glimpse 屏幕截图:
以下是我定义路由的方式,这些路由都是在应用程序启动时初始化的:
RouteCollection routes = RouteTable.Routes;
routes.Clear();
routes.IgnoreRoute("cms/");
routes.IgnoreRoute("elmah.axd/{*pathInfo}");
routes.IgnoreRoute("{file}.htm");
routes.IgnoreRoute("{file}.html");
routes.IgnoreRoute("{file}.png");
routes.IgnoreRoute("{file}.gif");
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
我还在http://groups.google.com/group/elmah/browse_thread/thread/c22b85ace3812da1 尝试了通配符映射问题,尽管这似乎是一个相当古老的线程,并且可能只是 ASP.NET 上的那个版本存在问题。
谢谢
【问题讨论】:
标签: asp.net-mvc-3 elmah