Could not load file or assembly SubMain.GhostDoc.Package.clr4.6
Problem reported by Rami Abughazaleh - September 3 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:

5 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.

Reply to Thread