【发布时间】:2013-07-28 06:50:55
【问题描述】:
我从事一个项目已经有一段时间了。我有一点没碰它,当我回到它并试图打开 dbml 文件时,我收到了这个错误。
'Microsoft.VisualStudio.Data.Providers.SqlCompact.VsPackage, Microsoft.VisualStudio.Data.Providers.SqlCompact,版本=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' 包没有加载 正确。
The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by running the application together with the /log parameter on the command line, and then examining the file 'C:\Users\Gary\AppData\Roaming\Microsoft\VisualStudio\10.0\ActivityLog.xml'.
在该错误上单击“确定”后,会出现另一个弹出窗口并显示“Visual Studio 遇到意外错误。”
我尝试修复 Visual Studio 2010 但没有帮助,所以我也卸载并重新安装了它。仍然没有运气。任何人都知道发生了什么以及如何解决它?
更新:我使用 /log 参数从命令提示符启动 Visual Studio 2010,并检查了生成的日志文件。看到这些错误。
<entry>
<record>377</record>
<time>2011/08/03 20:30:38.399</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [Microsoft.VisualStudio.Data.Providers.SqlCompact.VsPackage, Microsoft.VisualStudio.Data.Providers.SqlCompact, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91]</description>
<guid>{51DD7941-149C-412F-8583-04644B87305F}</guid>
<hr>80131522</hr>
<errorinfo>Could not load type 'Microsoft.VSDesigner.VSDesignerPackage.ICustomProviderAssemblyService' from assembly 'Microsoft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.</errorinfo>
</entry>
<entry>
<record>378</record>
<time>2011/08/03 20:30:38.403</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [Microsoft.VisualStudio.Data.Providers.SqlCompact.VsPackage, Microsoft.VisualStudio.Data.Providers.SqlCompact, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91]</description>
<guid>{51DD7941-149C-412F-8583-04644B87305F}</guid>
<hr>80131522</hr>
<errorinfo>Could not load type 'Microsoft.VSDesigner.VSDesignerPackage.ICustomProviderAssemblyService' from assembly 'Microsoft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.</errorinfo>
</entry>
在这些 <errorinfo> 行上谷歌搜索不会产生任何结果。
【问题讨论】:
标签: visual-studio-2010 linq-to-sql