Package management initialization failed: Access Denied Error when opening Visual Studio 2017

后端 未结 5 1376
醉梦人生
醉梦人生 2020-12-14 14:46

I\'m getting the following error when opening VS 2017 on Windows 7 64-bit:

Package management initialization failed: Access Denied.

You ca

5条回答
  •  猫巷女王i
    2020-12-14 15:02

    It turns out that this is a bug, that hasn't yet been resolved. This error also occurs when starting Visual Studio after an update.

    But there is a workaround from this thread that worked for me,

    Delete the privateregistry.bin file from the following folder:

    C:\users\%username%\Appdata\Local\Microsoft\VisualStudio\15.0_\

    This is however a temporary fix and resets the user's preferences. That's why it worked when I started it as an administrator, since the problem is user specific.


    Update

    This bug is supposedly fixed in the latest versions of Visual Studio. But for the bug fix to work, the old privateregistry.bin file still needs to be deleted.

提交回复
热议问题