Monday, December 14, 2009

InvalidComObjectException in UT

If you are accessing COM server from UT in Visual Studio 2008 and get InvalidComObjectException exception.

Then try changing your TestRunConfig.testrunconfig:

image

 

add this line: <ExecutionThread apartmentState="MTA" />

0 comments:

Post a Comment