Visual studio Error in adding any references OR installing and updating any packages (loading type library/DLL)

Visual Studio 2012 RTM

I have a MVC website project and i have some problem with adding some references;

EDIT:

My Visual Studio has some problems (More info in stackoverflow)

  • I can't add any reference to my projects (even inside new solutions and new projects)

  • I can't install any package (by "Packet Manager Console" or Manage NuGet Package)

  • I can't update any package (by "Packet Manager Console" or Manage NuGet Package)

  • For example if i update one of my packages, this will be fail with this installation descriptions:

    Attempting to resolve dependency 'T4MVCExtensions (≥ 3.5.2)'.

    Successfully installed 'T4MVCExtensions 3.5.2' . Successfully installed

    'T4MVC 3.5.2'. Updating 'T4MVC' from version '2.10.3' to '3.5.2' in project 'MyWebSite'.

    Successfully removed 'T4MVC 2.10.3' from MyWebSite.

    Error loading type library/DLL . (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))

    Successfully uninstalled

    'T4MVCExtensions 3.5.2'. Install failed.

    Rolling back...

    Failed to add reference to 'T4MVCExtensions' .

    .......................................... 在这里输入图像描述 ...................................

    Edit: Or If I add any reference:

    ....................... 在这里输入图像描述

    EDIT: I did update the package again when "Process Monitor" software was open and this picture is part of it's log with following filters:

  • Selected Activities: Registry
  • Process Name is devenv.exe
  • Path include TypeLib
  • Result Exclude SUCCESS
  • (for better view of the below image right click on it and select "View Image")

    在这里输入图像描述

    Key: HKCUSoftwareClassesTypeLib{80CC9F66-E7D8-4DDD-85B6-D9E6CD0E93E2}8.0

    Data: C:Program Files (x86)Common FilesMicrosoft SharedMSEnvdte80a.olb

    在这里输入图像描述

    ... and it is the file>>

    在这里输入图像描述

    What is wrong?

    链接地址: http://www.djcxy.com/p/38848.html

    上一篇: Visual Studio:代码中的引用无法识别?

    下一篇: Visual Studio添加任何引用或安装和更新任何包(加载类型库/ DLL)时出错