【发布时间】:2010-09-30 17:11:35
【问题描述】:
我正在尝试将 MYSQL 驱动的 .net 应用程序安装到 Windows XP sp2 机器上。开发机器是相同的操作系统。该应用程序和所有连接在我的机器上运行良好(开发人员的口头禅),但在尝试连接到数据库时,我在安装机器上收到以下错误。
附带说明,我可以通过 OLE 提供程序(通过 UDL 文件)连接到数据库
**************异常文本************** System.ArgumentException:不支持关键字。 参数名称:命令记录 在 MySql.Data.MySqlClient.MySqlConnectionStringBuilder.GetKey(字符串键) 在 MySql.Data.MySqlClient.MySqlConnectionStringBuilder.SetValue(字符串关键字,对象值) 在 MySql.Data.MySqlClient.MySqlConnectionStringBuilder.set_Item(字符串键,对象值) 在 System.Data.Common.DbConnectionStringBuilder.set_ConnectionString(字符串值) 在 MySql.Data.MySqlClient.MySqlConnection.set_ConnectionString(字符串值) 在 MySql.Data.MySqlClient.MySqlConnection..ctor(String connectionString) 在 CaseManager.Login.OpenConnection() 在 CaseManager.Login.button1_Click(对象发送者,EventArgs e) 在 System.Windows.Forms.Control.OnClick(EventArgs e) 在 System.Windows.Forms.Button.OnClick(EventArgs e) 在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs 事件) 在 System.Windows.Forms.Control.WmMouseUp(消息和 m,MouseButtons 按钮,Int32 点击) 在 System.Windows.Forms.Control.WndProc(消息和 m) 在 System.Windows.Forms.ButtonBase.WndProc(消息和 m) 在 System.Windows.Forms.Button.WndProc(消息和 m) 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(消息& m) 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(消息和 m) 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** 加载的程序集 ************** mscorlib 程序集版本:2.0.0.0 Win32版本:2.0.50727.42 (RTM.050727-4200)
代码库:file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
案例管理器 程序集版本:1.0.0.0 Win32版本:1.0.0.0
代码库:file:///C:/Program%20Files/B3IS/Intelicase/CaseManager.exe
System.Windows.Forms 程序集版本:2.0.0.0 Win32版本:2.0.50727.42 (RTM.050727-4200)
代码库:file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
系统 程序集版本:2.0.0.0 Win32版本:2.0.50727.42 (RTM.050727-4200)
代码库:file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
系统.绘图 程序集版本:2.0.0.0 Win32版本:2.0.50727.42 (RTM.050727-4200)
代码库:file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
商业实体 程序集版本:1.0.0.0 Win32版本:1.0.0.0
代码库:file:///C:/Program%20Files/B3IS/Intelicase/BusinessEntities.DLL
MySql.Data 汇编版本:5.0.8.1 Win32版本:5.0.8.1
代码库:file:///C:/WINDOWS/assembly/GAC_MSIL/MySql.Data/5.0.8.1__c5687fc88969c44d/MySql.Data.dll
系统.数据 程序集版本:2.0.0.0 Win32版本:2.0.50727.42 (RTM.050727-4200)
代码库:file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
System.Transactions 程序集版本:2.0.0.0 Win32版本:2.0.50727.42 (RTM.050727-4200)
代码库:file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
************** JIT 调试 ************** 要启用即时 (JIT) 调试,为此的 .config 文件 应用程序或计算机 (machine.config) 必须具有 在 system.windows.forms 部分设置的 jitDebugging 值。 应用程序还必须通过调试进行编译 已启用。
例如:
启用 JIT 调试后,任何未处理的异常 将发送到计算机上注册的 JIT 调试器 而不是被这个对话框处理。
【问题讨论】:
标签: mysql connection