.NET runtime exception with SMTD