CreateInstance failed for package [GitClientVSPackage] while opening Visual Studio 2019

  • Thread starter Thread starter Ninad K
  • Start date Start date
N

Ninad K

Guest
When i opening Visual Studio 2019 version 16.1.3, I am getting below error. It seems that when I updated my visual studio to the latest version (i.e. 16.1.3), it started giving me below issue.

<entry>
<record>744</record>
<time>2019/06/24 03:04:48.416</time>
<type>Error</type>
<source>VisualStudio</source>
<description>CreateInstance failed for package [GitClientVSPackage]Source: &apos;mscorlib&apos; Description: Exception has been thrown by the target of an invocation.&#x000D;&#x000A;System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&gt; System.TypeInitializationException: The type initializer for &apos;GitClientVS.VisualStudio.UI.GitClientVSPackage&apos; threw an exception. ---&gt; System.IO.FileNotFoundException: Could not load file or assembly &apos;log4net, Version=1.2.15.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A; at GitClientVS.VisualStudio.UI.GitClientVSPackage..cctor()&#x000D;&#x000A; --- End of inner exception stack trace ---&#x000D;&#x000A; at GitClientVS.VisualStudio.UI.GitClientVSPackage..ctor()&#x000D;&#x000A; --- End of inner exception stack trace ---&#x000D;&#x000A; at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean&amp; canBeCached, RuntimeMethodHandleInternal&amp; ctor, Boolean&amp; bNeedSecurityCheck)&#x000D;&#x000A; at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark&amp; stackMark)&#x000D;&#x000A; at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark&amp; stackMark)&#x000D;&#x000A; at System.Activator.CreateInstance(Type type, Boolean nonPublic)&#x000D;&#x000A; at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark&amp; stackMark)&#x000D;&#x000A; at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)&#x000D;&#x000A; at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)&#x000D;&#x000A; at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)System.TypeInitializationException: The type initializer for &apos;GitClientVS.VisualStudio.UI.GitClientVSPackage&apos; threw an exception. ---&gt; System.IO.FileNotFoundException: Could not load file or assembly &apos;log4net, Version=1.2.15.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A; at GitClientVS.VisualStudio.UI.GitClientVSPackage..cctor()&#x000D;&#x000A; --- End of inner exception stack trace ---&#x000D;&#x000A; at GitClientVS.VisualStudio.UI.GitClientVSPackage..ctor()System.IO.FileNotFoundException: Could not load file or assembly &apos;log4net, Version=1.2.15.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;File name: &apos;log4net, Version=1.2.15.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a&apos;&#x000D;&#x000A; at GitClientVS.VisualStudio.UI.GitClientVSPackage..cctor()&#x000D;&#x000A;&#x000D;&#x000A;WRN: Assembly binding logging is turned OFF.&#x000D;&#x000A;To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.&#x000D;&#x000A;Note: There is some performance penalty associated with assembly bind failure logging.&#x000D;&#x000A;To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].&#x000D;&#x000A;</description>
<guid>{69C97FA4-92B5-448C-B5DB-037DD9C2C8B7}</guid>
<hr>80004005 - E_FAIL</hr>
<errorinfo></errorinfo>
</entry>

Continue reading...
 
Back
Top