NickCraver / StackExchange.Exceptional

Error handler used for the Stack Exchange network
https://nickcraver.com/StackExchange.Exceptional/
Apache License 2.0
862 stars 170 forks source link

No CSS on details page #36

Closed stijnherreman closed 10 years ago

stijnherreman commented 10 years ago

I've been helping out on an MVC project for a couple days (I don't know the ins and outs of the project) and it was missing error logging, so I added this one.

It works fine, except for one small issue. CSS isn't being loaded on the details page.

On http://localhost/MyProject/Home/Exceptions/ the CSS is loaded from href="/MyProject/Home/Exceptions/css" but on http://localhost/MyProject/Home/Exceptions/info?guid=... the CSS is loaded from href="/MyProject/Home/Exceptions/info/css"

Server is IIS 7.5, project is MVC 4, library is 1.0.0.86 from NuGet.

I've followed the wiki for setup configuration. I'm rather dumbfounded by this, I'm using Exceptional on another project without any trouble, so it almost has to be a project configuration issue.

Any clue what's causing this?

NickCraver commented 10 years ago

This is driven off the HttpContext.Request.Path, that's likely getting screwed up a bit on the way in - what does your action method and route look like?

stijnherreman commented 10 years ago

Sorry for the late reply - I no longer have access to the project so I can't find out.

I've also migrated the main project I'm on to Opserver this week (we use elasticsearch) and I intend to use that from now on. Thank you for the great stuff that you guys release! :)