SystemDefault.Monitor Bug Fix

posted Oct 26, 2016, 9:16 AM by Eric Patrick
The SystemDefault/Monitor method has been updated to handle null/empty values correctly. Previously, a null or empty value caused the following to be written to web.config: <value>\r\n</value>, instead of <value/>.  Upon attempting to recycle the application domain, this change was considered invalid, causing an infinite looping call to SystemDefault/Monitor. This resulted in the application pool constantly being in a JIT compilation state, killing performance.

Test cases have been created to cover these uses cases.