зеркало из https://github.com/mono/mail-archives.git
90 строки
2.8 KiB
HTML
90 строки
2.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [mono-android] sqlite
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20sqlite&In-Reply-To=">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="007613.html">
|
|
<LINK REL="Next" HREF="007621.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[mono-android] sqlite</H1>
|
|
<B>Wally McClure</B>
|
|
<A HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20sqlite&In-Reply-To="
|
|
TITLE="[mono-android] sqlite">theevilprogrammer at hotmail.com
|
|
</A><BR>
|
|
<I>Tue Dec 6 23:05:46 EST 2011</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="007613.html">[mono-android] Mono error in Exceptions window
|
|
</A></li>
|
|
<LI>Next message: <A HREF="007621.html">[mono-android] sqlite
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#7620">[ date ]</a>
|
|
<a href="thread.html#7620">[ thread ]</a>
|
|
<a href="subject.html#7620">[ subject ]</a>
|
|
<a href="author.html#7620">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>
|
|
I'm getting a System.UnauthorizedAccessException when I try to create a sqlite database file with the following code. Should I be using a different directory to store the database file?
|
|
string DatabaseName = "UserData.db3";
|
|
string documents = System.Environment.GetFolderPath(
|
|
System.Environment.SpecialFolder.Personal);
|
|
string db = Path.Combine(documents, DatabaseName);
|
|
bool exists = File.Exists(db);
|
|
if (!exists)
|
|
{
|
|
SqliteConnection.CreateFile(db);
|
|
}
|
|
|
|
-------------- next part --------------
|
|
An HTML attachment was scrubbed...
|
|
URL: <A HREF="http://lists.ximian.com/pipermail/monodroid/attachments/20111206/ec1d1439/attachment.html">http://lists.ximian.com/pipermail/monodroid/attachments/20111206/ec1d1439/attachment.html</A>
|
|
</PRE>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="007613.html">[mono-android] Mono error in Exceptions window
|
|
</A></li>
|
|
<LI>Next message: <A HREF="007621.html">[mono-android] sqlite
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#7620">[ date ]</a>
|
|
<a href="thread.html#7620">[ thread ]</a>
|
|
<a href="subject.html#7620">[ subject ]</a>
|
|
<a href="author.html#7620">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/monodroid">More information about the Monodroid
|
|
mailing list</a><br>
|
|
</body></html>
|