Hi,
I have a C# .NET 2.0 project with a class that makes use of a COM
component. If I attempt to run a unit test in visual studio 2008, as
soon as an object of this class reaches code to call the constructor
of the COM object, I get an exception:
System.Runtime.InteropServices.COMException: Retrieving the COM class
factory for component with CLSID {47B7DFA4-6687-4AEA-AA68-
A140107B4858} failed due to the following error: 80040154.
However, if I set a break point in an application using the same
class, the exact line of code that throws the exception in unit
testing works without any problems.
Any idea why this exception's only getting thrown in the unit test?
Thanks,
Daniel Sheiner