I wanted to use the awesome asp.net profiler Glimpse with BetterCMS but after installing it with nuget and navigating to http://…/Glimpse.axd I always got the following error:
Oops! The page you are looking for can not be found.
After some research I found out that in order to use Glimpse, if you are using BetterCMS, you first have to make sure you have Glimpse activated on web.config:
<glimpse defaultRuntimePolicy="On" endpointBaseUri="~/Glimpse.axd">
and then you only have to access your route.config file and uncoment the following line:
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
Make sure to leave the rest of the lines commented, like so:
public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); //routes.MapRoute( // name: "Default", // url: "{controller}/{action}/{id}", // defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } //); } }
And there you have it. Glimpse should now be working inside BetterCMS:

The source code is available on Github