title: exception has been thrown by a target of invocation in Visual Studio 2013
body: <p>Today when I opened <code>Visual Studio 2013 Professional Edition</code>, I got the error <code>exception has been thrown by a target of invocation.</code></p>
  
  <p>Also I tried to open <code>ILSpy</code> 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 <code>SQL Server 2012</code> Professional Edition yesterday.</p>
  
  <p>I checked the environment path. It is:</p>
  
  <blockquote>
    <p>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\</p>
  </blockquote>
  
  <p>My OS is Windows 7 64 bit.</p>
  
  <p>The activitylog.xml has:</p>
  
  <pre><code> &lt;entry&gt;
      &lt;record&gt;25&lt;/record&gt;
      &lt;time&gt;2014/05/13 15:06:11.756&lt;/time&gt;
      &lt;type&gt;Information&lt;/type&gt;
      &lt;source&gt;VisualStudio&lt;/source&gt;
      &lt;description&gt;Begin package load [Environment Package Window Management]&lt;/description&gt;
      &lt;guid&gt;{5E56B3DB-7964-4588-8D49-D3523AB7BDB9}&lt;/guid&gt;
  &lt;/entry&gt;
  &lt;entry&gt;
      &lt;record&gt;26&lt;/record&gt;
      &lt;time&gt;2014/05/13 15:06:11.756&lt;/time&gt;
      &lt;type&gt;Error&lt;/type&gt;
      &lt;source&gt;VisualStudio&lt;/source&gt;
      &lt;description&gt;SetSite failed for package [Environment Package Window Management]&lt;/description&gt;
      &lt;guid&gt;{5E56B3DB-7964-4588-8D49-D3523AB7BDB9}&lt;/guid&gt;
      &lt;hr&gt;80131534&lt;/hr&gt;
      &lt;errorinfo&gt;The type initializer for 'Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService' threw an exception.&lt;/errorinfo&gt;
  &lt;/entry&gt;
  </code></pre>