【问题标题】:Can't open my dbml file in Visual Studio 2010 anymore无法再在 Visual Studio 2010 中打开我的 dbml 文件
【发布时间】: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>

在这些 &lt;errorinfo&gt; 行上谷歌搜索不会产生任何结果。

【问题讨论】:

    标签: visual-studio-2010 linq-to-sql


    【解决方案1】:

    我决定从头开始重新创建 dbml 文件。当我决定尝试点击旧的 dbml 时,我已经完成了大约 90%,只是为了它。猜猜发生了什么?它打开并运行良好。

    似乎在我创建了一个新的 dbml 之后,设计师的某些事情被搞砸了并自行修复。建议任何有此问题的人至少试一试。

    【讨论】:

      【解决方案2】:

      我发现当一切都失败时,是时候重新启动 Visual Studio。我这样做了,我的 dbml 能够正常加载。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2013-04-30
        • 1970-01-01
        • 2012-06-23
        • 1970-01-01
        • 2011-11-13
        • 2015-01-06
        • 2020-11-09
        相关资源
        最近更新 更多