Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2017 HRESULT: 0x80070005 / E_ACCESSDENIED on project creation

I'm running Visual Studio 2017, version 15.0.0+26228.9

enter image description here

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:

Access denied (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

Don't mind the german message text in the screenshot: Exception message on project creation

This happens for every project template I use (e.g. C# WPF, VB WPF, C# Console App...).

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:

Quick search project template box

Has anybody else ran into this issue and might know how to fix it?

like image 736
M463 Avatar asked Mar 20 '17 11:03

M463


1 Answers

I had the same error. I solved it by following the procedure :

  • Shutdown all instances of Visual Studio
  • Delete %LocalAppData%\Microsoft\VisualStudio\15.0_f4938f75\privateregistry.bin file (the ID after 15.0_ may be different per machines)
  • Start VS as normal user

all credit for this should go to https://developercommunity.visualstudio.com/content/problem/31188/access-denied-error-1.html

like image 139
Jean-Philippe Vankemmel Avatar answered Sep 22 '22 07:09

Jean-Philippe Vankemmel