Search code examples
.netvisual-studio-2015asp.net-core.net-corednx

0x80070002 Error when creating a new .Net Core project in VS 2015 Community Edition


I get the 0x80070002 error every time I try to create an ASP.NET Core project. I have installed the VS 2015 update 3 and Microsoft .NET Core Tools/Templates.

I ended up with a blank solution with all 3 ASP.NET Core Templates. Checked the VS 2015 template folder for the corresponding files and it seems OK.

What could be the problem?

enter image description here


Solution

  • With few days internet hunting and no positive results tried following steps and got this working

    • Step 1: Uninstalled DNVM (manual uninstall each version)
    • Step 2: Uninstall all core prior updates (Except the Web Deployment Tool)
    • Step 3: Delete 'ComponentModelCache' folders from AppData
    • Step 4: Delete 'devenv.exe.config' from AppData
    • Step 5: Upgrade DNVM to latest
    • Step 6: Running the 'DotNetCore.1.0.0-Runtime-x64.exe'
    • Step 7: Installed 'DotNetCore.1.0.0.RC2-VS2015Tools.Preview'
    • Step 8: Checked VS2015 setup if nothing missed out(in my case everything else was present)

    Got everything working finally and didn't had to re-install/download VS 2015 CE.