How to fix the “The system cannot find the file specified. (Exception from HRESULT:0X80070002)” error in Visual Studio?

后端 未结 9 970
日久生厌
日久生厌 2021-02-02 11:28

i trying to create a new project in visual studio .it give some error

please give me some suggestions.....\"enter

相关标签:
9条回答
  • 2021-02-02 11:45

    I encountered the same problem when I try to create ASP.NET MVC 4 web application in VS 2012.

    To resolve this issue In VS 2012 click on Tools (menu)>>Extensions and Updates (menu item) >> in the Extensions and Updates window click on Updates menu.

    Install pending updates for VS 2012 and also for Nuget.

    Restart the VS 2012.

    0 讨论(0)
  • 2021-02-02 11:46

    Try 1 first if not other one

    1. Go to Extentions and updates then Search Nuget and uninstall it, restart visual studio, again install Nuget then again restart. you should be able to create your new project.
    2. Repair your Visual Studio 2013 or 2015
    0 讨论(0)
  • 2021-02-02 11:46

    I had the same error using VS community 2017 (and previous), when trying to open a .cs file, or trying to open project properties. All that on a fresh VS install on a fresh Windows 10 install...

    I found 2 solutions:

    Start VS as admin (which is not a good choice, and may prevent debugging drag&drop into your app).

    or better:

    Change security settings of your %temp% folder to "everyone - full control". :)

    0 讨论(0)
  • 2021-02-02 11:47

    I am using Visual Studio 2015 Express Web and had the same problem. I searched a lot for solutions and none of these worked:

    • Reinstall Nuget for Visual Studio 2015
    • Replace Nuget for Visual Studio 2015 with the former Nuget
    • Run Visual Studio as Administrator
    • Modify/Delete IISExpress applicationhost.config file
    • Reinstall IISExpress

    The only thing that solved it was a Repair-install of Visual Studio:

    • Press Windows + R
    • Enter appwiz.cpl and press Enter
    • Right-click the entry "Microsoft Visual Studio Express 2015 for Web" and click "Repair"
    • Be patient...

    Note: This is going to reinstall all packages that you have uninstalled, because you weren't needing them (eg. Microsoft SQL Server Native Client).

    0 讨论(0)
  • 2021-02-02 11:52

    Do you have the relevent components installed along with Visual Studio?

    I was getting this error when trying to add a new Axure Mobile Services project. Knowing how long repairing Visual Studio takes, I hoped to avoid that.

    What fixed it for me was opening up Programs and Features, and selecting "Modify" Visual Studio rather than "Repair".

    I'm not sure if there was an error in a previous installation that I didn't notice, but Web Tools wasn't selected in the installed components. After selecting that, installing, and restarting my computer, I no longer got the error when trying to add a new project.

    0 讨论(0)
  • 2021-02-02 11:56

    You need to install Nuget package manager from Tools-> Extensions and Updates -> online-> and search 'Nuget package manager' from search bar and click install.

    0 讨论(0)
提交回复
热议问题