Код ошибки 0x80070002 visual studio
This is an extremely basic/entry level question, so please move it to the appropriate newbie forum. I also wrote this in html just to see all my tags being cheerfully ignored, but I digress.
Now that is out, let's get to the point. So we have error 0x80070002, "The system cannot find the file specified." The first thing I think of is permissions; a classical example could be dism trying to open a .cab file. I will use the dism because I can get some kind of logs. A typical log of this event would look something like this:
What does that error actually means?
- The first assumption would be that the user the path is invalid, so I will try to see if I can see the file as a garden-variety user
- Maybe the program is being run as a user that has no read rights on the file. We must then find out which user can do what to this file:
That makes me think that the host and all administrators in general and the local one specifically can do whatever they want with the file while all users can read and execute it. Which permissions does DISM (and Private_GetPackagesFromCommandLine by extension) require to open the .cab file?
Apologies for using dism here since I am more concerned about understanding the error, but I needed something to illustrate it that would eliminate as much cruft as I could.
All replies
Thanks for your post.
May I ask what do you do when you meet the error? backup or deployment?
And what's your operating system for the computer?
The error usually happens in backup and deployment.
For deployment, if the WinPE version is not appropriate for the related operating system. It may show the error.
If it's in deployment, what's the version of winPE?
For backup, what's step do you operate when meet the error?
Here is the article about windows 7, if you may have a reference.
Error code 0x8100002F and or error code 0x80070002 when you back up files in Windows 7
Thank you for the reply, but I am afraid you are replying to a different question, something along the lines of "how to make error 0x80070002 go away when I am doing X" . The question you are replying to has been asked here many times before. Clearly it is my fault for not being clear, and I apologize. You see, I was trying to find the simplest example I could find to show the error I want to understand. Best I could was using this .cab file. I wanted to eliminate as many issues -- where the file came from, why I am not running SCCM, what this package is for, why I am not running Y program, did you apply all the patches properly, which version of windows and how many GB of memory you have -- that have been sources of many interesting questions that populate not only this forum but many others.
I would rather not change my question to fit those answers. My question is more on the lines of "what 0x80070002 is anyway?" The not-so-helpful message tells it is a permissions problem, but fails to provide any further detail. When GetPackagesFromCommandLine says it cannot open a file due to 0x80070002, what really mean?
Let me use an example from a lesser operating system. If something similar happened there, I would look at the syslog (unless you told it to use its own log), auth.log, or the audit.log files and see if the service was not able to open file (maybe it dropped privilege to an user that was not allowed to open the file). And that should be a typical permissions issue: can't open file as user X (logs will show that), identify which users can open (logs or ls -Z), decide whether to allow X to open file or change user we are running as, implement decision, move on.
Error when trying to go to "Settings" HRESULT : 0x80070002
So i have Visual Studio 2019 Community installed on two computers ( one of them fresly imaged )
And i have and error on both when trying to go to the settings section of the software solution.
What i want to do is store some settings regarding the form position and to do that i need to store some information in Settings.
Unfortunately, everytime i try to get into that VS2019 section. i end up having an error :
"Le fichier spécifié est introuvable. (Exception de HRESULT : 0x80070002)"
Or in english
"The specified file is missing. (Exception HRESULT : 0x80070002)"
I tried to get some logs with the Windows Event Viewer but the error is not reported there unfortunately. Thank you for your help.
Are you talking about settings under the project properties?
You do a right click on the main form, Properties then you have access to many options. including Settings. ( all other options works except this one which cause the mentionned error )
Try deleting the hidden folder .vs in the solutions directory. It could not hurt to delete the obj folder.
Hi @Anto-7360 , does this issue appear for a newly created project, or appear for specific project? Please try to repair Visual Studio.
Hi, it is for a projet i created 3 months ago, but i can get the same error with a new project also. and i can also replicate the problem on a freshly imaged computer.
This topic is exactly the problem i have.
As for the repair, i also tried full uninstall/reinstall
I agree with you that this may be a potential issue, you can directly report this issue to Visual Studio Product Team in our Developer Community from Visual Studio > Help > Send Feedback > Report a Problem.
If you do report this issue, please share the link here, other forum members, include me, who are interested or meet the same or similar issue can go to vote for this thread.
It only happens when the computer is idle, not while I am working on it, I usually get around 25 messages if I have not been on the computer for a few hours.
When I attempt to install >NET Framework 3.5 I get an error message that it cannot be installed.
The message I receive:
The following feature couldn't be installed:
The system cannot find the filre specified.
Error code 0x80070002
I am using Windows 10 Home
This thread is locked. You can follow the question or vote as helpful, but you cannot reply to this thread.
Report abuse
Harassment is any behavior intended to disturb or upset a person or group of people. Threats include any threat of suicide, violence, or harm to another. Any content of an adult theme or inappropriate to a community web site. Any image, link, or discussion of nudity. Any behavior that is insulting, rude, vulgar, desecrating, or showing disrespect. Any behavior that appears to violate End user license agreements, including providing product keys or links to pirated software. Unsolicited bulk mail or bulk advertising. Any link to or advocacy of virus, spyware, malware, or phishing sites. Any other inappropriate content or behavior as defined by the Terms of Use or Code of Conduct. Any image, link, or discussion related to child pornography, child nudity, or other child abuse or exploitation.
Replies (6)
Thank you for posting in Microsoft Community. I understand your concern and I am glad to assist you.
Sorry for the inconvenience caused.
Dism.exe /online /enable-feature /featurename:NetFX3 /source:F:\sources\sxs /LimitAccess
The reason for your computer receiving the 0x80070002 Error is due to it not having all of the files that should have been transmitted when updating your software. This is an initialization error that occurs after files have been downloaded, and extracted to the computer.
Run the Windows update troubleshooter and check if the issues can be fixed.
1) In the search tab type 'Troubleshooter' and hit enter.
2) Click on view all.
3) Click on Windows update and follow the onscreen instructions
Hope this post helps. Get back to us for further queries. We are happy to help!
Report abuse
Harassment is any behavior intended to disturb or upset a person or group of people. Threats include any threat of suicide, violence, or harm to another. Any content of an adult theme or inappropriate to a community web site. Any image, link, or discussion of nudity. Any behavior that is insulting, rude, vulgar, desecrating, or showing disrespect. Any behavior that appears to violate End user license agreements, including providing product keys or links to pirated software. Unsolicited bulk mail or bulk advertising. Any link to or advocacy of virus, spyware, malware, or phishing sites. Any other inappropriate content or behavior as defined by the Terms of Use or Code of Conduct. Any image, link, or discussion related to child pornography, child nudity, or other child abuse or exploitation.
11 people found this reply helpful
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Go to Start-> Computer
Right click on the Drive name identified in the log file ( drive name identified in step 4 above)
Go to Security tab,Click on Edit button to update the permissions
Select Administrators under Groups or user names list
Select Full control,Modify,Read & execute,Read, Write by clicking on Allow check boxes.
Click on Apply, this will start updating all the files permission existing in the drive.
Click OK.
Report abuse
Harassment is any behavior intended to disturb or upset a person or group of people. Threats include any threat of suicide, violence, or harm to another. Any content of an adult theme or inappropriate to a community web site. Any image, link, or discussion of nudity. Any behavior that is insulting, rude, vulgar, desecrating, or showing disrespect. Any behavior that appears to violate End user license agreements, including providing product keys or links to pirated software. Unsolicited bulk mail or bulk advertising. Any link to or advocacy of virus, spyware, malware, or phishing sites. Any other inappropriate content or behavior as defined by the Terms of Use or Code of Conduct. Any image, link, or discussion related to child pornography, child nudity, or other child abuse or exploitation.
6 people found this reply helpful
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
I have completed everything suggested above and am receiving the same results.
please give me some suggestions.
i don't know this happen. i am trying to reinstall and again same error is coming .
i try this cant work .
What is all that extra info you provided after the sentence "i am trying to reinstall and again same error is coming ."?
i got it sir. Simply Uninstall the Nuget package from Tools-->Extentions and updates-->(Search Nuget) then Uninstall this Nuget version and Restart the visual studio. After that need to add nuget package like this procedure and restart the visual studio. Now it works.
10 Answers 10
Try 1 first if not other one
- 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.
- Repair your Visual Studio 2013 or 2015
Oddly enough it turned out to be Nuget being screwed up with the new Web Tools update. That fixed it for me!
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).
Go to: VS2013->Tools->Extensions and Updates->Online Search for NuGet and install. Fixed my problem in 2013 REL
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).
Change security settings of your %temp% folder to "everyone - full control". :)
You need to install Nuget package manager from Tools-> Extensions and Updates -> online-> and search 'Nuget package manager' from search bar and click install.
Solution by Andriy Svyryd:
Modifying Visual Studio 2015 installation and unchecking Microsoft Web Developer Tools Deleting C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\DNX folder that was left from a previous version of the tools. Deleting %LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache Deleting %LocalAppData%\Microsoft\VisualStudio\14.0\devenv.exe.config Running repair on the preview2 tooling.
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.
I asked this first on Spiceworks Community Forum but i'll ask here and I couldn't get a fix.
I've been trying for about a week now to get the Microsoft Visual Studio C++ 2015 Redistributable to install on one of our customers SBS 2008 server for some new software that requires it.
Every time i try to get it to install I get the error "0x80070002 - The System cannot find the file specified".
I've been Googling and none of the solutions that I've find work.
It seems from what i've found is it might be a Windows Update Error, but updates install fine and the server is now completely up to date, and i'm out of Ideas.
Has anyone seen this issue and maybe got a solution or any suggestions for what else I can try?
All replies
Visual C++ Redistributable for Visual Studio 2015 Supports Windows Server 2008 Service Pack 2, make sure that your SBS 2008 has SP2 installed.
Best Regards,
Eve Wang
Hi, Thanks for replying
I've just double checked and its saying Windows is Windows Small Business Server 2008 Version 6.0 Build 6002, Service Pack 2.
>Registering bundle dependency provider: , version: 14.0.24212.0
>Error 0x80070002: Failed to register the bundle dependency provider.
>Error 0x80070002: Failed to register the bundle dependency key.
>Error 0x80070002: Failed to begin registration session.
>Error 0x80070002: Failed to begin registration session in per-machine process.
>Error 0x80070002: Failed to register bundle.
Please make sure that time and date on the SBS is correct. Besides, try below steps:
1. open RUN, type “%ProgramData%” and end with Enter.
2. Rename SoftwareDistribution folder as SoftwareDistribution.old.
3. Re-boost the server in Clean Boot, log on with admin account.
4. Try to install again to check the result.
Note: this tool will change the registry key, please back up registry, import data or SBS system before reparation. It would be helpful for restoration if there is any problem happens after the changing.
Best Regards,
Eve Wang
Читайте также: