English 中文(简体)
C# SQLite 当我试图出版时不起作用
原标题:C# SQLite Doesn t work when I try to publish
  • 时间:2012-05-24 16:02:02
  •  标签:
  • c#
  • sqlite

I正试图建立一个小型应用程序,该应用程序将有一个嵌入的数据库。 对于此程序,我使用了 SQLite 。 程序在2010 视觉 C# 中进行调试时运作良好, 但当我发布并尝试运行它时, 它给了我以下错误: 您的应用程序中发生了未处理的例外 。... < strong > 强的 SQLite 错误没有这样的表格: < p> I don't really understand it works when not spent.... 任何帮助都会非常感谢

问题回答

当 SQLite 说在开发机器上运行良好的程序里没有这样的表格时, 请确保它连接到正确的数据库 。

在 SQLite 中, 如果无法在代码指定的地方找到数据库, 它会在那里创建一个数据库。 它的大小将为 0 KB 。 它甚至会打开该数据库。 当从它获取数据时会出现问题 。

然后它出错。 使用一些信件框/ 调试器检查您的代码有什么问题 。



上一篇:
下一篇:


相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签