| || |
Using Reflection for Automated testing
I am trying to test my .NET C# application using the method described in this article: http://msdn.microsoft.com/msdnmag/is...estAutomation/
The problem I am having is that my application has a web browser (ActiveX) control and I get the following error:
Could not instantiate ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' because the current thread is not in a single-threaded apartment.
Now I did try putting [STAThread] on top of the RunApp but that didn't seem to help. Anyone have any ideas?