1
Could not load file or assembly SubMain.GhostDoc.Package.clr4.6
Problem reported by Rami Abughazaleh - 9/3/2019 at 2:22 PM
Resolved
Windows 10 (64-bit)
Visual Studio 2017 15.9.15

Installed VSIX from within Visual Studio.


Last lines in ActivityLog.xml:
  <entry>
    <record>2550</record>
    <time>2019/09/03 21:23:04.539</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [GhostDoc]</description>
    <guid>{F646EA44-FEB2-4168-802A-80C9B64BB8BB}</guid>
  </entry>
  <entry>
    <record>2551</record>
    <time>2019/09/03 21:23:04.539</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [GhostDoc]Source: &apos;mscorlib&apos; Description: The type initializer for &apos;&lt;Module&gt;&apos; threw an exception.&#x000D;&#x000A;System.TypeInitializationException: The type initializer for &apos;&lt;Module&gt;&apos; threw an exception. ---&gt; System.TypeInitializationException: The type initializer for &apos;A.c1e0a1ae1c0479a96da0b53c43c257c1c&apos; threw an exception. ---&gt; System.IO.FileLoadException: Could not load file or assembly &apos;SubMain.GhostDoc.Package.clr4.6&amp;&apos; or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) ---&gt; System.ArgumentException: String cannot have zero length.&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.CreateAssemblyName(String assemblyString, Boolean forIntrospection, RuntimeAssembly&amp; assemblyFromResolveEvent)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.AppDomain.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputsFast(IServiceProvider provider, IVsHierarchy hierarchy)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputs(Project project)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectEntries(Project project, List`1 entries)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.EnsurePopulated(Boolean fPopulateProject)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly&amp; assembly, ReferenceType refType)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name, Boolean throwOnError)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object sender, ResolveEventArgs e)&#x000D;&#x000A;   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.Assembly.Load(String assemblyString)&#x000D;&#x000A;   at A.c0a48b9ec2ff24ede9eae5127a1e867e8.c9495450a44f85fef6ae7cb241984a67a(String )&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c..cctor()&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c.ce4b5b257f88374255956da4400d7b9a5()&#x000D;&#x000A;   at .cctor()&#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;A.c1e0a1ae1c0479a96da0b53c43c257c1c&apos; threw an exception. ---&gt; System.IO.FileLoadException: Could not load file or assembly &apos;SubMain.GhostDoc.Package.clr4.6&amp;&apos; or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) ---&gt; System.ArgumentException: String cannot have zero length.&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.CreateAssemblyName(String assemblyString, Boolean forIntrospection, RuntimeAssembly&amp; assemblyFromResolveEvent)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.AppDomain.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputsFast(IServiceProvider provider, IVsHierarchy hierarchy)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputs(Project project)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectEntries(Project project, List`1 entries)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.EnsurePopulated(Boolean fPopulateProject)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly&amp; assembly, ReferenceType refType)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name, Boolean throwOnError)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object sender, ResolveEventArgs e)&#x000D;&#x000A;   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.Assembly.Load(String assemblyString)&#x000D;&#x000A;   at A.c0a48b9ec2ff24ede9eae5127a1e867e8.c9495450a44f85fef6ae7cb241984a67a(String )&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c..cctor()&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c.ce4b5b257f88374255956da4400d7b9a5()&#x000D;&#x000A;   at .cctor()System.IO.FileLoadException: Could not load file or assembly &apos;SubMain.GhostDoc.Package.clr4.6&amp;&apos; or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))&#x000D;&#x000A;File name: &apos;SubMain.GhostDoc.Package.clr4.6&amp;&apos; ---&gt; System.ArgumentException: String cannot have zero length.&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.CreateAssemblyName(String assemblyString, Boolean forIntrospection, RuntimeAssembly&amp; assemblyFromResolveEvent)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.AppDomain.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputsFast(IServiceProvider provider, IVsHierarchy hierarchy)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputs(Project project)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectEntries(Project project, List`1 entries)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.EnsurePopulated(Boolean fPopulateProject)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly&amp; assembly, ReferenceType refType)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name, Boolean throwOnError)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object sender, ResolveEventArgs e)&#x000D;&#x000A;   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.Assembly.Load(String assemblyString)&#x000D;&#x000A;   at A.c0a48b9ec2ff24ede9eae5127a1e867e8.c9495450a44f85fef6ae7cb241984a67a(String )&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c..cctor()&#x000D;&#x000A;&#x000D;&#x000A;System.ArgumentException: String cannot have zero length.&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.CreateAssemblyName(String assemblyString, Boolean forIntrospection, RuntimeAssembly&amp; assemblyFromResolveEvent)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.AppDomain.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputsFast(IServiceProvider provider, IVsHierarchy hierarchy)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputs(Project project)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectEntries(Project project, List`1 entries)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.EnsurePopulated(Boolean fPopulateProject)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly&amp; assembly, ReferenceType refType)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name, Boolean throwOnError)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object sender, ResolveEventArgs e)&#x000D;&#x000A;   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)</description>
    <guid>{F646EA44-FEB2-4168-802A-80C9B64BB8BB}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo></errorinfo>
  </entry>
Similar issue reported before here:

9 Replies

Reply to Thread
0
Misha Zhutov Replied
Employee Post
Hello, 

Thank you for reporting that.
Do you have 3rd party anti-virus software running. It seems, something has blocked or deleted the 
SubMain.GhostDoc.Package.clr4.6.dll. Also, you can examine the folder c:\Users\<user>\AppData\Local\Microsoft\VisualStudio\15.0_<instanceID>\Extensions\ and search for the assembly there.
0
Rami Abughazaleh Replied
The only anti-virus I have is Microsoft's Windows Security.

Even with real-time protection off, I'm still getting the error when I open a particular sln file.

That dll file exists in "C:\Users\rami.abughazaleh\AppData\Local\Microsoft\VisualStudio\15.0_d69622ea\Extensions\thjkgo4k.lel"

Any other ideas?

I see this is my Tests output window:
[9/4/2019 6:06:50 PM Informational] ------ Discover test started ------
[9/4/2019 6:06:52 PM Error] System.TypeInitializationException: The type initializer for '<Module>' threw an exception. ---> System.TypeInitializationException: The type initializer for 'A.c1e0a1ae1c0479a96da0b53c43c257c1c' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'SubMain.GhostDoc.Package.clr4.6&' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) ---> System.ArgumentException: String cannot have zero length.
   at System.Reflection.RuntimeAssembly.CreateAssemblyName(String assemblyString, Boolean forIntrospection, RuntimeAssembly& assemblyFromResolveEvent)
   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(String assemblyName, String typeName)
   at System.AppDomain.CreateInstance(String assemblyName, String typeName)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputsFast(IServiceProvider provider, IVsHierarchy hierarchy)
   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputs(Project project)
   at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectEntries(Project project, List`1 entries)
   at Microsoft.VisualStudio.Design.VSTypeResolutionService.EnsurePopulated(Boolean fPopulateProject)
   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly& assembly)
   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly& assembly, ReferenceType refType)
   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly& assembly)
   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name, Boolean throwOnError)
   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name)
   at Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object sender, ResolveEventArgs e)
   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)
   --- End of inner exception stack trace ---
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at A.c0a48b9ec2ff24ede9eae5127a1e867e8.c9495450a44f85fef6ae7cb241984a67a(String )
   at A.c1e0a1ae1c0479a96da0b53c43c257c1c..cctor()
   --- End of inner exception stack trace ---
   at A.c1e0a1ae1c0479a96da0b53c43c257c1c.ce4b5b257f88374255956da4400d7b9a5()
   at .cctor()
   --- End of inner exception stack trace ---
   at Microsoft.VisualStudio.TestWindow.TestPlatformV2.TestPlatformV2Wrapper..ctor(String vstestConsolePath, Lazy`1 telemetryService)
   at Microsoft.VisualStudio.TestWindow.TestPlatformV2.TestPlatformV2Provider.InitializeTestExtension(TestExtension testExtension)
   at Microsoft.VisualStudio.TestWindow.Extensibility.TestExtensionComponentProvider`1.InitializeExtension(TestExtension testExtension)
[9/4/2019 6:06:52 PM Error] System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.VisualStudio.TestWindow.Controller.TestPlatformProvider.UpdateTestPlatform(Lazy`1 testPlatform, Boolean useSpecifiedAdapterLocations, Boolean areAllTestContainersCSharpOrVBOnly)
   at Microsoft.VisualStudio.TestWindow.Controller.TestPlatformProvider.GetTestPlatformV2(Boolean useSpecifiedAdapterLocations, Boolean areAllTestContainersCSharpOrVBOnly)
[9/4/2019 6:06:54 PM Error] System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.VisualStudio.TestWindow.Controller.TestPlatformProvider.UpdateTestPlatform(Lazy`1 testPlatform, Boolean useSpecifiedAdapterLocations, Boolean areAllTestContainersCSharpOrVBOnly)
   at Microsoft.VisualStudio.TestWindow.Controller.TestPlatformProvider.GetTestPlatformV2(Boolean useSpecifiedAdapterLocations, Boolean areAllTestContainersCSharpOrVBOnly)
[9/4/2019 6:06:55 PM Informational] ========== Discover test finished: 25 found (0:00:04.6769117) ==========

Could the ampersand after "SubMain.GhostDoc.Package.clr4.6" in the error message indicate the issue?

Thank you.
0
Misha Zhutov Replied
Employee Post
No, the ampersand is not an issue. It is 100% setup problem. Please try to uninstall VSIX and uninstall GhostDoc (if exist) from Control Panel->Programs and Features, please ensure that you don't have files/folders in c:\Program Files (x86)\Microsoft Visual Studio\2017\<edition>\Common7\IDE\Extensions\SubMain\GhostDoc folder.

Could you please send us log file from c:\Users\<user>\Documents\SubMain\GhostDoc <edition> for VS2017\GhostDoc Pro.log to support@submain.com?
0
Rami Abughazaleh Replied
When I deleted "c:\Users\<user>\Documents\SubMain" and reinstalled GhostDoc using the exe, the errors went away.

Thank you.
0
Misha Zhutov Replied
Employee Post
Thank you for the update.
0
Rami Abughazaleh Replied
Hi.

I'm experiencing this issue again with GhostDoc Community 22.1.21330.0 and Visual Studio 2019.

It occurs only when I double click on a sln file in Windows Explorer to open Visual Studio.

If I open Visual Studio first and then select "File > Open > Project/Solution..." and select the same sln file, the error doesn't occur.

I tried uninstalling, deleting "c:\Users\username\Documents\SubMain", deleting "C:\Users\username\AppData\Local\Microsoft\VisualStudio\16.0_0bdcc5a6\Extensions\odpifnzo.aaj", and also deleting the ".vs" folder next to the sln file.

The error message appears three times when opening the sln, and then again if I select Help > About within Visual Studio.

If I select "Extensions > Manage Extensions", I get the following error:
---------------------------
Microsoft Visual Studio
---------------------------
Initialization of 'Microsoft.VisualStudio.ExtensionsExplorer.UI.ThemedToggleButton' threw an exception.
---------------------------
OK  
---------------------------

There are also some other features within Visual Studio that don't work as expected as a result of this.

Uninstalling GhostDoc resolves these issues.

Any ideas?

ActivityLog.xml snippets:

<entry>
    <record>768</record>
    <time>2022/01/17 18:26:53.319</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [GhostDoc]</description>
    <guid>{F646EA44-FEB2-4168-802A-80C9B64BB8BB}</guid>
  </entry>
  <entry>
    <record>769</record>
    <time>2022/01/17 18:26:53.339</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [GhostDoc]Source: &apos;mscorlib&apos; Description: The type initializer for &apos;&lt;Module&gt;&apos; threw an exception.&#x000D;&#x000A;System.TypeInitializationException: The type initializer for &apos;&lt;Module&gt;&apos; threw an exception. ---&gt; System.TypeInitializationException: The type initializer for &apos;A.c1e0a1ae1c0479a96da0b53c43c257c1c&apos; threw an exception. ---&gt; System.IO.FileLoadException: Could not load file or assembly &apos;SubMain.GhostDoc.Package.clr4.6&amp;&apos; or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) ---&gt; System.ArgumentException: String cannot have zero length.&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.CreateAssemblyName(String assemblyString, Boolean forIntrospection, RuntimeAssembly&amp; assemblyFromResolveEvent)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.AppDomain.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputsFast(IServiceProvider provider, IVsHierarchy hierarchy)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputs(Project project)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectEntries(Project project, List`1 entries)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.EnsurePopulated(Boolean fPopulateProject)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly&amp; assembly, ReferenceType refType)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name, Boolean throwOnError)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object sender, ResolveEventArgs e)&#x000D;&#x000A;   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.Assembly.Load(String assemblyString)&#x000D;&#x000A;   at A.c3d64e69e87bb9a3c6079b256e00aab1b.c9495450a44f85fef6ae7cb241984a67a(String )&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c..cctor()&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c.ce4b5b257f88374255956da4400d7b9a5()&#x000D;&#x000A;   at .cctor()&#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;A.c1e0a1ae1c0479a96da0b53c43c257c1c&apos; threw an exception. ---&gt; System.IO.FileLoadException: Could not load file or assembly &apos;SubMain.GhostDoc.Package.clr4.6&amp;&apos; or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) ---&gt; System.ArgumentException: String cannot have zero length.&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.CreateAssemblyName(String assemblyString, Boolean forIntrospection, RuntimeAssembly&amp; assemblyFromResolveEvent)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.AppDomain.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputsFast(IServiceProvider provider, IVsHierarchy hierarchy)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputs(Project project)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectEntries(Project project, List`1 entries)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.EnsurePopulated(Boolean fPopulateProject)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly&amp; assembly, ReferenceType refType)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name, Boolean throwOnError)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object sender, ResolveEventArgs e)&#x000D;&#x000A;   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.Assembly.Load(String assemblyString)&#x000D;&#x000A;   at A.c3d64e69e87bb9a3c6079b256e00aab1b.c9495450a44f85fef6ae7cb241984a67a(String )&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c..cctor()&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c.ce4b5b257f88374255956da4400d7b9a5()&#x000D;&#x000A;   at .cctor()System.IO.FileLoadException: Could not load file or assembly &apos;SubMain.GhostDoc.Package.clr4.6&amp;&apos; or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))&#x000D;&#x000A;File name: &apos;SubMain.GhostDoc.Package.clr4.6&amp;&apos; ---&gt; System.ArgumentException: String cannot have zero length.&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.CreateAssemblyName(String assemblyString, Boolean forIntrospection, RuntimeAssembly&amp; assemblyFromResolveEvent)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.AppDomain.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputsFast(IServiceProvider provider, IVsHierarchy hierarchy)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputs(Project project)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectEntries(Project project, List`1 entries)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.EnsurePopulated(Boolean fPopulateProject)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly&amp; assembly, ReferenceType refType)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name, Boolean throwOnError)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object sender, ResolveEventArgs e)&#x000D;&#x000A;   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.Assembly.Load(String assemblyString)&#x000D;&#x000A;   at A.c3d64e69e87bb9a3c6079b256e00aab1b.c9495450a44f85fef6ae7cb241984a67a(String )&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c..cctor()&#x000D;&#x000A;&#x000D;&#x000A;System.ArgumentException: String cannot have zero length.&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.CreateAssemblyName(String assemblyString, Boolean forIntrospection, RuntimeAssembly&amp; assemblyFromResolveEvent)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.AppDomain.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputsFast(IServiceProvider provider, IVsHierarchy hierarchy)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputs(Project project)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectEntries(Project project, List`1 entries)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.EnsurePopulated(Boolean fPopulateProject)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly&amp; assembly, ReferenceType refType)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name, Boolean throwOnError)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object sender, ResolveEventArgs e)&#x000D;&#x000A;   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)</description>
    <guid>{F646EA44-FEB2-4168-802A-80C9B64BB8BB}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo></errorinfo>
  </entry>

<entry>
    <record>780</record>
    <time>2022/01/17 18:26:58.639</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [GhostDoc]</description>
    <guid>{F646EA44-FEB2-4168-802A-80C9B64BB8BB}</guid>
  </entry>
  <entry>
    <record>781</record>
    <time>2022/01/17 18:26:58.639</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [GhostDoc]Source: &apos;mscorlib&apos; Description: The type initializer for &apos;&lt;Module&gt;&apos; threw an exception.&#x000D;&#x000A;System.TypeInitializationException: The type initializer for &apos;&lt;Module&gt;&apos; threw an exception. ---&gt; System.TypeInitializationException: The type initializer for &apos;A.c1e0a1ae1c0479a96da0b53c43c257c1c&apos; threw an exception. ---&gt; System.IO.FileLoadException: Could not load file or assembly &apos;SubMain.GhostDoc.Package.clr4.6&amp;&apos; or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) ---&gt; System.ArgumentException: String cannot have zero length.&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.CreateAssemblyName(String assemblyString, Boolean forIntrospection, RuntimeAssembly&amp; assemblyFromResolveEvent)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.AppDomain.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputsFast(IServiceProvider provider, IVsHierarchy hierarchy)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputs(Project project)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectEntries(Project project, List`1 entries)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.EnsurePopulated(Boolean fPopulateProject)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly&amp; assembly, ReferenceType refType)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name, Boolean throwOnError)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object sender, ResolveEventArgs e)&#x000D;&#x000A;   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.Assembly.Load(String assemblyString)&#x000D;&#x000A;   at A.c3d64e69e87bb9a3c6079b256e00aab1b.c9495450a44f85fef6ae7cb241984a67a(String )&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c..cctor()&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c.ce4b5b257f88374255956da4400d7b9a5()&#x000D;&#x000A;   at .cctor()&#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;A.c1e0a1ae1c0479a96da0b53c43c257c1c&apos; threw an exception. ---&gt; System.IO.FileLoadException: Could not load file or assembly &apos;SubMain.GhostDoc.Package.clr4.6&amp;&apos; or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) ---&gt; System.ArgumentException: String cannot have zero length.&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.CreateAssemblyName(String assemblyString, Boolean forIntrospection, RuntimeAssembly&amp; assemblyFromResolveEvent)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.AppDomain.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputsFast(IServiceProvider provider, IVsHierarchy hierarchy)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputs(Project project)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectEntries(Project project, List`1 entries)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.EnsurePopulated(Boolean fPopulateProject)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly&amp; assembly, ReferenceType refType)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name, Boolean throwOnError)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object sender, ResolveEventArgs e)&#x000D;&#x000A;   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.Assembly.Load(String assemblyString)&#x000D;&#x000A;   at A.c3d64e69e87bb9a3c6079b256e00aab1b.c9495450a44f85fef6ae7cb241984a67a(String )&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c..cctor()&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c.ce4b5b257f88374255956da4400d7b9a5()&#x000D;&#x000A;   at .cctor()System.IO.FileLoadException: Could not load file or assembly &apos;SubMain.GhostDoc.Package.clr4.6&amp;&apos; or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))&#x000D;&#x000A;File name: &apos;SubMain.GhostDoc.Package.clr4.6&amp;&apos; ---&gt; System.ArgumentException: String cannot have zero length.&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.CreateAssemblyName(String assemblyString, Boolean forIntrospection, RuntimeAssembly&amp; assemblyFromResolveEvent)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.AppDomain.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputsFast(IServiceProvider provider, IVsHierarchy hierarchy)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputs(Project project)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectEntries(Project project, List`1 entries)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.EnsurePopulated(Boolean fPopulateProject)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly&amp; assembly, ReferenceType refType)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name, Boolean throwOnError)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object sender, ResolveEventArgs e)&#x000D;&#x000A;   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.Assembly.Load(String assemblyString)&#x000D;&#x000A;   at A.c3d64e69e87bb9a3c6079b256e00aab1b.c9495450a44f85fef6ae7cb241984a67a(String )&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c..cctor()&#x000D;&#x000A;&#x000D;&#x000A;System.ArgumentException: String cannot have zero length.&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.CreateAssemblyName(String assemblyString, Boolean forIntrospection, RuntimeAssembly&amp; assemblyFromResolveEvent)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.AppDomain.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputsFast(IServiceProvider provider, IVsHierarchy hierarchy)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputs(Project project)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectEntries(Project project, List`1 entries)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.EnsurePopulated(Boolean fPopulateProject)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly&amp; assembly, ReferenceType refType)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name, Boolean throwOnError)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object sender, ResolveEventArgs e)&#x000D;&#x000A;   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)</description>
    <guid>{F646EA44-FEB2-4168-802A-80C9B64BB8BB}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo></errorinfo>
  </entry>

<entry>
    <record>995</record>
    <time>2022/01/17 18:27:15.062</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [GhostDoc]</description>
    <guid>{F646EA44-FEB2-4168-802A-80C9B64BB8BB}</guid>
  </entry>
  <entry>
    <record>996</record>
    <time>2022/01/17 18:27:15.063</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [GhostDoc]Source: &apos;mscorlib&apos; Description: The type initializer for &apos;&lt;Module&gt;&apos; threw an exception.&#x000D;&#x000A;System.TypeInitializationException: The type initializer for &apos;&lt;Module&gt;&apos; threw an exception. ---&gt; System.TypeInitializationException: The type initializer for &apos;A.c1e0a1ae1c0479a96da0b53c43c257c1c&apos; threw an exception. ---&gt; System.IO.FileLoadException: Could not load file or assembly &apos;SubMain.GhostDoc.Package.clr4.6&amp;&apos; or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) ---&gt; System.ArgumentException: String cannot have zero length.&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.CreateAssemblyName(String assemblyString, Boolean forIntrospection, RuntimeAssembly&amp; assemblyFromResolveEvent)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.AppDomain.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputsFast(IServiceProvider provider, IVsHierarchy hierarchy)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputs(Project project)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectEntries(Project project, List`1 entries)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.EnsurePopulated(Boolean fPopulateProject)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly&amp; assembly, ReferenceType refType)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name, Boolean throwOnError)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object sender, ResolveEventArgs e)&#x000D;&#x000A;   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.Assembly.Load(String assemblyString)&#x000D;&#x000A;   at A.c3d64e69e87bb9a3c6079b256e00aab1b.c9495450a44f85fef6ae7cb241984a67a(String )&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c..cctor()&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c.ce4b5b257f88374255956da4400d7b9a5()&#x000D;&#x000A;   at .cctor()&#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;A.c1e0a1ae1c0479a96da0b53c43c257c1c&apos; threw an exception. ---&gt; System.IO.FileLoadException: Could not load file or assembly &apos;SubMain.GhostDoc.Package.clr4.6&amp;&apos; or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) ---&gt; System.ArgumentException: String cannot have zero length.&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.CreateAssemblyName(String assemblyString, Boolean forIntrospection, RuntimeAssembly&amp; assemblyFromResolveEvent)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.AppDomain.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputsFast(IServiceProvider provider, IVsHierarchy hierarchy)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputs(Project project)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectEntries(Project project, List`1 entries)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.EnsurePopulated(Boolean fPopulateProject)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly&amp; assembly, ReferenceType refType)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name, Boolean throwOnError)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object sender, ResolveEventArgs e)&#x000D;&#x000A;   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.Assembly.Load(String assemblyString)&#x000D;&#x000A;   at A.c3d64e69e87bb9a3c6079b256e00aab1b.c9495450a44f85fef6ae7cb241984a67a(String )&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c..cctor()&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c.ce4b5b257f88374255956da4400d7b9a5()&#x000D;&#x000A;   at .cctor()System.IO.FileLoadException: Could not load file or assembly &apos;SubMain.GhostDoc.Package.clr4.6&amp;&apos; or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))&#x000D;&#x000A;File name: &apos;SubMain.GhostDoc.Package.clr4.6&amp;&apos; ---&gt; System.ArgumentException: String cannot have zero length.&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.CreateAssemblyName(String assemblyString, Boolean forIntrospection, RuntimeAssembly&amp; assemblyFromResolveEvent)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.AppDomain.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputsFast(IServiceProvider provider, IVsHierarchy hierarchy)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputs(Project project)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectEntries(Project project, List`1 entries)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.EnsurePopulated(Boolean fPopulateProject)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly&amp; assembly, ReferenceType refType)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name, Boolean throwOnError)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object sender, ResolveEventArgs e)&#x000D;&#x000A;   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.Assembly.Load(String assemblyString)&#x000D;&#x000A;   at A.c3d64e69e87bb9a3c6079b256e00aab1b.c9495450a44f85fef6ae7cb241984a67a(String )&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c..cctor()&#x000D;&#x000A;&#x000D;&#x000A;System.ArgumentException: String cannot have zero length.&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.CreateAssemblyName(String assemblyString, Boolean forIntrospection, RuntimeAssembly&amp; assemblyFromResolveEvent)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.AppDomain.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputsFast(IServiceProvider provider, IVsHierarchy hierarchy)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputs(Project project)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectEntries(Project project, List`1 entries)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.EnsurePopulated(Boolean fPopulateProject)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly&amp; assembly, ReferenceType refType)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name, Boolean throwOnError)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object sender, ResolveEventArgs e)&#x000D;&#x000A;   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)</description>
    <guid>{F646EA44-FEB2-4168-802A-80C9B64BB8BB}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo></errorinfo>
  </entry>

<entry>
    <record>1082</record>
    <time>2022/01/17 18:27:38.420</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [GhostDoc]</description>
    <guid>{F646EA44-FEB2-4168-802A-80C9B64BB8BB}</guid>
  </entry>
  <entry>
    <record>1083</record>
    <time>2022/01/17 18:27:38.421</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [GhostDoc]Source: &apos;mscorlib&apos; Description: The type initializer for &apos;&lt;Module&gt;&apos; threw an exception.&#x000D;&#x000A;System.TypeInitializationException: The type initializer for &apos;&lt;Module&gt;&apos; threw an exception. ---&gt; System.TypeInitializationException: The type initializer for &apos;A.c1e0a1ae1c0479a96da0b53c43c257c1c&apos; threw an exception. ---&gt; System.IO.FileLoadException: Could not load file or assembly &apos;SubMain.GhostDoc.Package.clr4.6&amp;&apos; or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) ---&gt; System.ArgumentException: String cannot have zero length.&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.CreateAssemblyName(String assemblyString, Boolean forIntrospection, RuntimeAssembly&amp; assemblyFromResolveEvent)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.AppDomain.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputsFast(IServiceProvider provider, IVsHierarchy hierarchy)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputs(Project project)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectEntries(Project project, List`1 entries)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.EnsurePopulated(Boolean fPopulateProject)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly&amp; assembly, ReferenceType refType)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name, Boolean throwOnError)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object sender, ResolveEventArgs e)&#x000D;&#x000A;   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.Assembly.Load(String assemblyString)&#x000D;&#x000A;   at A.c3d64e69e87bb9a3c6079b256e00aab1b.c9495450a44f85fef6ae7cb241984a67a(String )&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c..cctor()&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c.ce4b5b257f88374255956da4400d7b9a5()&#x000D;&#x000A;   at .cctor()&#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;A.c1e0a1ae1c0479a96da0b53c43c257c1c&apos; threw an exception. ---&gt; System.IO.FileLoadException: Could not load file or assembly &apos;SubMain.GhostDoc.Package.clr4.6&amp;&apos; or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) ---&gt; System.ArgumentException: String cannot have zero length.&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.CreateAssemblyName(String assemblyString, Boolean forIntrospection, RuntimeAssembly&amp; assemblyFromResolveEvent)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.AppDomain.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputsFast(IServiceProvider provider, IVsHierarchy hierarchy)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputs(Project project)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectEntries(Project project, List`1 entries)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.EnsurePopulated(Boolean fPopulateProject)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly&amp; assembly, ReferenceType refType)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name, Boolean throwOnError)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object sender, ResolveEventArgs e)&#x000D;&#x000A;   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.Assembly.Load(String assemblyString)&#x000D;&#x000A;   at A.c3d64e69e87bb9a3c6079b256e00aab1b.c9495450a44f85fef6ae7cb241984a67a(String )&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c..cctor()&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c.ce4b5b257f88374255956da4400d7b9a5()&#x000D;&#x000A;   at .cctor()System.IO.FileLoadException: Could not load file or assembly &apos;SubMain.GhostDoc.Package.clr4.6&amp;&apos; or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))&#x000D;&#x000A;File name: &apos;SubMain.GhostDoc.Package.clr4.6&amp;&apos; ---&gt; System.ArgumentException: String cannot have zero length.&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.CreateAssemblyName(String assemblyString, Boolean forIntrospection, RuntimeAssembly&amp; assemblyFromResolveEvent)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.AppDomain.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputsFast(IServiceProvider provider, IVsHierarchy hierarchy)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputs(Project project)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectEntries(Project project, List`1 entries)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.EnsurePopulated(Boolean fPopulateProject)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly&amp; assembly, ReferenceType refType)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name, Boolean throwOnError)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object sender, ResolveEventArgs e)&#x000D;&#x000A;   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)&#x000D;&#x000A;   at System.Reflection.Assembly.Load(String assemblyString)&#x000D;&#x000A;   at A.c3d64e69e87bb9a3c6079b256e00aab1b.c9495450a44f85fef6ae7cb241984a67a(String )&#x000D;&#x000A;   at A.c1e0a1ae1c0479a96da0b53c43c257c1c..cctor()&#x000D;&#x000A;&#x000D;&#x000A;System.ArgumentException: String cannot have zero length.&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.CreateAssemblyName(String assemblyString, Boolean forIntrospection, RuntimeAssembly&amp; assemblyFromResolveEvent)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.AppDomain.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputsFast(IServiceProvider provider, IVsHierarchy hierarchy)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputs(Project project)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectEntries(Project project, List`1 entries)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.EnsurePopulated(Boolean fPopulateProject)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly&amp; assembly, ReferenceType refType)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&amp; assembly)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name, Boolean throwOnError)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName name)&#x000D;&#x000A;   at Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object sender, ResolveEventArgs e)&#x000D;&#x000A;   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)</description>
    <guid>{F646EA44-FEB2-4168-802A-80C9B64BB8BB}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo></errorinfo>
  </entry>

Thank you.
0
Misha Zhutov Replied
Employee Post
Hello, 

There are two possible causes of the issue. First, it can be anti-virus and you said you don't have it.
The second is the Visual Studio itself. The "Initialization of 'Microsoft.VisualStudio.ExtensionsExplorer.UI.ThemedToggleButton' threw an exception." error is not related to GhostDoc but related to the fact that Visual Studio for some reason cannot load the extension.
So, you can try to uninstall GhostDoc, repair Visual Studio and install it again.

Thanks
0
Rami Abughazaleh Replied
The error "Initialization of 'Microsoft.VisualStudio.ExtensionsExplorer.UI.ThemedToggleButton' threw an exception." only occurs when the GhostDoc package fails to load correctly.

If the GhostDoc extensions is disabled or uninstalled, then the error "Initialization of 'Microsoft.VisualStudio.ExtensionsExplorer.UI.ThemedToggleButton' threw an exception." doesn't occur.

Also, the "The 'GhostDoc' package did not load correctly." error only occurs with one specific sln file and not others.

This error occurs in either case:
1. Double-click on the sln file in Windows Explorer.
2. Right-click on the Visual Studio icon in the task bar and select the shortcut to the sln file from the jump list

In both cases, the machine is configured to open the sln file in a new elevated instance of Visual Studio 2019 (as Administrator).

It's also happening with the latest GhostDoc Community 2022.1.22020.

I also have another instance configuration of Visual Studio 2019 with an older version of the GhostDoc extension installed (2020.2.20270).

So "SubMain.GhostDoc.Package.clr4.6.dll" exists in both of these locations:

"C:\Users\rami.abughazaleh\AppData\Local\Microsoft\VisualStudio\16.0_0bdcc5a6\Extensions\geqtzt4r.glp"

"C:\Users\rami.abughazaleh\AppData\Local\Microsoft\VisualStudio\16.0_0bdcc5a6Demo\Extensions\bnl2fwmy.tgg"

Could this be why I'm seeing the error, and also seeing the error multiple times?
0
Misha Zhutov Replied
Employee Post
Hi Rami, 

Please take a look at my previous response. 
There are two possible causes of the issue. First, it can be anti-virus and you said you don't have it.
The second is the Visual Studio itself. The "Initialization of 'Microsoft.VisualStudio.ExtensionsExplorer.UI.ThemedToggleButton' threw an exception." error is not related to GhostDoc but related to the fact that Visual Studio for some reason cannot load the extension.
So, you can try to uninstall GhostDoc, repair Visual Studio and install it again.

Reply to Thread