﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Database Connection Wizard always shows</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 25 May 2026 16:55:46 GMT</lastBuildDate><ttl>20</ttl><item><title>Database Connection Wizard always shows</title><link>http://forum.strataframe.net/FindPost15557.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I have a simple one BO, one form project on a Vista 64bit system. When I do an F5, the form runs and the Database Connection Wizard appears. I setup the connection and the form loads and throws an error when I attempt to fill the BO.&lt;/P&gt;&lt;P&gt;The error is:-&lt;/P&gt;&lt;P&gt;DataLayerException&lt;BR&gt;&amp;nbsp; An error occurred while creating a new DataLayer for the business object.&lt;BR&gt;DataLayerException&lt;BR&gt;&amp;nbsp; The &lt;FONT class=SearchHighlight&gt;DataSourceKey&lt;/FONT&gt; [] is &lt;FONT class=SearchHighlight&gt;not&lt;/FONT&gt; defined.&lt;/P&gt;&lt;P&gt;Each time I do an F5 and run the project, the Database Connection Wizard always displays. From what I have read, it doesn't look like the wizard is saving the connection details as I believe it is supposed to only run the wizard once.&lt;/P&gt;&lt;P&gt;Have I missed something silly?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aaron</description><pubDate>Wed, 16 Apr 2008 11:20:57 GMT</pubDate><dc:creator>Aaron Young</dc:creator></item><item><title>RE: Database Connection Wizard always shows</title><link>http://forum.strataframe.net/FindPost15689.aspx</link><description>You can install&amp;nbsp;a build that allows you to add this functionality here: &lt;A href="http://forum.strataframe.net/FindPost15687.aspx"&gt;http://forum.strataframe.net/FindPost15687.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You will want to set the ConnectionManager.ConnectionDataFolder property for your application prior to calling the SetConnections() method.&amp;nbsp; We will probably allow this to be set for the StrataFrame environment itself in the next update.&amp;nbsp; But for now you can at least get your applications finalized with this functionality.</description><pubDate>Wed, 16 Apr 2008 11:20:57 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Database Connection Wizard always shows</title><link>http://forum.strataframe.net/FindPost15642.aspx</link><description>[quote][b]Trent L. Taylor (04/15/2008)[/b][hr]...I don't know if Vista has exaserbated the problem or what, &lt;STRONG&gt;&lt;EM&gt;but I guess we can allow this folder to be set &lt;/EM&gt;&lt;/STRONG&gt;so that way the permission issues become the problem of the developer/IT people&amp;nbsp;versus having a static location to which this file is created.[/quote]&lt;P&gt;Hi Trent,&lt;P&gt;Well Vista security like the previous MS-OS&amp;nbsp;will always cause many issues like this one, so I vote for an option to allow us to select the location where these files will be store.</description><pubDate>Tue, 15 Apr 2008 10:36:29 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Database Connection Wizard always shows</title><link>http://forum.strataframe.net/FindPost15634.aspx</link><description>Permission issues are something that we have fought from the inception of Windows.&amp;nbsp; We have some shops who don't even allow temp files to be created...it is a constant fight between applications and network people trying to make things work.&lt;/P&gt;&lt;P&gt;We can add an option for this folder location, but it probably won't be a quick fix.&amp;nbsp; I will add it to my list.&amp;nbsp; To be honest, over the past 3 years, this logic has changed very little and the folder pathing and locations hasn't changed at all.&amp;nbsp; This is the first time that the permissions have ever become an issue...I don't know if Vista has exaserbated the problem or what, but I guess we can allow this folder to be set so that way the permission issues become the problem of the developer/IT people&amp;nbsp;versus having a static location to which this file is created.</description><pubDate>Tue, 15 Apr 2008 09:55:57 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Database Connection Wizard always shows</title><link>http://forum.strataframe.net/FindPost15619.aspx</link><description>Trent,&lt;/P&gt;&lt;P&gt;I've done some more digging, and noticed that "C:\ProgramData\MicroFour\ConnectionData" has, amongst others, permissions that allow Users on my PC "read and execute" as well as "special" permissions ("Create file / write data", "Create folders / append data", "Write attributes", and "Write extended attributes") both inherited. However "AppKeys.dat" and "Connections.dat" don't have the special permissions.&lt;/P&gt;&lt;P&gt;Then I tried deleting the files and seeing what happened when they were recreated. First I ran one of our programs as administrator, the files were created with no special permissions for users, and the program ran fine. Subsequently running another of our programs as me, I got the exception we've been seeing. Then I tried again deleting the files and running a program as me. The files were created with permissions the same for users as before (but I also got extra permissions as owner), and the program ran fine. Subsequently&amp;nbsp;running another&amp;nbsp;program also worked fine. I don't dare try running as another user that isn't administrator. I haven't consciously changed any permissions settings, and there is no group policy running within our network that I know about (and I'm allegedly our expert on group policy, i.e. I've read a few chapters of a book).&lt;/P&gt;&lt;P&gt;Moral of the story: I'm confused and think making the location of the files configurable is a good idea.&lt;/P&gt;&lt;P&gt;Peter</description><pubDate>Mon, 14 Apr 2008 19:51:05 GMT</pubDate><dc:creator>Peter Denton</dc:creator></item><item><title>RE: Database Connection Wizard always shows</title><link>http://forum.strataframe.net/FindPost15585.aspx</link><description>[quote]So is this a case of easing permissions on "C:\ProgramData\MicroFour\ConnectionData" and is there a recommendation of what the permissions should be?[/quote]&lt;/P&gt;&lt;P&gt;You don't have to ease permissions on&amp;nbsp;the entire machine.&amp;nbsp; Technically there should be permissions on this folder anyway for anyone to create, update, and access a file.&amp;nbsp; So there were actually restrictions placed on this folder or hightened security added via group policies to prevent this access.&amp;nbsp; You only need to allow permissions to this one folder if you are going to use the Connection String Manager.&amp;nbsp; The other option would be for us to add a preference so that you can set this folder location (which is truth is not a bad idea) but these would be the only two options.</description><pubDate>Mon, 14 Apr 2008 09:31:29 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Database Connection Wizard always shows</title><link>http://forum.strataframe.net/FindPost15582.aspx</link><description>G'day&lt;/P&gt;&lt;P&gt;I have just experienced the same problem. Running as administrator allowed me to continue development and testing, however, my concern is how this will effect deployment of our application.&lt;/P&gt;&lt;P&gt;I prefer to leave permissions as default but I don't want all our users having to have administrator privileges. So is this a case of easing permissions on "C:\ProgramData\MicroFour\ConnectionData" and is there a recommendation of what the permissions should be?&lt;/P&gt;&lt;P&gt;Peter</description><pubDate>Mon, 14 Apr 2008 02:16:12 GMT</pubDate><dc:creator>Peter Denton</dc:creator></item><item><title>RE: Database Connection Wizard always shows</title><link>http://forum.strataframe.net/FindPost15569.aspx</link><description>Cool.&amp;nbsp; Glad it worked. :)</description><pubDate>Sat, 12 Apr 2008 08:19:36 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Database Connection Wizard always shows</title><link>http://forum.strataframe.net/FindPost15568.aspx</link><description>You are right - it is a permission problem. Running VS2008 as Administrator and the connection saves and the form works. Running again with normal permissions and the form continues to operate.&lt;/P&gt;&lt;P&gt;Thanks.</description><pubDate>Sat, 12 Apr 2008 03:13:06 GMT</pubDate><dc:creator>Aaron Young</dc:creator></item><item><title>RE: Database Connection Wizard always shows</title><link>http://forum.strataframe.net/FindPost15562.aspx</link><description>Actually it is probably a permissions issue.&amp;nbsp; We create two encrypted files in the All Users App data folder.&amp;nbsp; One called Connections.dat and another caled AppKeys.dat.&lt;/P&gt;&lt;P&gt;I am willing to bet that these files cannot be created or properly accessed.&amp;nbsp; However, this may &lt;U&gt;&lt;EM&gt;not&lt;/EM&gt;&lt;/U&gt; be the issue in the sense that the StrataFrame connection and the samples use these same files, so if they work then it may be a matter of setup.&lt;/P&gt;&lt;P&gt;In the case that this is the latter issue, look in your AppMain.vb or progam.cs files and look in the SetDataSources method.&amp;nbsp; If you are going to let the connection Wizard manage your connections, then you will need to have the Applicationkey as well as define the RequiredDataSources.&lt;/P&gt;&lt;P&gt;So you might let me take a look at your SetDataSources method to see what you have there if you don't get it figured out.</description><pubDate>Fri, 11 Apr 2008 19:31:22 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Database Connection Wizard always shows</title><link>http://forum.strataframe.net/FindPost15559.aspx</link><description>Hi Edhy,&lt;/P&gt;&lt;P&gt;Afraid I am using my own database.&lt;/P&gt;&lt;P&gt;Thanks anyway,&lt;/P&gt;&lt;P&gt;Aaron</description><pubDate>Fri, 11 Apr 2008 18:07:51 GMT</pubDate><dc:creator>Aaron Young</dc:creator></item><item><title>RE: Database Connection Wizard always shows</title><link>http://forum.strataframe.net/FindPost15558.aspx</link><description>Hi Aaron,&lt;/P&gt;&lt;P&gt;If you are using the SF sample database, try changing the name of the &lt;FONT size=2&gt;onnectionManager.ApplicationKey in your AppMain.vb class so it will create a new connection record.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;This is just a guess ;)&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Fri, 11 Apr 2008 17:42:45 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>