Visual Studio 2017 HRESULT:0x80070005/创建项目时E_ACCESSDENIED [英] Visual Studio 2017 HRESULT: 0x80070005 / E_ACCESSDENIED on project creation
问题描述
我正在运行Visual Studio 2017版本15.0.0 + 26228.9
I'm running Visual Studio 2017, version 15.0.0+26228.9
当我尝试通过Visual Studio 2017中的 File> New> Project ... 创建一个新项目时,我收到以下错误消息并且未创建该项目:
When I'm trying to create a new project via File > New > Project... in Visual Studio 2017, I'm receiving the following error message and the project is not created:
访问被拒绝(来自HRESULT的异常:0x80070005(E_ACCESSDENIED))
Access denied (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
不要介意屏幕截图中的德语消息文本:
Don't mind the german message text in the screenshot:
在我使用的每个项目模板(例如C#WPF,VB WPF,C#控制台应用程序...)中都会发生这种情况.
This happens for every project template I use (e.g. C# WPF, VB WPF, C# Console App...).
如果我尝试通过Visual Studio起始页上的快速搜索框创建项目,则VS会立即崩溃,根本没有异常消息:
If I try to create a project via the quick search box on the starting page of visual studio, VS just crashes instantly with no exception message at all:
是否还有其他人遇到过此问题,并且可能知道如何解决?
Has anybody else ran into this issue and might know how to fix it?
推荐答案
我有相同的错误. 我按照以下步骤解决了这个问题:
I had the same error. I solved it by following the procedure :
- 关闭所有Visual Studio实例
- 删除%LocalAppData%\ Microsoft \ VisualStudio \ 15.0_f4938f75 \ privateregistry.bin文件(每台计算机15.0_之后的ID可能不同)
- 以普通用户身份启动VS
对此的所有功劳应归功于 https://developercommunity.visualstudio.com/content/problem/31188/access-denied-error-1.html
all credit for this should go to https://developercommunity.visualstudio.com/content/problem/31188/access-denied-error-1.html
这篇关于Visual Studio 2017 HRESULT:0x80070005/创建项目时E_ACCESSDENIED的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!