无法加载系统数据
我有点困惑为什么会发生这种情况。我一直运行得很好——做了一些更改/重建(构建得很好),突然间,无论我做什么,当我尝试调试时,我都会遇到以下异常。
无法加载文件或程序集 '系统数据,版本=2.0.0.0, 文化=中立, PublicKeyToken=b77a5c561934e089' 或 它的依赖项之一。系统 找不到指定的文件。
有什么想法如何让它恢复到以前的样子吗?我什至撤消了我所做的更改(这实际上不应该与此有任何关系),但无济于事。
I am a little baffled as to why this is occurring. I have been cruising along just fine -- made a couple changes / rebuilt (builds just fine) and all of a sudden no matter what I do I get the following exception when I try to debug..
Could not load file or assembly
'System.Data, Version=2.0.0.0,
Culture=neutral,
PublicKeyToken=b77a5c561934e089' or
one of its dependencies. The system
cannot find the file specified.
Any ideas how to get this back to how it was before? I even undid the changes I made (that really shouldn't have had anything to do with this) to no avail.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果“Windows”更新最近修补了您引用的 .NET Framework 版本,编译器可能会认为存在版本控制差异。
如果是这种情况,请尝试重新启动,并可能重新检查更新。如果失败,请重新安装 .net Framework 版本,并重新应用更新。在安装了 XNA 4.0 的试用版然后将其卸载后,我对另一个系统组件也遇到了类似的问题。
If a "Windows" update recently patched the .NET framework version you're referencing, the compiler may think there's a versioning difference.
If this were the case, try rebooting, and possibly re-checking updates. Failing that, re-installing the .net framework version, and letting the updates get re-applied. I had a similar issue with another System component after once installing a trial version of XNA 4.0, and then uninstalling it.
确保您仍将 System.Data 添加为项目引用。如果是这样,请确保存在 Visual Studio 并返回。然后执行“清理”和“构建”,您应该可以开始了。
Ensure that you have System.Data still added as a project reference. If so, be sure to then exist Visual Studio and go back in. Then do a "clean" and "Build" and you should be set to go.