comment out System.Diagnostics.Debug.Assert

Sep 12, 2008 at 7:23 PM
If you plan to use TraceProvider.cs as part of a workflow trace mechanism, comment out all lines in TraceProvider.cs that begin with

System.Diagnostics.Debug.Assert

Otherwise, you'll end up with "Application Pop-up" errors in your Event Log like I did.  I blamed it on SharePoint but it turns out that, for some unknown reason, one or more of the assertions fails and there's nobody around to respond to the pop-up, so the workflow just hangs.