Work Journal 2013-jan-11
The bug in the WCF service that Lars experienced was quite evil. The service responded correctly when asked for xml data, but the server simply aborted the connection when asked for JSON. After changing the logging level to “Debug” and a site restart it was apparent that it was not a routing problem - The handler code did get hit as it was supposed to. However no exceptions showed up in the log.
Adding logging of the service as described in this stack overflow answer shed some light on the real problem. WCF appears to used the DataContractJsonSerializer by default and it does not work well with DateTime.MinValue in some cases (where it throws an exception).
Work Journal – a diary on what I did work/programming related today.