NickCraver/StackExchange.Exceptional

JSON store path configuration problem

Closed this issue · 2 comments

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.

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.

Covered above - closing out to cleanup.