title: Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
body: <p>I am trying to convert docx file into pdf and I have been successful to convert pdf on my local pc.</p>
  
  <p>Steps which i have followed in <code>visual studio 2010</code> is to</p>
  
  <pre><code>click on Add reference --&gt; Click to COM --&gt;select "Microsoft Word 12.0 Object Library" and cliked ok
  </code></pre>
  
  <p>My web config gets modified and added the assembly</p>
  
  <pre><code>&lt;add assembly="Microsoft.Office.Interop.Word, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/&gt;
  </code></pre>
  
  <p>My .cs code for converting doc to pdf is</p>
  
  <pre><code>using Microsoft.Office.Interop.Word;//Name Space
  
  
  protected void Page_Load(object sender, EventArgs e)//Coading on page load
  {
  
      Microsoft.Office.Interop.Word.Application appWord = new Microsoft.Office.Interop.Word.Application();
      wordDocument = appWord.Documents.Open(Server.MapPath("~/convert/goodquest.docx"));
      wordDocument.ExportAsFixedFormat(Server.MapPath("~/convert/goodquest.pdf"), WdExportFormat.wdExportFormatPDF);
  }
  
  public Microsoft.Office.Interop.Word.Document wordDocument { get; set; }
  </code></pre>
  
  <p>All <code>works fine in local</code> but when i <code>upload</code> all this changes on <code>web</code>.</p>
  
  <p>Errors such as </p>
  
  <pre><code>Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.
  </code></pre>
  
  <p>are showing up.
  How should i resolve this problem</p>
  
  <p>I have also tried downloading "Microsoft Office 2010: Primary Interop Assemblies Redistributable" from link <a href="http://www.microsoft.com/en-in/download/confirmation.aspx?id=3508" rel="nofollow noreferrer">Here</a> but it converted my "Version=12.0.0.0" to "Version=14.0.0.0" when i follow steps which i have told you about before as " click on Add reference --> Click to COM........"</p>