title: C# Dynamic COM in Windows Server 2012
body: <p>Got an issue where I am a COM type in c# using</p>
  
  <pre><code>    this.rtwbType = Type.GetTypeFromProgID(progId, true);
      this.rtwb = Activator.CreateInstance(this.rtwbType);
  </code></pre>
  
  <p>I am then doing some stuff, and when I am done I call exit on the rtwb - so it can close down, and then calling:</p>
  
  <pre><code>    Marshal.ReleaseComObject(this.rtwb);
  </code></pre>
  
  <p>In 2008 R2 this is fine and dandy - but the instance we take to 2012 an exception is thrown here.</p>
  
  <p>System.Runtime.InteropServices.COMException (0x800706BA): The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)</p>
  
  <p>like I say works fine elsewhere.</p>
  
  <p>Any pointers?</p>