Hi,
Following in debug the code that throws an Exception when I call the "Message.ToMimeString" method, I've seen that the problem arise during the call to trace.toString().
In my case the property "Via" is null, and ToString doesn't check this case.