title: ASP.NET and STA COM objects
body: <p>Looking to settle an argument here.</p>
  
  <p>All the stuff I've read on using a COM object created in VB from an ASP.NET page is surrounding with</p>
  
  <p><strong>WARNING - MAKE SURE YOU PUT ON ASPCOMPAT OR IT WON'T WORK</strong></p>
  
  <p><a href="http://books.google.co.uk/books?id=-sjg09Crh40C&amp;lpg=PA771&amp;ots=g-vqDun9TR&amp;dq=asp.net%20c%23%20sta&amp;pg=PA771#v=onepage&amp;q=&amp;f=false" rel="nofollow noreferrer">http://books.google.co.uk/books?id=-sjg09Crh40C&amp;lpg=PA771&amp;ots=g-vqDun9TR&amp;dq=asp.net%20c%23%20sta&amp;pg=PA771#v=onepage&amp;q=&amp;f=false</a></p>
  
  <p>However...  I have set this up and guess what - no problems.</p>
  
  <p>Now, I read this</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/zwk9h2kb.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/zwk9h2kb.aspx</a></p>
  
  <p>and</p>
  
  <p><a href="http://blogs.claritycon.com/blogs/don_peterson/archive/2008/01/17/3621.aspx" rel="nofollow noreferrer">http://blogs.claritycon.com/blogs/don_peterson/archive/2008/01/17/3621.aspx</a></p>
  
  <p>Which suggests that you won't get an exception, it just won't work very well.</p>
  
  <p>Could anyone give a definitive answer to what is going on?</p>
  
  <p>Also, if there's any way that I could PROVE the switch between MTA and STA (through some debugger magic - even looking at the assembler!) I'd be grateful.</p>
  
  <p>Cheers
  Duncan</p>