none
Error occurred while restoring NuGet packages

    Question

  • Hello,

    I started getting following errors in my VS2013.

    1. If I create new WinForm App It doesn't open form designer with Error (Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)))

    2. If I try to modify my EDMX files I get Same Error. (Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))

    3. If I try to Run Asp.Net Application I get Same Error. (Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))).

    Following is my VS2013 Install Info.

    Microsoft Visual Studio Ultimate 2013
    Version 12.0.21005.1 REL
    Microsoft .NET Framework
    Version 4.5.51209

    Installed Version: Ultimate

    Architecture and Modeling Tools   06181-004-0451022-02956
    Microsoft Architecture and Modeling Tools
       
    UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

    LightSwitch for Visual Studio 2013   06181-004-0451022-02956
    Microsoft LightSwitch for Visual Studio 2013

    Microsoft Office Developer Tools for Visual Studio 2013 ENU   06181-004-0451022-02956
    Microsoft Office Developer Tools for Visual Studio 2013 ENU

    Team Explorer for Visual Studio 2013   06181-004-0451022-02956
    Microsoft Team Explorer for Visual Studio 2013

    Visual Basic 2013   06181-004-0451022-02956
    Microsoft Visual Basic 2013

    Visual C# 2013   06181-004-0451022-02956
    Microsoft Visual C# 2013

    Visual C++ 2013   06181-004-0451022-02956
    Microsoft Visual C++ 2013

    Visual F# 2013   06181-004-0451022-02956
    Microsoft Visual F# 2013

    Visual Studio 2013 Code Analysis Spell Checker   06181-004-0451022-02956
    Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

    Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

    The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

    ASP.NET Web Frameworks and Tools 2012.2   4.1.21001.0
    For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

    ASP.NET Web Frameworks and Tools 2013   5.0.11001.0
    For additional information, visit http://www.asp.net/

    Common Azure Tools   1.0
    Provides common services for use by Azure Mobile Services and Windows Azure Tools.

    Microsoft Web Developer Tools 2013   2.0.40926.0
    Microsoft Web Developer Tools contains the following components:
    Support for creating and opening ASP.NET web projects
    Browser Link: A communication channel between Visual Studio and browsers
    Editor extensions for HTML, CSS, and JavaScript
    Page Inspector: Inspection tool for ASP.NET web projects
    Scaffolding: A framework for building and running code generators
    Server Explorer extensions for Windows Azure Web Sites
    Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Windows Azure

    NuGet Package Manager   2.7.40911.287
    NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

    PreEmptive Analytics Visualizer   1.2
    Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

    SQL Server Data Tools   12.0.30919.1
    Microsoft SQL Server Data Tools

    Windows Azure Mobile Services Tools   1.0
    Windows Azure Mobile Services Tools

    Workflow Manager Tools 1.0   1.0
    This package contains the necessary Visual Studio integration components for Workflow Manager.

    Please assist me with the workaround.

    Thank you

    Friday, October 31, 2014 1:34 AM

Answers

  • Hi Piyush,

    Please make sure that under "Package Manager Settings", both "Allow NuGet to download missing packages" and "Automatically check for missing packages during build in Visual Studio" are CHECKED.

    Maybe you could reset your VS settings or re-install your VS like this case:

    http://stackoverflow.com/questions/22675432/visual-studio-2013-wont-run-as-administrator

    If still no help, since this issue is related to the NuGet, maybe you could post a new issue in the following site like this case.

    https://nuget.codeplex.com/

    Best Regards,

    Jack


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, November 03, 2014 5:21 AM

All replies

  • Hi Piyush,

    Thank you for posting in the MSDN forum.

    Actually this forum is to discuss:

    Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.

    To really understand the issue in your side and provide useful information or correct forum, would you mind letting us know the detailed steps about how to repro this issue?

    Is it related to the NuGet Package Restore like the following blogs?

    http://blogs.msdn.com/b/dotnet/archive/2013/06/12/nuget-package-restore-issues.aspx

    http://docs.nuget.org/docs/reference/package-restore

    http://blogs.msdn.com/b/dotnet/archive/2013/08/12/improved-package-restore.aspx

    If so, do you get any other message in the Output windows if you build your project? Maybe you could share us the detailed messages in Output/Error list windows if you clean and rebuild your projects in solution explorer window. 

    Best Regards,

    Jack


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, October 31, 2014 9:23 AM
  • Hello Jack,

    I get following error in Error in out put window when I build. Also I get Error When try to open Winform or WPF Xaml, I have attach the image.

    Error occurred while restoring NuGet packages: System.Runtime.InteropServices.COMException (0x80029C4A): Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))

       at EnvDTE.Project.get_Properties()

       at NuGet.VisualStudio.VsUtility.GetPropertyValue[T](Project project, String propertyName)

       at NuGet.VisualStudio.VsUtility.GetFullPath(Project project)

       at NuGet.VisualStudio.VsUtility.GetPackageReferenceFileFullPath(Project project)

       at NuGet.VsEvents.PackageReferenceFileList.GetPackageReferenceFiles(Project project)

       at NuGet.VsEvents.PackageReferenceFileList..ctor(Solution solution)

       at NuGet.VsEvents.PackageRestorer.BuildEvents_OnBuildBegin(vsBuildScope Scope, vsBuildAction Action).

    1>------ Build started: Project: TestMVC, Configuration: Debug Any CPU ------

    1>  TestMVC -> C:\Users\ptrivedi\Documents\Visual Studio 2013\Projects\TestMVC\TestMVC\bin\TestMVC.dll

    Friday, October 31, 2014 1:43 PM
  • Hi Piyush,

    Please make sure that under "Package Manager Settings", both "Allow NuGet to download missing packages" and "Automatically check for missing packages during build in Visual Studio" are CHECKED.

    Maybe you could reset your VS settings or re-install your VS like this case:

    http://stackoverflow.com/questions/22675432/visual-studio-2013-wont-run-as-administrator

    If still no help, since this issue is related to the NuGet, maybe you could post a new issue in the following site like this case.

    https://nuget.codeplex.com/

    Best Regards,

    Jack


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, November 03, 2014 5:21 AM