title: NUnit, WatiN SpecFlow and STA Thread Errors
body: <p>I am getting the following exception when I try to run the SpecFlow test: </p>
  
  <p>The CurrentThread needs to have it's ApartmentState set to ApartmentState.STA to be able to automate Internet Explorer.</p>
  
  <p>I have already added the following code in App.config: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;sectionGroup name="NUnit"&gt;
        &lt;section name="TestRunner" type="System.Configuration.NameValueSectionHandler"/&gt;
      &lt;/sectionGroup&gt;
    &lt;/configSections&gt;
    &lt;NUnit&gt;
      &lt;TestRunner&gt;
        &lt;!-- Valid values are STA,MTA. Others ignored. --&gt;
        &lt;add key="ApartmentState" value="STA" /&gt;
      &lt;/TestRunner&gt;
    &lt;/NUnit&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I am using VS 2010 and forcing my app to run as version 3.5. </p>
  
  <p>I am also using the GUI display of nUnit tool! </p>