当前位置: 代码迷 >> Sql Server >> ★100分★System.IO.FileNotFoundException: 未能加载资料或程序集“System.Data
  详细解决方案

★100分★System.IO.FileNotFoundException: 未能加载资料或程序集“System.Data

热度:62   发布时间:2016-04-27 11:44:23.0
★★100分★★System.IO.FileNotFoundException: 未能加载文件或程序集“System.Data
电脑的SQL2005和SQL2008全起不来了,自己写的aspx程序也报错了,但是通过别的机器连我的数据库是可以连,里面的数据也能看
启动SQL2008报了如下错误:
************** 异常文本 **************
System.IO.FileNotFoundException: 未能加载文件或程序集“System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”或它的某一个依赖项。系统找不到指定的文件。
文件名:“System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”
  在 Microsoft.SqlServer.Management.Data.PropertyData..ctor(String name, Type type, Object value, Boolean enabled)
  在 Microsoft.SqlServer.Management.Data.PropertyData..ctor(String name, Object value)
  在 Microsoft.SqlServer.Management.Data.PropertyDictionary.Add(String key, Object value, PropertyCollisionResolution collisionResolution)
  在 Microsoft.SqlServer.Management.Data.PropertyDictionary.Add(String key, Object value)
  在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorer.Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.IObjectExplorerSelectionEventProvider.NotifySelectionChanged(INodeInformation selectedNode)
  在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorer.OnGotFocus(Object sender, EventArgs e)
  在 System.Windows.Forms.Control.OnGotFocus(EventArgs e)
  在 System.Windows.Forms.Control.WmSetFocus(Message& m)
  在 System.Windows.Forms.Control.WndProc(Message& m)
  在 System.Windows.Forms.TreeView.WndProc(Message& m)
  在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.LazyTreeView.WndProc(Message& m)
  在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

警告: 程序集绑定日志记录被关闭。
要启用程序集绑定失败日志记录,请将注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD)设置为 1。
注意: 会有一些与程序集绑定失败日志记录关联的性能损失。
要关闭此功能,请移除注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog]。

我去系统的目录下看了一下C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727的System.Data.dll好好的在里面,大家谁遇到过这个情况,谢谢!


------解决方案--------------------
电脑的SQL2005和SQL2008全起不来了?
你电脑上同时安装了SQL 2005和2008?
全起不来的情况下,别人远程还可以看数据?
------解决方案--------------------
同样的问题等待解决方案、、、
------解决方案--------------------
可能数据库什么文件被删掉了

你可以试试安装程序里面的修复功能,修复一下。
  相关解决方案