title: Visual studio Error in adding any references OR installing and updating any packages (loading type library/DLL)
body: <p>Visual Studio 2012 RTM</p>
  <p>I have a MVC website project and i have some problem with adding some references;</p>
  <p>EDIT:</p>
  <p><strong>My Visual Studio has some problems</strong> <a href="https://i.stack.imgur.com/P576J.jpg" rel="nofollow noreferrer">(More info in stackoverflow)</a></p>
  <ul>
  <li><p>I can't add any reference to my projects (even inside new solutions and new projects)</p>
  </li>
  <li><p>I can't install any package (by &quot;Packet Manager Console&quot; or Manage NuGet Package)</p>
  </li>
  <li><p>I can't update any package (by &quot;Packet Manager Console&quot; or Manage NuGet Package)</p>
  </li>
  </ul>
  <p>For example if i update one of my packages, this will be fail with this installation descriptions:</p>
  <blockquote>
  <p>Attempting to resolve dependency 'T4MVCExtensions (≥ 3.5.2)'.</p>
  <p><strong>Successfully installed 'T4MVCExtensions 3.5.2'</strong>. Successfully installed</p>
  <p>'T4MVC 3.5.2'. Updating 'T4MVC' from version '2.10.3' to '3.5.2' in project 'MyWebSite'.</p>
  <p><strong>Successfully removed 'T4MVC 2.10.3'</strong> from MyWebSite.</p>
  <p><strong>Error loading type library/DLL</strong>. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))</p>
  <p><strong>Successfully uninstalled</strong></p>
  <p><strong>'T4MVCExtensions 3.5.2'. Install failed.</strong></p>
  <p>Rolling back...</p>
  <p><strong>Failed to add reference to 'T4MVCExtensions'</strong>.</p>
  </blockquote>
  <p>..........................................<img src="https://i.stack.imgur.com/QtrJc.jpg" alt="enter image description here" />...................................</p>
  <p><strong>Edit:</strong>
  Or If I add any reference:</p>
  <p>.......................<img src="https://i.stack.imgur.com/o8ku3.jpg" alt="enter image description here" /></p>
  <p><strong>EDIT:</strong>
  I did update the package again when &quot;Process Monitor&quot; software was open and this picture is part of it's log with following filters:</p>
  <ul>
  <li>Selected Activities: <strong>Registry</strong></li>
  <li>Process Name <strong>is devenv.exe</strong></li>
  <li>Path <strong>include TypeLib</strong></li>
  <li>Result <strong>Exclude SUCCESS</strong></li>
  </ul>
  <p>(for better view of the below image right click on it and select &quot;View Image&quot;)</p>
  <p><img src="https://i.stack.imgur.com/MmC7M.jpg" alt="enter image description here" /></p>
  <p><strong>Key:</strong> HKCU\Software\Classes\TypeLib{80CC9F66-E7D8-4DDD-85B6-D9E6CD0E93E2}\8.0</p>
  <p><strong>Data:</strong> C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\dte80a.olb</p>
  <p><img src="https://i.stack.imgur.com/P576J.jpg" alt="enter image description here" /></p>
  <p>... and it is the file&gt;&gt;</p>
  <p><img src="https://i.stack.imgur.com/mPy1w.jpg" alt="enter image description here" /></p>
  <p>What is wrong?</p>