不能再在Visual Studio 2010中打开我的dbml文件 [英] Can't open my dbml file in Visual Studio 2010 anymore

查看:80
本文介绍了不能再在Visual Studio 2010中打开我的dbml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从事了一段时间的项目.我没碰过它,当我回到它并尝试打开dbml文件时,出现此错误.

I've been working on a project for a while now. I hadn't touched it in a bit and when I came back to it and tried to open the dbml file, I'm getting this error.

"Microsoft.VisualStudio.Data.Providers.SqlCompact.VsPackage" Microsoft.VisualStudio.Data.Providers.SqlCompact,版本= 4.0.0.0, 文化=中性,PublicKeyToken = 89845dcd8080cc91'包未加载 正确.

The 'Microsoft.VisualStudio.Data.Providers.SqlCompact.VsPackage, Microsoft.VisualStudio.Data.Providers.SqlCompact, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' package did not load correctly.

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遇到意外错误."

After you click OK on that error, another pop-up appears and says, "Visual studio has encountered an unexpected error."

我尝试修复Visual Studio 2010,但没有帮助,因此我也卸载并重新安装了它.仍然没有运气.任何人都知道发生了什么事以及如何解决它?

I tried repairing Visual Studio 2010 and that didn't help, so I also uninstalled and reinstalled it. Still no luck. Anyone have any idea what's going on and how to fix it?

更新:我从命令提示符下使用/log参数启动了Visual Studio 2010,并检查了生成的日志文件.看到这些错误.

Update: I started Visual Studio 2010 from the command prompt with the /log parameter and examined the log file that was generated. Seeing these errors.

<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>行上进行谷歌搜索不会产生任何结果.

And Googling on those <errorinfo> lines yields no results.

推荐答案

我决定从头开始重新创建dbml文件.当我决定尝试单击旧的dbml时,我大约完成了90%的工作.猜猜发生了什么事?它打开并运行良好.

I decided to recreate the dbml file from scratch. I was about 90% done with it when I decided to try clicking on the old dbml, just for the heck of it. And guess what happened? It opened and worked just fine.

在我创建了一个新的dbml之后,好像设计师的东西被搞砸了,并且自己修复了.会推荐任何遇到此问题的人至少给它一个机会.

Seems like something with the designer was screwed up and fixed itself after I created a fresh dbml. Would recommend anyone with this issue at least give it a shot.

这篇关于不能再在Visual Studio 2010中打开我的dbml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆