title: RPC_E_SERVERFAULT when automating Microsoft Word
body: <p>I'm creating word documents from templates (.dot) via <code>Microsoft.Office.Interop.Word</code>. The code below works on some templates but not on others: where it doesn't work it throws an <code>RPC_E_SERVERFAULT</code> exception. What is this about, what can be the cause, and how could I fix it? (The exception occurs on the second line.)       </p>
  
  <pre><code>wordApp = new Microsoft.Office.Interop.Word.ApplicationClass();
  wordDoc = wordApp.Documents.Add(ref oTemplate, ref newTemplate, ref docType, ref isVisible);
  wordApp.Visible = false;
  wordDoc.Activate();
  </code></pre>