title: Word Automation : could not open macro storage
body: <p>My application (vb.net windows application deployed via ClickOnce) uses Word to open and fill .dot templates to create new Word documents. I reference Microsoft Word 14 Object Library and uses this code :</p>
  
  <pre><code>Dim oWord As Word.Application = Nothing
  Dim oDoc As Word.Document = Nothing
  Try
      oWord = New Word.Application
      Dim strFileName As String = ""
      Select Case strType
          Case "LettreReception"
              strFileName = Path.Combine(GetParam(1), "Template_LettreReception.dot")
              If File.Exists(strFileName) Then
                  oDoc = oWord.Documents.Add(strFileName)
  </code></pre>
  
  <p>On the last line I receive "<strong>could not open macro storage</strong>" error on deployed machines (not on my development machine).</p>
  
  <p>I develop with Windows 7 - Office 2010 - VS 2010 (.Net 3.5). My deployment machine is also a Windows 7 with Office 2010 installed.</p>
  
  <p>I tried to remove normal.dotm (I found some links advicing it) without success. The .dot template used contains no macro.</p>