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

JSON store path configuration problem #67

Closed DejanMilicic closed 7 years ago

DejanMilicic commented 8 years ago

I decided to go with JSON Error store. Configuration via web.config. Exceptional kept translating path="~/Errors" as being relative not to application but relative to web server. I am using IIS Express 8.5 on my project. I solved this by switching to code-based configuration. Same path "~/Errors" was correctly mapped this time.

CptRobby commented 8 years ago

Try "~\Errors", with a backslash instead of a forward slash.

The JSONErrorStore constructor calls the ResolvePath extension method defined in ExtensionMethods.cs, which replaces "~\" with AppDomain.CurrentDomain.GetData("APPBASE"), which I'm assuming is the path to the directory containing your website.

NickCraver commented 7 years ago

Covered above - closing out to cleanup.