StrataFrame Forum

DataSourceKey Not Defined

http://forum.strataframe.net/Topic33327.aspx

By Buffie - 7/1/2016

I am having an issue with a module on my client's machine. I have 4 other modules running on this same machine. I have installed this module on an Virtual box and it works fine. I have installed on another laptop and it works???
When I create my modules I put a Connection choice on my menus so if need be we can change the data connection. The first time you run the module it goes through the data connection wizard but then when you actually make a menu choice you get the attached error. When you run the Connection choice on the menu no Connection Shows up? When you add one and get back to the original connection screen no connection shows up???? I have never had this happen before?
Data is attached to SqlExpress and there is data in the tables.

I just need some help as to where to start looking.
TIA
By Ivan George Borges - 7/1/2016

The connection data is saved on C:\ProgramData\MicroFour\ConnectionData.
Does the current user have Write permissions to it?

By Buffie - 7/2/2016

That is a good question. I don't know that but I will check. Are all connections stored in 1 file or are they stored individually? 
By Ivan George Borges - 7/2/2016

In this folder, you will find 2 files, AppKeys.dat and Connections.dat. They will store the unique applications and their respectives connection strings. So, there will be only these 2 files, no matter how many applications or connection strings you create.
By Edhy Rijo - 7/3/2016

Hi All,

Sometimes depending on the user's right you may need to run your application as "Administrator" so it will have the rights it needs to update the connection data files.
By Buffie - 7/3/2016

I thought I set it up to run as an Admin but not sure so I will check that tomorrow. Thanks to both of you.
By Buffie - 7/4/2016

Just so both of you know. I set the module to be run as an Admin and All is well. Thank you guys for pulling me in the right direction. 
Somehow I missed setting that on my install package. 
Have a great 4th....
By Edhy Rijo - 7/4/2016

Glad it worked for you!!!