首页 新闻 赞助 找找看

找不到或无法加载已注册的 .Net Framework Data Provider。

0
悬赏园豆:200 [待解决问题]

win 7 ,vs2012 , mysql 5.6.12.2,EntityFramework 5.0。

-------------------------------------------------------------
在运行程序时报错。

有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。

************** 异常文本 **************
System.Configuration.ConfigurationErrorsException: 找不到或无法加载已注册的 .Net Framework Data Provider。
   在 System.Data.Common.DbProviderFactories.GetFactory(DataRow providerRow)
   在 System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName)
   在 System.Data.EntityClient.EntityConnection.GetFactory(String providerString)
   在 System.Data.EntityClient.EntityConnection.ChangeConnectionString(String newConnectionString)
   在 System.Data.EntityClient.EntityConnection..ctor(String connectionString)
   在 System.Data.Entity.Internal.LazyInternalConnection.InitializeFromConnectionStringSetting(ConnectionStringSettings appConfigConnection)
   在 System.Data.Entity.Internal.LazyInternalConnection.TryInitializeFromAppConfig(String name, AppConfig config)
   在 System.Data.Entity.Internal.LazyInternalConnection.Initialize()
   在 System.Data.Entity.Internal.LazyInternalConnection.CreateObjectContextFromConnectionModel()
   在 System.Data.Entity.Internal.LazyInternalContext.InitializeContext()
   在 System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType)
   在 System.Data.Entity.Internal.Linq.InternalSet`1.Initialize()
   在 System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext()
   在 System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider()
   在 System.Linq.Queryable.GroupBy[TSource,TKey](IQueryable`1 source, Expression`1 keySelector)
   在 WinApp.Form1.button1_Click(Object sender, EventArgs e) 位置 d:\Project\WinApp\WinApp\Form1.cs:行号 26
   在 System.Windows.Forms.Control.OnClick(EventArgs e)
   在 System.Windows.Forms.Button.OnClick(EventArgs e)
   在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
   在 System.Windows.Forms.Button.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)


************** 已加载的程序集 **************
mscorlib
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.17929 built by: FX45RTMREL
    基本代码: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
WinApp
    程序集版本: 1.0.0.0
    Win32 版本: 1.0.0.0
    基本代码: file:///D:/Project/WinApp/WinApp/bin/Debug/WinApp.exe
----------------------------------------
System.Windows.Forms
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.17929 built by: FX45RTMREL
    基本代码: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.17929 built by: FX45RTMREL
    基本代码: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.17929 built by: FX45RTMREL
    基本代码: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Configuration
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.17929 built by: FX45RTMREL
    基本代码: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.17929 built by: FX45RTMREL
    基本代码: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Transactions
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.17929 built by: FX45RTMREL
    基本代码: file:///C:/windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
EntityFramework
    程序集版本: 5.0.0.0
    Win32 版本: 5.0.20627.0
    基本代码: file:///D:/Project/WinApp/WinApp/bin/Debug/EntityFramework.DLL
----------------------------------------
System.Core
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.17929 built by: FX45RTMREL
    基本代码: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.EnterpriseServices
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.17929 built by: FX45RTMREL
    基本代码: file:///C:/windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Data.Entity
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.17929 built by: FX45RTMREL
    基本代码: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.Entity/v4.0_4.0.0.0__b77a5c561934e089/System.Data.Entity.dll
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
    程序集版本: 0.0.0.0
    Win32 版本: 4.0.30319.17929 built by: FX45RTMREL
    基本代码: file:///C:/windows/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
System.Data
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.17929 built by: FX45RTMREL
    基本代码: file:///C:/windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Numerics
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.17929 built by: FX45RTMREL
    基本代码: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
System.Data.OracleClient
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.17929 built by: FX45RTMREL
    基本代码: file:///C:/windows/Microsoft.Net/assembly/GAC_32/System.Data.OracleClient/v4.0_4.0.0.0__b77a5c561934e089/System.Data.OracleClient.dll
----------------------------------------
System.Data.resources
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.17929 built by: FX45RTMREL
    基本代码: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.Data.resources.dll
----------------------------------------
System.Windows.Forms.resources
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.17929 built by: FX45RTMREL
    基本代码: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
mscorlib.resources
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.17929 built by: FX45RTMREL
    基本代码: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------

************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用

< >
分享
所有回答(3)
0
dudu | 园豆:31075 (高人七级) | 2013-07-29 16:51
0

NuGet 搜索mysql,找到后选择5.0的安装

小兵仔 | 园豆:1240 (小虾三级) | 2013-08-06 17:33
0

你这程序集能在文件夹里找到吗?有时候它丢失了,但是VS的项目目录里看着还有,另外一点就是看版本对不。

 

最后,最重要的一点,你的电脑是不是64位的??如果是的话要把IIS的程序池设的  启用32位应用程序 设置成true,另外设置一下 托管管道模式为 classic

hexllo | 园豆:318 (菜鸟二级) | 2013-08-10 13:39
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册