I am trying to get JSNLog working with an MVC5\WebApi2 project in Visual Studio 2013. I have installed NLog, Common, Common.NLog and JSNLog using Nuget, and I have combed through the EmptyNLog sample and everything looks identical to my configuration. I can successfully log to NLog directly on the server.
When I try to perform a JL().info('message'). an error is thrown on the client:
Failed to load resource: the server responsed with a status of 500 (Internal Server Error).
Using Fiddler, I can see the following post being sent to http://localhost/jsnlog.logger
{"lg":[{"l":3000,"m":"message","n":"","t":1385426728291}]}
The following error details are being returned:
[KeyNotFoundException: The given key was not present in the dictionary.]
System.Collections.Generic.Dictionary`2.get_Item(TKey key) +10629801
JSNLog.LogHandling.LoggerProcessor.ProcessLogRequestExec(String json, String userAgent, String userHostAddress, DateTime serverSideTimeUtc, String url, XmlElement xe) +160
JSNLog.LogHandling.LoggerProcessor.ProcessLogRequest(String json, String userAgent, String userHostAddress, DateTime serverSideTimeUtc, String url) +124
JSNLog.LoggerHandler.ProcessRequest(HttpContext context) +385
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
Any ideas?