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

M463 picture M463 · Mar 20, 2017 · Viewed 28k times · Source

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?

Answer

Jean-Philippe Vankemmel picture Jean-Philippe Vankemmel · Apr 3, 2017

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