Visual Studio 2013中的调用目标抛出异常

问题描述:

今天,当我打开 Visual Studio 2013 Professional Edition 时,我收到错误异常被调用的目标抛出。

Today when I opened Visual Studio 2013 Professional Edition, I got the error exception has been thrown by a target of invocation.

此外,我还试图打开 ILSpy 来调试dll,但是它崩溃了。我认为这可能是同一个杀手。对于我所做的系统,我昨天安装了 SQL Server 2012 Professional Edition。

Also I tried to open ILSpy to debug a dll, but it crashed. I think that it might be from the same killer. For the system I did was I installed SQL Server 2012 Professional Edition yesterday.

我检查了环境路径。它是:

I checked the environment path. It is:


C:\Program Files\Common Files\Microsoft Shared\Windows Live; C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live; C:\Program Files(x86)\Intel\iCLS Client\; C:\Program Files\Intel\iCLS Client\ ; c:\Program Files(x86)\AMD APP\bin\x86_64; c:\Program Files(x86)\AMD APP\bin\x86;%SystemRoot%\system32;%SystemRoot %;%SystemRoot%\System32\Wbem; c:\Program Files(x86)\ATI Technologies\ATI.ACE\Core-Static; C:\Program Files\Intel\Intel(R )管理引擎组件\DAL; C:\Program Files\Intel\Intel(R)管理引擎组件\IPT; C:\程序文件(x86)\Intel\Intel(R)管理引擎组件\DAL; C:\程序文件(x86)\Intel\Intel(R)管理引擎组件\IPT; C:\Program Files\Dell\Dell数据保护\Access\Advanced\Wave\Gemalto\Access Client\v5\; C:\Program Files(x86)\NTRU Cryptosystems\NTRU TCG Software Stack\bin\; C :\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\; C:\Program Files(x86)\Windows Live\Shared; c:\Program Files(x86)\Microsoft SQL Server\100\Tools\Binn\; c:\Program Files\Microsoft SQL Server\100\Tools\Binn\; c:\Program Files\Microsoft SQL Server\ 100\DTS\Binn\; C:\程序文件(x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\; C:\Program文件(x86)\Microsoft SQL Server\100\DTS\Binn\; C:\程序文件(x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\; C: \Program Files\Microsoft\Web Platform Installer\; c:\\ \\ Program Files(x86)\Microsoft ASP.NET\ASP.NET网页\v1.0 \;%systemroot%\System32\WindowsPowerShell\v1.0\; C:\source \\ \\Orion\trunk\packages\NuGet.CommandLine.2.2.0\tools;%TFSPowerToolDir%;%BPADir%;%HummPATH14%;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\; C:\程序文件(x86)\QuickTime\QTSystem\; C:\程序文件(x86)\Windows Kits \8.1 \Windows性能工具包\; C:\程序文件\\ Microsoft SQL Server\110\DTS\Binn\; C:\Program文件(x86)\Microsoft SQL Server\110\Tools\Binn\; C:\Program Files\Microsoft SQL Server\110\Tools\Binn\; C:\程序文件(x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\; C:\Program文件x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\; C:\Progra m文件(x86)\Microsoft SQL Server\110\DTS\Binn\

C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;c:\Program Files (x86)\AMD APP\bin\x86_64;c:\Program Files (x86)\AMD APP\bin\x86;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Dell\Dell Data Protection\Access\Advanced\Wave\Gemalto\Access Client\v5\;C:\Program Files (x86)\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files (x86)\Windows Live\Shared;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files\Microsoft\Web Platform Installer\;c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;%systemroot%\System32\WindowsPowerShell\v1.0\;C:\source\Orion\trunk\packages\NuGet.CommandLine.2.2.0\tools;%TFSPowerToolDir%;%BPADir%;%HummPATH14%;%systemroot%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\

我的操作系统是Windows 7 64

My OS is Windows 7 64 bit.

activitylog.xml有:

The activitylog.xml has:

 <entry>
    <record>25</record>
    <time>2014/05/13 15:06:11.756</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [Environment Package Window Management]</description>
    <guid>{5E56B3DB-7964-4588-8D49-D3523AB7BDB9}</guid>
</entry>
<entry>
    <record>26</record>
    <time>2014/05/13 15:06:11.756</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>SetSite failed for package [Environment Package Window Management]</description>
    <guid>{5E56B3DB-7964-4588-8D49-D3523AB7BDB9}</guid>
    <hr>80131534</hr>
    <errorinfo>The type initializer for 'Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService' threw an exception.</errorinfo>
</entry>


Google搜索并得到答案。
& -fail-with-exception-has-throw-by-the-target-of-a?论坛= vssetuprel =noreferrer>答案

Google search and get the answer. Answer

我的环境太长,环境变量PATH,缩短波纹2048个字符后,问题解决了。

My environment was too long environment variable PATH, after shorten bellow 2048 characters the problem was solved.