且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

包管理初始化失败:打开 Visual Studio 2017 时访问被拒绝错误

更新时间:2023-02-20 09:26:08

原来这是一个错误,尚未解决.当 在之后启动 Visual Studio 时也会出现此错误更新.

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.

但是 这个帖子对我有用,

从以下文件夹中删除 privateregistry.bin 文件:

Delete the privateregistry.bin file from the following folder:

C:users\%username%AppdataLocalMicrosoftVisualStudio15.0_

C:users\%username%AppdataLocalMicrosoftVisualStudio15.0_<version id>

不过,这是一个临时修复,会重置用户的偏好.这就是为什么当我以管理员身份启动它时它起作用的原因,因为问题是特定于用户的.

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.

这个错误应该在最新版本的 Visual Studio 中得到修复.但要使错误修复工作,旧的 privateregistry.bin 文件仍然需要删除.

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.