title: C# Additional information: External component has thrown an exception
body: <p>I'm getting this error </p>
  
  <pre><code>Additional information: External component has thrown an exception.
  </code></pre>
  
  <p>only when in debug mode, when I open up my program normally it works fine, but in debug mode it's throwing this error which I'm not sure why.</p>
  
  <p>Here is the code it's throwing the error on.</p>
  
  <pre><code>                Thread tokenThread = new Thread(new ThreadStart(new Action(() =&gt;
              {                    
                  using (System.Windows.Forms.WebBrowser wb = new System.Windows.Forms.WebBrowser())
                  {
                      wb.DocumentCompleted += wb_DocumentCompleted;
                      wb.Tag = args.Account;
                      wb.ScriptErrorsSuppressed = true;
                      wb.Url = new Uri(String.Format("file:///{0}/md.html", Directory.GetCurrentDirectory()));
  
                      System.Windows.Forms.Application.Run();
                  }                  
              })));
  </code></pre>
  
  <p>and it's this line it's throwing it on in debugger.</p>
  
  <pre><code>System.Windows.Forms.Application.Run();
  </code></pre>
  
  <p>Could anybody point out my mistakes?</p>