【发布时间】:2020-12-28 08:22:29
【问题描述】:
我的主要问题是我无法打开解决方案属性,因为它显示了这个错误:。
我试过了:
- 删除
%localappdata%\Microsoft\VisualStudio\16_xxxx\ComponentModelCache和/或%appdata%\Roaming\Microsoft\VisualStudio\16.0中的所有内容 - 正在删除
.vs文件夹 - 禁用每个已安装的扩展程序
- 当然,在每一步之后都重新启动 VS,但上述方法均无效。
- 还尝试阅读给定的
.xml文件,但它不可读也没有帮助,至少对我而言。 有谁知道问题出在哪里?提前致谢。
更新 1:有错误的 XML 部分
<entry>
<record>583</record>
<time>2020/12/20 13:48:37.553</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [ErrorListPackage]</description>
<guid>{4A9B7E50-AA16-11D0-A8C5-00A0C921A4D2}</guid>
</entry>
<entry>
<record>584</record>
<time>2020/12/20 13:48:38.803</time>
<type>Error</type>
<source>VisualStudio</source>
<description>CreateInstance failed for package [ErrorListPackage]Source: 'mscorlib' Description: Could not load file or assembly 'Microsoft.VisualStudio.ErrorListPkg, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The module was expected to contain an assembly manifest.
System.BadImageFormatException: Could not load file or assembly 'Microsoft.VisualStudio.ErrorListPkg, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The module was expected to contain an assembly manifest.
File name: 'Microsoft.VisualStudio.ErrorListPkg, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
 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.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)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
</description>
<guid>{4A9B7E50-AA16-11D0-A8C5-00A0C921A4D2}</guid>
<hr>80004005 - E_FAIL</hr>
<errorinfo></errorinfo>
【问题讨论】:
-
分享XML,也许我们可以看到更多细节
-
@magicandre1981 我用 XML 部分更新了帖子
-
@GeorgeFrias 谢谢,我会检查的
-
Microsoft.VisualStudio.ErrorListPkg 插件无法加载 System.BadImageFormatException,这意味着混合 32 位和 64 位 DLL。
标签: visual-studio visual-studio-2019