在XP 系统中连接 sqlite数据库 问题

龟宝宝 2011-07-27 02:23:28
本机win 7测试正常 在 虚拟机 XP 中 异常
************** 异常文本 **************
System.Exception: 无法连接到数据库!“System.Transactions.Diagnostics.DiagnosticTrace”的类型初始值设定项引发异常。
...全文
260 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
冰川711 2011-07-28
  • 打赏
  • 举报
回复
没有遇到过,断电调试下吧, 用排除法找到问题根源,

祝LZ早日解决问题~!!!
ryfsoft 2011-07-27
  • 打赏
  • 举报
回复
有着问题???今天算是见识了
zhgroup 2011-07-27
  • 打赏
  • 举报
回复
SQLite版本的问题
龟宝宝 2011-07-27
  • 打赏
  • 举报
回复
我用的就是32位的啊 而且刚刚好使了一次 在重新启动程序就又出问题了

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

************** 异常文本 **************
System.Exception: 无法连接到数据库!“System.Transactions.Diagnostics.DiagnosticTrace”的类型初始值设定项引发异常。
在 ExamText_clientDAL.DateSqlite.DateSqliteOpen()
在 ExamText_clientDAL.DateSqlite.GetSQLiteDataReader(String sql)
在 ExamText_clientDAL.ExaminationPaperServices.GetExamList(String type)
在 ExamText_clientBLL.ExaminationPaperManager.GetZhentiPaprs(String typename)
在 FileList.ExamList.Add_xingce()
在 FileList.ExamList.Check_Load()
在 FileList.ExamList.ExamList_Load(Object sender, EventArgs e)
在 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)
在 ExamText_client.MainFrom.AddCtr(String Subject)
在 ExamText_client.MainFrom.btn_xingce_Click(Object sender, EventArgs e)
在 ExamText_client.MainFrom.tab_zhentilianxi_Click(Object sender, EventArgs e)
在 System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
在 System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
在 System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
在 System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
在 System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
在 System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
在 System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
在 System.Windows.Forms.ToolStrip.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
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3053 (netfxsp.050727-3000)
基本代码: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ExamText_client
程序集版本: 1.0.0.0
Win32 版本: 1.0.0.0
基本代码: file:///E:/公务员考试软件/ExamText_client.exe
----------------------------------------
System.Windows.Forms
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3053 (netfxsp.050727-3000)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3053 (netfxsp.050727-3000)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3053 (netfxsp.050727-3000)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
TabStripControlLibrary
程序集版本: 1.0.4223.25038
Win32 版本: 1.0.0.0
基本代码: file:///E:/公务员考试软件/TabStripControlLibrary.DLL
----------------------------------------
ExamText_clientModel
程序集版本: 1.0.0.0
Win32 版本: 1.0.0.0
基本代码: file:///E:/公务员考试软件/ExamText_clientModel.DLL
----------------------------------------
gerenzhongxin
程序集版本: 1.0.0.0
Win32 版本: 1.0.0.0
基本代码: file:///E:/公务员考试软件/gerenzhongxin.DLL
----------------------------------------
mscorlib.resources
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3053 (netfxsp.050727-3000)
基本代码: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
FileList
程序集版本: 1.0.0.0
Win32 版本: 1.0.0.0
基本代码: file:///E:/公务员考试软件/FileList.DLL
----------------------------------------
statistics
程序集版本: 1.0.0.0
Win32 版本: 1.0.0.0
基本代码: file:///E:/公务员考试软件/statistics.DLL
----------------------------------------
gengduoyingyong
程序集版本: 1.0.0.0
Win32 版本: 1.0.0.0
基本代码: file:///E:/公务员考试软件/gengduoyingyong.DLL
----------------------------------------
control_zhenti
程序集版本: 1.0.0.0
Win32 版本: 1.0.0.0
基本代码: file:///E:/公务员考试软件/control_zhenti.DLL
----------------------------------------
ExamText_clientBLL
程序集版本: 1.0.0.0
Win32 版本: 1.0.0.0
基本代码: file:///E:/公务员考试软件/ExamText_clientBLL.DLL
----------------------------------------
ExamText_clientDAL
程序集版本: 1.0.0.0
Win32 版本: 1.0.0.0
基本代码: file:///E:/公务员考试软件/ExamText_clientDAL.DLL
----------------------------------------
System.Data.SQLite
程序集版本: 1.0.65.0
Win32 版本: 1.0.65.0
基本代码: file:///E:/公务员考试软件/System.Data.SQLite.DLL
----------------------------------------
System.Data
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3053 (netfxsp.050727-3000)
基本代码: 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.3053 (netfxsp.050727-3000)
基本代码: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.Configuration
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3053 (netfxsp.050727-3000)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3053 (netfxsp.050727-3000)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
system.configuration.resources
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3053 (netfxsp.050727-3000)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration.resources/2.0.0.0_zh-CHS_b03f5f7f11d50a3a/System.Configuration.resources.dll
----------------------------------------
System.Windows.Forms.resources
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.3053 (netfxsp.050727-3000)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

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

例如:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

启用 JIT 调试后,任何无法处理的异常
都将被发送到在此计算机上注册的 JIT 调试器,
而不是由此对话框处理。



猫咪咪抓 2011-07-27
  • 打赏
  • 举报
回复
应该是sqlite库的版本问题
有32位和64位两个版本的,楼主试试

110,500

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧