Getting Glimpse / RouteDebugger to work on Cassini 404 pages?

Do I need to do anything to get Glimpse to pump out details on a request that returns a 404 server error page on Cassini? By default, 404 page, I mean "Server error in application /" with the message "Resource cannot be found" (as well as HTTP 404 description, requested URL and version information).

This project has a rather complicated routing, so I have no doubt that something contradicts what I'm trying to do. I just want Glimpse to provide any details that it could point me in the right direction to fix the problem.

I downloaded Glimpse via NuGet in an MVC3 project. I am launching the embedded hosting system Visual Studio 2010 (Cassini), and everything works fine with previously working methods and their resulting representations. Since then, I have added another action method that is hard to get through the default URL structure (e.g. / controller / action? Someparam = x). Since I thought the Glimpse route data would be very useful for determining what was going wrong here, I went looking for the eyeball in the default 404 page layout. Glimpse does not seem to be attached to this result.

UPDATE: also does not work with RouteDebugger . No matter what I am wrong, he is tall enough in the assembly line that nothing seems to be able to insert himself in the answer.

UPDATE: The request URL did not work because I forgot that this action was set using [HttpPost] . This fully explains 404, but not how to get route information from various utilities in a response sent back.

+3
source share
1 answer

As far as glimpses go, one of the reasons why it did not appear in the first place is that we include only Glimpse on 200 Success results. Consequently, the eyeball will not display at 404.

Why isn’t it visible now ... did you go to the / Glimpse / Config page and look? Glimpse is not enabled by default, so you must explicitly enable it.

Let me know how this happens.

+5
source

All Articles