How to avoid a System.Runtime.InteropServices.COMException? How to avoid a System.Runtime.InteropServices.COMException? wpf wpf