How to fix visual studio error “cannot find one or more components .Please re-install the application” in windows 8.1?

巧了我就是萌 提交于 2020-07-17 09:28:10

问题


As Alex suggests find devenv.exe and run it . when search for devenv.exe then I found it's there . When I run this file getting error "cannot find one or more components .Please reinstall the application" .I re-installed visual studio thrice still getting same error . How to fix this error . It's visual studio ultimate with update 3 . I don't have ISO file , file automatically downloaded by installer.It's got installed smoothly i.e. without giving any error .

Edit:
Initial question was How to create shortcut on windows 8.1 for visual studio ?
Contents :
Today I installed visual studio 2013 with windows phone SDK and Multi-device Hybrid apps on windows 8.1 .Unfortunately I am unable to find any shortcuts related to any one of the applications which are installed today .

How can I create shortcut or which file should I execute to open IDE ?

One answer would be search in search charm ,it's not there . I tried all methods that i could .

Following folders are there in windows 8.1 program files

C:\Program Files\iTunes
C:\Program Files\iPod
C:\Program Files\Windows Identity Foundation
C:\Program Files\Hyper-V
C:\Program Files\Common Files
C:\Program Files\IIS Express
C:\Program Files\Microsoft Identity Extensions
C:\Program Files\SharePoint Client Components
C:\Program Files\Microsoft SQL Server
C:\Program Files\Application Verifier
C:\Program Files\MSBuild
C:\Program Files\IIS
C:\Program Files\Microsoft Visual Studio 12.0
Many folders are there related to these apps in programfilesx86 .


回答1:


Same problem for me. My solution:
Open command prompt as administrator

cd C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE
devenv /resetuserdata



回答2:


I had solved the same issue on VS2012 as following steps:

• Use regedit.exe

• Go to HKEY_CURRENT_USER\Software\Microsoft\VisualStudio

• Delete "11.0_Config" & "11.0 node" notice: 11.0 as your VS version

• Restart VS2012 VS env will be constructed initially.

Hope this help. BR




回答3:


Problem is with security setting . After 2-3 hours of Googling i found many solution but none of them work then i tried these solutions .

There is one  folder in your machine:  "C:\ProgramData". 
Don't worry if you don't see this folder, unhide all the folders, you will find it there.
I did not had the rights on "C:\ProgramData\Microsoft\VisualStudio" .
See if you have full rights on the same.
If your are not able to open this folder, This means that you do not have rights on this.
to give rights follow the steps below :
1) Right click on the folder "VisualStudio."
2) Go to Properties->Security. See if your PC name is there in the user names list, 
if not , then add it.
3) Go to Advanced -> Owner -> Edit -> Other users or groups.  add your PC name,
i.e add yourself as the owner of the folder and give full rights.

Which is found here Application-data-folder-error . I was unable to change security of ProgramData files then i tried this solution .

1. On the root folder, right click, select properties, select security tab.
2. Click Advanced
3. The window that pops up should show the current owner. Click "Change." 
The "Select User or Group" pop up box appears. 
4. In the text box, type in your current user name (you should be an admin), and hit the 
"Check Names" button. Your name will be replaced with the "official" system 
 name (i.e.,preceded by computer name and back slash).
5. Click OK
6. The box disappears, sending you back to the Advanced Security Settings window.
7. A new tick box appears below owner, with the text "Replace owner on subcontainers and 
objects" Select this tick box.
8. I also selected the tick box "Replace all child object permission entries
with inheritable permission entries from this object", but I think I had to run this twice
- once with this box ticked and once without.
9. Make sure that "everyone" appears on the Permission entries window, if not,
click add. The same box that appears in step 4 shows up again. 
Type everyone, click "Check Names" and then "OK"
10. Hit apply

which is found here Permission error.

Finally it works cheers :) Hope it will help to some other .




回答4:


%programfiles(x86)%\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe should work. The VS version number (12.0) depends on your installed Visual Studio, of course.

Oh, and if you're on a 32-bit install of Windows, then use:

%programfiles%\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe



回答5:


I have come across this problem while installing VS 2015 community. For me the problem was that I had ThreatFire running, which prevented VS from loading some dll. Deinstalling ThreatFire was the only solution. You cannot just stop it, as the actual service will still continue to run.

In general, thats how I figured out what the problem is:

  1. Download and extract Windows Process Monitor https://technet.microsoft.com/en-us/library/bb896645.aspx

  2. Run Process Monitor, include Process devenv.exe to the filters, exlcude Result SUCCESS, and click ok.

  3. Process Monitor will display a huge list of file and registry accesses. Go through the list and look for events with Result ACCESS DENIED or FILE/PATH NOT FOUND. (You can filter the list even more using right click context menu)

  4. That should give you usefull hints about what is really going wrong as the VS error message really is no help at all. You can also view the stack trace that generated the event. Thats how I found out about ThreatFire blocking dll loading.




回答6:


For Visual Studio 2015 I had to delete these keys in regedit.exe:

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0_Config



回答7:


One possible user friendly workaround is to use the take ownership method from How to Geek and use it on %USERPROFILE%\AppData and on C:\ProgramData where C is the disk partition holding your OS. However you'll need to make hidden folders visible first. Then navigate to your VS installation folder and run devenv /resetuserdata.




回答8:


Was facing the same issue with VSExpress 2015 (win 10). Fixed the problem by removing the registry key in

[HKEY_CURRENT_USER\Software\Microsoft\WindowsNT\CurrentVersion\ AppCompatFlags\Layers]

Refer the link for more details http://maditguy72.blogspot.ru/2013/06/cannot-find-one-or-more-components.html




回答9:


I had the same problem, and I have fixed it. You should check the name of the folder in which you installed visual studio. If its name has been changed, windows can not find the components to execute. For this reason, windows will show an error message box to you




回答10:


I'm on windows 7 32bits SP1. this worked for me :

run cmd.exe with elevated privileges (run as administrator). then execute :

cd c:\program files\microsoft visual studio 15.0\common7\ide
devenv.exe /resetuserdata
devenv.exe

before that I tried to give full rights (for my user account and also the weird Account-unknown(S1-5-21-13113034....) ) to these folders: c:\program files\microsoft visual studio 14.0 and c:\users\_myname_\appdata\local\microsoft

note that when installing visual studio, I changed the default folder name to c:\program files\microsoft visual studio 2015 so maybe it is related to the bug seen later ?




回答11:


I had the same problem, and it turned out to be that my password on my local admin account expired. I use a regular account to login to Windows, but run Visual Studio as Administrator. Upon opening Visual Studio as Administrator, it prompts me for my local admin credentials, and because my password had expired, it gives me this error message.

Solution: Log out of Windows. Switch users, and login as the local admin. Windows will tell you that your password has expired. Change the password, and log out. Log back in as your normal user account, and try running Visual Studio again, this time entering the new admin password.




回答12:


To fix this issue

  1. Start regedit.exe
  2. Go to HKEY_CURRENT_USER\Software\Microsoft\SQL Server Management Studio
  3. Delete 11.0_Config
  4. Restart ssms.exe

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/b6d2b85d-c6e1-464a-85e0-e0625e7fb305/microsoft-visual-studio-shell-isolated-cannot-find-one-or-more-components?forum=sqlexpress




回答13:


This is probably specific to people working with Isolated Shell applications based on VS 2015, but I found that two registry values were sometimes getting set with incorrect values, leading to this error on startup. Simply delete them from the registry and start again:

HKCU\Software\Company\TheApp\1.0_Config\Initialization\PkgDefSearchPath
HKCU\Software\Company\TheApp\1.0_Config\Initialization\RelativeRootFolderPath

For Visual Studio 2015, replace Company\TheApp\1.0_Config with Microsoft\VisualStudio\14.0_Config.




回答14:


Go to regedit. Renaming HKEY_CURRENT_USER\Software\Microsoft\VisualStudio fixed problem for me.




回答15:


No need to reinstall just reset devenv data…

  1. cd c:\program files\microsoft visual studio 15.0\common7\ide
    devenv.exe /resetuserdata
    
  2. Run VS2013/12 with administrator rights.

It will work fine.




回答16:


Visual Studio Enterprise 2017 Version 15.8.6

Run cmd as administrator, then:

cd C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE

devenv /resetuserdata



回答17:


For users experiencing this issue who has tried all the above answers, this is what worked for me for Visual Studio 2015:

  • After uninstalling/reinstalling Visual Studio 2015, if you're still experencing the "Cannot find one or more components" error, open up Add or Remove Programs from the Windows search bar.

  • Uninstall any redistributables from 2015 and 2017 if applicable.

  • If you happen to have the offline install folder for Visual Studio 2015 - navigate to the "packages/vcRedistD14" folder and install both the 32 bit and 64 bit redistributable packages. Otherwise, download them from the MS website.

  • Attempt to open Visual Studio 2015, it should be working normally now.

I haven't attempted to reinstall the 2017 redist packages, but for the purposes of getting 2015 working again, this is what worked for me. Another option if you already have them installed, is to simply Repair the redist packages.




回答18:


restart you laptop it will be fixed.it work for me




回答19:


Running cd C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE devenv /resetuserdata using the command prompt works fine. The only thing which everyone has missed is that you will have to reboot your PC after running the above command. I was having same error after running the command several times but was fixed after I rebooted my machine. And of course for VS 2015 replace Microsoft Visual Studio 12.0 with Microsoft Visual Studio 14.0




回答20:


well, it seems simple but it work like magic

input visual studio in your windows search bar then right click on the visual studio app and choose run as administrator

all things been equal, it should run without an itch



来源:https://stackoverflow.com/questions/26176476/how-to-fix-visual-studio-error-cannot-find-one-or-more-components-please-re-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!