如何解决Visual Studio错误“无法find一个或多个组件。请在Windows 8.1中重新安装应用程序”?

正如Alexbuild议finddevenv.exe并运行它。 当searchdevenv.exe然后我发现它在那里。 当我运行这个文件得到错误“ cannot find one or more components .Please reinstall the application ”。我重新安装Visual Studio三次仍然得到相同的错误。 如何解决这个错误。 这是视觉工作室终极更新3。 我没有ISO文件,安装程序自动下载的文件。它安装顺利,即没有任何错误。

编辑:
最初的问题是如何创buildWindows 8.1的Visual Studio的快捷方式?
内容:
今天我在windows 8.1上安装了visual studio 2013和windows phone SDK以及多设备混合应用程序。不幸的是,我无法find任何与当前安装的应用程序相关的任何快捷方式。

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

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

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

C:\ Program Files \ iTunes
C:\ Program Files \ iPod
C:\ Program Files \ Windows身份基础
C:\ Program Files \ Hyper-V
C:\ Program Files \ Common Files
C:\ Program Files \ IIS Express
C:\ Program Files \ Microsoft身份扩展
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
程序文件x86中有许多与这些应用程序相关的文件夹。

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

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

我已经解决了与VS2012相同的问题,步骤如下:

•使用regedit.exe

转到HKEY_CURRENT_USER \ Software \ Microsoft \ VisualStudio

•删除“11.0_Config”和“11.0节点”通知:11.0作为您的VS版本

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

希望这个帮助。 BR

问题在于安全设置。 经过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, ie add yourself as the owner of the folder and give full rights. 

在这里找到应用程序数据文件夹错误 。 我无法改变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 (ie,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 

在这里找到权限错误 。

最后它的作品欢呼:)希望这将有助于其他一些。

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

一般来说,我是怎么弄清楚问题是什么的:

  1. 下载并解压缩Windows进程监视器https://technet.microsoft.com/en-us/library/bb896645.aspx

  2. 运行进程监视器,包括进程devenv.exe到过滤器,exlcude结果成功,然后单击确定。

  3. 进程监视器将显示一个巨大的文件和注册表访问列表。 浏览列表并查找结果ACCESS DENIED或FILE / PATH NOT FOUND的事件。 (您可以使用右键上下文菜单进一步过滤列表)

  4. 这应该给你有用的提示什么是真正的错误,因为VS错误信息真的没有任何帮助。 您也可以查看生成事件的堆栈跟踪。 多数民众赞成我如何发现有关ThreatFire阻止DLL加载。

%programfiles(x86)%\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe应该可以工作。 VS版本号(12.0)取决于你安装的Visual Studio,当然。

噢,如果您使用的是Windows 32位版本,请使用:

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

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

解决这个问题

  1. 启动regedit.exe
  2. 转到HKEY_CURRENT_USER \ Software \ Microsoft \ SQL server Management Studio
  3. 删除11.0_Config
  4. 重新启动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-组件?论坛= SQLEXPRESS

面对与VSExpress 2015(赢得10)相同的问题。 通过删除注册表项来解决问题

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

请参阅链接http://maditguy72.blogspot.ru/2013/06/cannot-find-one-or-more-components.html

对于Visual Studio 2015,我不得不在regedit.exe删除这些键:

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

我有同样的问题,我已经修好了。 您应该检查您安装visual studio的文件夹的名称 。 如果名称已更改,则Windows无法找到要执行的组件。 出于这个原因,Windows将向您显示一个错误消息框

我在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 ….) ): c:\program files\microsoft visual studio 14.0c:\users\_myname_\appdata\local\microsoft

请注意,在安装Visual Studio时,我将默认文件夹名称更改为c:\program files\microsoft visual studio 2015所以也许它与后面看到的错误有关?

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

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

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

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

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

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

没有必要重新安装只是重置devenv数据…

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

它会正常工作。

使用命令提示符运行CD C:\ Program Files文件(x86)\ Microsoft Visual Studio 12.0 \ Common7 \ IDE devenv / resetuserdata工作正常。 大家唯一遗漏的就是在运行上面的命令之后,你必须重启你的电脑。 我多次运行该命令后出现同样的错误,但是在重新启动机器后被修复。 当然,VS 2015将Microsoft Visual Studio 12.0替换为Microsoft Visual Studio 14.0

好吧,这看起来很简单,但它像魔术一样工作

在您的Windows搜索栏中输入visual studio,然后右键单击Visual Studio应用程序,然后选择以管理员身份运行

所有的事情都是平等的,它应该没有痒