<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Setup projects with SQL Server Compact Edition (CE) databases</title>
	<atom:link href="http://cdonner.com/setup-projects-with-sql-server-compact-edition-ce-databases.htm/feed" rel="self" type="application/rss+xml" />
	<link>http://cdonner.com/setup-projects-with-sql-server-compact-edition-ce-databases.htm</link>
	<description>We know accurately only when we know little, with knowledge doubt increases.  (Goethe)</description>
	<lastBuildDate>Mon, 01 Mar 2010 06:45:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Don</title>
		<link>http://cdonner.com/setup-projects-with-sql-server-compact-edition-ce-databases.htm/comment-page-1#comment-5753</link>
		<dc:creator>Don</dc:creator>
		<pubDate>Mon, 01 Mar 2010 06:45:45 +0000</pubDate>
		<guid isPermaLink="false">http://cdonner.com/?p=591#comment-5753</guid>
		<description>Thanks for your response Christian. I actually tried CommonApplicationData per the following...

In the app, using the path Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)
+ &quot;\\&quot; + Application.ProductName + &quot;\\MySDF.sdf&quot;) 

In the installer, creating a custom directory with the properties:
DefaultLocation = [CommonAppDataFolder]\[ProductName]
Property = COMMONAPPDATAFOLDER 

I then tried using this with a limited rights (user only) account on my XP machine, and still got the same &quot;access to the database is not allowed&quot; error. It looks like CommonAppDataFolder is not writeable either! 0_o</description>
		<content:encoded><![CDATA[<p>Thanks for your response Christian. I actually tried CommonApplicationData per the following&#8230;</p>
<p>In the app, using the path Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)<br />
+ &#8220;\\&#8221; + Application.ProductName + &#8220;\\MySDF.sdf&#8221;) </p>
<p>In the installer, creating a custom directory with the properties:<br />
DefaultLocation = [CommonAppDataFolder]\[ProductName]<br />
Property = COMMONAPPDATAFOLDER </p>
<p>I then tried using this with a limited rights (user only) account on my XP machine, and still got the same &#8220;access to the database is not allowed&#8221; error. It looks like CommonAppDataFolder is not writeable either! 0_o</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Donner</title>
		<link>http://cdonner.com/setup-projects-with-sql-server-compact-edition-ce-databases.htm/comment-page-1#comment-5752</link>
		<dc:creator>Christian Donner</dc:creator>
		<pubDate>Mon, 01 Mar 2010 01:30:48 +0000</pubDate>
		<guid isPermaLink="false">http://cdonner.com/?p=591#comment-5752</guid>
		<description>My solution needs tweaking for Windows 7. While it works, I do get challenged for the admin password every time I start the program. As you may know, Windows 7 &quot;virtualizes&quot; the directories that applications require write access to that do not adhere to the Windows 7 model. My database for instance ends up in C:\Users\[user]\AppData\Roaming\[App Name]. I think you should use &quot;SpecialFolders.CommonApplicationData&quot;  (&lt;a href=&quot;http://stackoverflow.com/questions/1831810/is-appdata-now-the-correct-place-to-install-user-specific-apps-which-modify-th&quot; rel=&quot;nofollow&quot;&gt;see this post on Stackoverflow&lt;/a&gt;)
Other resources:
http://www.svrops.com/svrops/articles/jpoints.htm
http://technet.microsoft.com/en-us/library/cc766489%28WS.10%29.aspx</description>
		<content:encoded><![CDATA[<p>My solution needs tweaking for Windows 7. While it works, I do get challenged for the admin password every time I start the program. As you may know, Windows 7 &#8220;virtualizes&#8221; the directories that applications require write access to that do not adhere to the Windows 7 model. My database for instance ends up in C:\Users\[user]\AppData\Roaming\[App Name]. I think you should use &#8220;SpecialFolders.CommonApplicationData&#8221;  (<a href="http://stackoverflow.com/questions/1831810/is-appdata-now-the-correct-place-to-install-user-specific-apps-which-modify-th" rel="nofollow">see this post on Stackoverflow</a>)<br />
Other resources:<br />
<a href="http://www.svrops.com/svrops/articles/jpoints.htm" rel="nofollow">http://www.svrops.com/svrops/articles/jpoints.htm</a><br />
<a href="http://technet.microsoft.com/en-us/library/cc766489%28WS.10%29.aspx" rel="nofollow">http://technet.microsoft.com/en-us/library/cc766489%28WS.10%29.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Don</title>
		<link>http://cdonner.com/setup-projects-with-sql-server-compact-edition-ce-databases.htm/comment-page-1#comment-5750</link>
		<dc:creator>Don</dc:creator>
		<pubDate>Sat, 27 Feb 2010 23:54:38 +0000</pubDate>
		<guid isPermaLink="false">http://cdonner.com/?p=591#comment-5750</guid>
		<description>Hi Christian, I am having a similar issue and wonder if you can help me out. I am using visual studio 2008 SP1. I too have a .sdf file. This file needs to be readable and writable for all users on a machine. The application itself handles multi user support, and some information is shared between users.

I therefore need a place where all users can read from and write to, and I need this to be consistently set across XP, Vista and Windows 7, otherwise I&#039;m sure I will have to write a bunch of extra code in the application as well as custom actions in the installer project.

You mention in your top-edit that the &quot;User’s Application Data Folder’&quot; should now be used, but this gets back to the problem of it only being available to one user. I need a spot that all users have access to. Does such a spot exist, and if so, how can I tell my setup project to deploy to it, and my application to look for the .sdf there?</description>
		<content:encoded><![CDATA[<p>Hi Christian, I am having a similar issue and wonder if you can help me out. I am using visual studio 2008 SP1. I too have a .sdf file. This file needs to be readable and writable for all users on a machine. The application itself handles multi user support, and some information is shared between users.</p>
<p>I therefore need a place where all users can read from and write to, and I need this to be consistently set across XP, Vista and Windows 7, otherwise I&#8217;m sure I will have to write a bunch of extra code in the application as well as custom actions in the installer project.</p>
<p>You mention in your top-edit that the &#8220;User’s Application Data Folder’&#8221; should now be used, but this gets back to the problem of it only being available to one user. I need a spot that all users have access to. Does such a spot exist, and if so, how can I tell my setup project to deploy to it, and my application to look for the .sdf there?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chuck Cobb</title>
		<link>http://cdonner.com/setup-projects-with-sql-server-compact-edition-ce-databases.htm/comment-page-1#comment-5699</link>
		<dc:creator>Chuck Cobb</dc:creator>
		<pubDate>Sat, 05 Dec 2009 21:53:36 +0000</pubDate>
		<guid isPermaLink="false">http://cdonner.com/?p=591#comment-5699</guid>
		<description>This was helpful...thanks!</description>
		<content:encoded><![CDATA[<p>This was helpful&#8230;thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
