1

I'm running Visual Studio 2015 and SharePoint 2016.

When I'm trying to create a new project via File > New > Project > SharePoint 2016 - Empty Project in Visual Studio 2015, I'm receiving the following error message and the project is not created:

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

enter image description here

  • is that error occurred only when you create a sharepoint project ? or any project? – A.Saéed Feb 25 '18 at 10:19
  • How about opening visual studio in admin mode ? I.e right click visual studio and click on run as admin and check ? – Gautam Sheth Feb 25 '18 at 12:53
1

Per site, You should be able to address the ACCESSDENIED exception following these steps:

  • Make sure all the instances of Visual studio are closed.
  • Go to %LocalAppData%\Microsoft\VisualStudio\15.0_****
  • Delete the file privateregistry.bin

Note: The link and version above indicates Visual Studio 2017, but this is applicable to 2015 as well.

  • Did this resolve your issue? – Quinn Johns Mar 25 '18 at 3:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.