我的问题是这样的:
我机子上安装了Oracle - OraClient10g_home1,开发了一个Winfrm软件,app.config的连接字符串是这样的:
Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;User Id=myUsername;Password=myPassword;OLEDB.NET=True;
,在其他机子上安装 软件后,登陆就出现:
有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。 ************** 异常文本 **************
System.ArgumentException: 不支持关键字: “provider”。
在 System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey)
在 System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules)
在 System.Data.OracleClient.OracleConnectionString..ctor(String connectionString)
在 System.Data.OracleClient.OracleConnectionFactory.CreateConnectionOptions(String connectionOptions, DbConnectionOptions previous)
在 System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(String connectionString, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
在 System.Data.OracleClient.OracleConnection.ConnectionString_Set(String value)
在 System.Data.OracleClient.OracleConnection.set_ConnectionString(String value)
在 System.Data.OracleClient.OracleConnection..ctor(String connectionString)
在 Maticsoft.DBUtility.DbHelperOra.Query(String SQLString)
在 GZCX.OracleDAL.GZCX_LINE.GetList(String strWhere)
在 GZCX.BLL.GZCX_LINE.GetAllList()
在 DataManager.Controls.UC_Config.BinderLine() 位置 F:\福州\GZCX_DataM\DataManager\Controls\UC_Config.cs:行号 62
在 DataManager.Controls.UC_Config.UC_Config_Load(Object sender, EventArgs e) 位置 F:\福州\GZCX_DataM\DataManager\Controls\UC_Config.cs:行号 32
在 System.Windows.Forms.UserControl.OnLoad(EventArgs e)
在 System.Windows.Forms.UserControl.OnCreateControl()
在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
在 System.Windows.Forms.Control.CreateControl()
在 System.Windows.Forms.Control.ControlCollection.Add(Control value)
在 DataManager.FrmMain.toolStripButton_Start_Click(Object sender, EventArgs e) 位置 F:\福州\GZCX_DataM\DataManager\FrmMain.cs:行号 27
在 DataManager.FrmMain.FrmMain_Load(Object sender, EventArgs e) 位置 F:\福州\GZCX_DataM\DataManager\FrmMain.cs:行号 39
在 System.Windows.Forms.Form.OnLoad(EventArgs e)
在 System.Windows.Forms.Form.OnCreateControl()
在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
在 System.Windows.Forms.Control.CreateControl()
在 System.Windows.Forms.Control.WmShowWindow(Message& m)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
在 System.Windows.Forms.ContainerControl.WndProc(Message& m)
在 System.Windows.Forms.Form.WmShowWindow(Message& m)
在 System.Windows.Forms.Form.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)
************** 已加载的程序集 **************安装的机子上没有安装任何数据库软件。不知道是什么软件?望大家帮忙
我机子上安装了Oracle - OraClient10g_home1,开发了一个Winfrm软件,app.config的连接字符串是这样的:
Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;User Id=myUsername;Password=myPassword;OLEDB.NET=True;
,在其他机子上安装 软件后,登陆就出现:
有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。 ************** 异常文本 **************
System.ArgumentException: 不支持关键字: “provider”。
在 System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey)
在 System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules)
在 System.Data.OracleClient.OracleConnectionString..ctor(String connectionString)
在 System.Data.OracleClient.OracleConnectionFactory.CreateConnectionOptions(String connectionOptions, DbConnectionOptions previous)
在 System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(String connectionString, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
在 System.Data.OracleClient.OracleConnection.ConnectionString_Set(String value)
在 System.Data.OracleClient.OracleConnection.set_ConnectionString(String value)
在 System.Data.OracleClient.OracleConnection..ctor(String connectionString)
在 Maticsoft.DBUtility.DbHelperOra.Query(String SQLString)
在 GZCX.OracleDAL.GZCX_LINE.GetList(String strWhere)
在 GZCX.BLL.GZCX_LINE.GetAllList()
在 DataManager.Controls.UC_Config.BinderLine() 位置 F:\福州\GZCX_DataM\DataManager\Controls\UC_Config.cs:行号 62
在 DataManager.Controls.UC_Config.UC_Config_Load(Object sender, EventArgs e) 位置 F:\福州\GZCX_DataM\DataManager\Controls\UC_Config.cs:行号 32
在 System.Windows.Forms.UserControl.OnLoad(EventArgs e)
在 System.Windows.Forms.UserControl.OnCreateControl()
在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
在 System.Windows.Forms.Control.CreateControl()
在 System.Windows.Forms.Control.ControlCollection.Add(Control value)
在 DataManager.FrmMain.toolStripButton_Start_Click(Object sender, EventArgs e) 位置 F:\福州\GZCX_DataM\DataManager\FrmMain.cs:行号 27
在 DataManager.FrmMain.FrmMain_Load(Object sender, EventArgs e) 位置 F:\福州\GZCX_DataM\DataManager\FrmMain.cs:行号 39
在 System.Windows.Forms.Form.OnLoad(EventArgs e)
在 System.Windows.Forms.Form.OnCreateControl()
在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
在 System.Windows.Forms.Control.CreateControl()
在 System.Windows.Forms.Control.WmShowWindow(Message& m)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
在 System.Windows.Forms.ContainerControl.WndProc(Message& m)
在 System.Windows.Forms.Form.WmShowWindow(Message& m)
在 System.Windows.Forms.Form.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)
************** 已加载的程序集 **************安装的机子上没有安装任何数据库软件。不知道是什么软件?望大家帮忙
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货