如何修复visual studio错误"找不到一个或多个组件。请重新安装应用程序"在Windows 8.1中?

时间:2014-10-03 09:26:18

标签: windows visual-studio installation windows-8.1

正如Alex建议找到devenv.exe并运行它。当搜索devenv.exe时,我发现它在那里。当我运行此文件时出现错误" cannot find one or more components .Please reinstall the application"我重新安装了Visual Studio三次仍然得到同样的错误。如何解决此错误。 它的视觉工作室终极更新3。我没有ISO文件,安装程序自动下载文件。它安装得很顺利,没有任何错误。

编辑:
最初的问题是如何在Windows 8.1上为visual studio创建快捷方式?
内容:
今天我在Windows 8.1上安装了带有Windows Phone SDK和多设备混合应用程序的visual studio 2013.遗憾的是,我无法找到与今天安装的任何一个应用程序相关的任何快捷方式。

如何创建快捷方式或应该执行哪个文件来打开IDE?

一个答案是search in search charm,它不存在。我尝试了所有可能的方法。

Windows 8.1程序文件中有以下文件夹

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客户端组件
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
在programfilesx86中有许多与这些应用程序相关的文件夹。

20 个答案:

答案 0 :(得分:30)

对我来说同样的问题。我的解决方案:
以管理员身份打开命令提示符

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

答案 1 :(得分:7)

我在VS2012上解决了同样的问题,如下面的步骤:

•使用regedit.exe

•转到HKEY_CURRENT_USER \ Software \ Microsoft \ VisualStudio

•删除“11.0_Config”& “11.0节点”    注意:11.0作为你的VS版

•重启VS2012   最初将构建VS env。

希望这有帮助。 BR

答案 2 :(得分:4)

问题在于安全设置。 在谷歌搜索2-3小时后,我找到了许多解决方案,但没有一个工作,然后我尝试了这些解决方案。

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.

这里有Application-data-folder-error。我无法更改ProgramData文件的安全性,然后我尝试了这个解决方案。

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

位于此处Permission error

最后它起作用欢呼:)希望它对其他一些人有帮助。

答案 3 :(得分:3)

%programfiles(x86)%\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe应该有效。 VS版本号(12.0)取决于您安装的Visual Studio。

哦,如果您正在安装32位Windows,请使用:

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

答案 4 :(得分:2)

我在安装VS 2015社区时遇到过这个问题。对我来说问题是我运行了ThreatFire,这阻止了VS加载一些dll。卸载ThreatFire是唯一的解决方案。你不能只是停止它,因为实际的服务仍将继续运行。

一般来说,这就是我如何弄清楚问题所在:

  1. 下载并解压缩Windows Process Monitor https://technet.microsoft.com/en-us/library/bb896645.aspx

  2. 运行Process Monitor,将Process devenv.exe包含在过滤器中,exlcude Result SUCCESS,然后单击ok。

  3. Process Monitor将显示大量文件和注册表访问。浏览列表并查找Result ACCESS DENIED或FILE / PATH NOT FOUND的事件。 (您可以使用右键单击上下文菜单进一步过滤列表)

  4. 这应该会为您提供有用的提示,告诉您哪些内容确实出错,因为VS错误消息根本没有任何帮助。您还可以查看生成事件的堆栈跟踪。多数民众赞成我如何发现ThreatFire阻止dll加载。

答案 5 :(得分:2)

对于Visual Studio 2015,我必须在regedit.exe中删除这些键:

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

答案 6 :(得分:1)

一种可能的用户友好解决方法是使用How to Geek中的take ownership方法并在%USERPROFILE%\AppDataC:\ProgramData上使用它,其中C是磁盘分区拿着你的操作系统但是,您需要先隐藏文件夹。然后导航到VS安装文件夹并运行devenv /resetuserdata

答案 7 :(得分:1)

VSExpress 2015面临同样的问题(胜利10)。 通过删除

中的注册表项来解决此问题

[HKEY_CURRENT_USER \ SOFTWARE \微软\ WindowsNT的\ CURRENTVERSION \ AppCompatFlags \层]

请参阅链接以获取更多详细信息 http://maditguy72.blogspot.ru/2013/06/cannot-find-one-or-more-components.html

答案 8 :(得分:0)

重新启动笔记本电脑,它将修复。它对我有用

答案 9 :(得分:0)

对于尝试了上述所有答案的遇到此问题的用户,这对我适用于Visual Studio 2015:

  • 在卸载/重新安装Visual Studio 2015之后,如果仍然遇到“找不到一个或多个组件”错误,请从Windows搜索栏中打开添加或删除程序

  • 卸载2015年和2017年以来的所有可再发行文件(如果适用)。

  • 如果您恰好具有Visual Studio 2015的脱机安装文件夹-导航到“ packages / vcRedistD14”文件夹,然后安装32位和64位可再发行软件包。 Otherwise, download them from the MS website

  • 尝试打开Visual Studio 2015,它现在应该可以正常工作。

我没有尝试重新安装2017年Redist软件包,但是为了让2015年再次工作,这对我有用。如果您已经安装了它们,则另一种选择是简单地修复重做软件包。

答案 10 :(得分:0)

Visual Studio Enterprise 2017版本15.8.6

以管理员身份运行cmd,然后:

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

devenv /resetuserdata

答案 11 :(得分:0)

无需重新安装重置devenv数据......

  1. cd c:\program files\microsoft visual studio 15.0\common7\ide
    devenv.exe /resetuserdata
    
  2. 以管理员权限运行VS2013 / 12.

  3. 它会正常工作。

答案 12 :(得分:0)

去注册。 重命名HKEY_CURRENT_USER \ Software \ Microsoft \ VisualStudio修复了我的问题。

答案 13 :(得分:0)

这可能是特定于使用基于VS 2015的Isolated Shell应用程序的人,但我发现有时两个注册表值设置的值不正确,导致启动时出现此错误。只需从注册表中删除它们并重新开始:

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

对于Visual Studio 2015,将Company\TheApp\1.0_Config替换为Microsoft\VisualStudio\14.0_Config

答案 14 :(得分:0)

解决此问题

  1. 启动regedit.exe
  2. 转到HKEY_CURRENT_USER \ Software \ Microsoft \ SQL Server Management Studio
  3. 删除11.0_Config
  4. 重新启动ssms.exe
  5. 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

答案 15 :(得分:0)

我遇到了同样的问题,结果是我的本地管理员帐户上的密码已过期。我使用常规帐户登录Windows,但以管理员身份运行Visual Studio。以管理员身份打开Visual Studio后,它会提示我输入本地管理员凭据,并且由于我的密码已过期,因此它会显示此错误消息。

解决方案:退出Windows。切换用户,并以本地管理员身份登录。 Windows会告诉您密码已过期。更改密码,然后注销。以普通用户帐户身份重新登录,然后再次尝试运行Visual Studio,这次输入新的管理员密码。

答案 16 :(得分:0)

我在Windows 7 32位SP1上。这对我有用:

以提升的权限运行cmd.exe(以管理员身份运行)。然后执行:

cd c:\program files\microsoft visual studio 15.0\common7\ide
devenv.exe /resetuserdata
devenv.exe
在此之前,我尝试向这些文件夹提供完全权限(对于我的用户帐户以及奇怪的帐户 - 未知(S1-5-21-13113034 ....)):{{ 1}}和c:\program files\microsoft visual studio 14.0

请注意,在安装visual studio时,我将默认文件夹名称更改为c:\users\_myname_\appdata\local\microsoft,这可能与稍后看到的错误相关?

答案 17 :(得分:0)

我有同样的问题,我已经解决了。 您应该检查安装Visual Studio的文件夹的名称。 如果其名称已更改,则Windows无法找到要执行的组件。因此,Windows将向您显示错误消息框

答案 18 :(得分:-1)

运行cd C:\ Program Files(x86)\ Microsoft Visual Studio 12.0 \ Common7 \ IDE 使用命令提示符的devenv / resetuserdata工作正常。 每个人都错过的唯一一件事就是在运行上述命令后你必须重启你的电脑。多次运行命令后我遇到了同样的错误,但是在重新启动机器后修复了。 当然,VS 2015用 Microsoft Visual Studio 14.0替换 Microsoft Visual Studio 12.0

答案 19 :(得分:-3)

好吧,它似乎很简单,但它像魔术一样工作

然后在Windows搜索栏中输入visual studio 右键单击visual studio app 选择以管理员身份运行

所有事情都是平等的,它应该在没有痒的情况下运行