Foxtable(狐表)用户栏目专家坐堂 → 连接数据库出错,请看下如何解决啊!


  共有1509人关注过本帖平板打印复制链接

主题:连接数据库出错,请看下如何解决啊!

帅哥哟,离线,有人找我吗?
wcs
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:五尾狐 帖子:1034 积分:7402 威望:0 精华:0 注册:2008/8/31 22:52:00
连接数据库出错,请看下如何解决啊!  发帖心情 Post By:2017/12/2 22:11:00 [只看该作者]

开发版打包发布的程序,在WIN10,64位电脑中,启动时出错,不能连接accdb数据库。正常的是选定这个accdb文件以后,就打开OK了的。

以开发者身份按CTRL登录,提示窗口(这是我写的连接字符串,在别的电脑中能正常运行):

Provider=Microsoft.ACE.OLEDB.12.0;Data Source=F:\极简阅账\示例.accdb;Persist Security Info=False

点击“生成器”,直接报错,提示:

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

************** 异常文本 **************
System.InvalidOperationException: 在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke。
   在 System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
   在 System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
   在 Foxtable.O  o OoO.O0o0_0o_(Exception A_0, String A_1)
   在 Foxtable.O O0   o.oo O   0(Object A_0, EventArgs A_1)
   在 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)
   在 ...............................

很长!







 回到顶部