title: Error closing Word doc: "The message filter indicated that the application is busy."
body: <p>I'm using Microsoft Interop to save a Word Doc as an HTML file, and I'm getting this error when I try to close the document:</p>
  
  <blockquote>
    <p><strong>The message filter indicated that the application is busy. (Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))</strong></p>
  </blockquote>
  
  <p>Here's my code:</p>
  
  <pre><code>// word interop setting
  object visible = true;
  object readOnly = true;
  object missing = Type.Missing;
  object saveChanges = true;
  object htmlFile = (object)Server.MapPath(@"worddoc.html");
  object fileType = 
    (object)Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatFilteredHTML;       
  
  // open document
  Microsoft.Office.Interop.Word.Application wordApp =
    new Microsoft.Office.Interop.Word.Application();
  Microsoft.Office.Interop.Word.Document wordDoc =
    wordApp.Documents.Open(ref url, ref missing, ref readOnly, ref missing,
         ref missing, ref missing, ref missing, ref missing, ref missing,
         ref missing, ref  missing, ref  visible, ref missing, ref missing,
         ref missing, ref missing);
  
  try
  {                           
      // save the file                 
      wordDoc.SaveAs(ref htmlFile, ref fileType, ref missing, ref missing,
          ref missing, ref missing, ref missing, ref missing, ref missing,
          ref missing, ref missing, ref missing, ref missing, ref missing,
          ref missing, ref missing);
  }
  catch (System.Exception ex)
  {
      saveChanges = false;
  }
  finally
  {
      wordDoc.Close(ref saveChanges, ref missing, ref missing); // ERROR HERE
      wordApp.Quit(ref saveChanges, ref missing, ref missing);
      wordDoc = null;
      wordApp = null;
  }
  </code></pre>
  
  <p>Anyone know what I'm doing wrong?</p>