title: Error loading type library/DLL (Microsoft.Office.Interop.Excel.Application)
body: <p>I'm trying to create an Excel document via C#. When I run the application, it gives the following error:</p>
  
  <blockquote>
    <p>Unable to cast COM object of type 'System.__ComObject' to interface
    type 'Microsoft.Office.Interop.Excel.Application'. This operation
    failed because the QueryInterface call on the COM component for the
    interface with IID '{000208D5-0000-0000-C000-000000000046}' failed due
    to the following error: Error loading type library/DLL. (Exception
    from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/WeDem.png" alt="enter image description here"></p>
  
  <p>It was working fine before I've upgraded <strong>Visual Studio from 2010 to 2012</strong>. I've also upgraded <strong>Office from 2010 to 2013</strong>. </p>
  
  <ul>
  <li>There are no errors/warnings at output window.</li>
  <li>Microsoft.Office.Interop.Excel reference is added</li>
  </ul>