Question on AppKeys.dat and Connections.dat


Author
Message
Ross L Rooker, Sr.(1)
Ross L Rooker, Sr.(1)
StrataFrame Novice (112 reputation)StrataFrame Novice (112 reputation)StrataFrame Novice (112 reputation)StrataFrame Novice (112 reputation)StrataFrame Novice (112 reputation)StrataFrame Novice (112 reputation)StrataFrame Novice (112 reputation)StrataFrame Novice (112 reputation)StrataFrame Novice (112 reputation)
Group: StrataFrame Users
Posts: 50, Visits: 163

Based on the code below in Programs.cs:

 

Whereis the Connections.dat being stored and loaded from?

            Windows 7:             c:\Documents and Settings\AllUsers\Application Data\MicroFour\ConnectionData ?

            Windows 8:             c:\ProgramData\Microfour\Connections?

 

Whereis the AppKeys.dat being stored and loaded from?

            Windows 7:             c:\Documentsand Settings\All Users\Application Data\MicroFour\ConnectionData ?

            Windows 8:             c:\ProgramData\Microfour\Connections?

 

The above is ONLY if the data connections setting for a user isNOT pointing to a Shared Settings File. Is the correct?

 

 

PROGRAMS.cs

        private static void SetDataSources()

        {

 

           //-- Set the information specific to this applicationand the data sources

           //       Theapplication key:

           ConnectionManager.ApplicationKey = "CMT";

           ConnectionManager.ApplicationDefaultTitle = "CMT Development Connection";

           ConnectionManager.ApplicationDefaultDescription= "This application connection is used byCMT";

 

           //-- Set the required data source information so thatthe ConnectionManager can gather it

           //      SQL Connection

           ConnectionManager.AddRequiredDataSourceItem("", "SQLConnection",

               DataSourceTypeOptions.SqlServer, "LOGICMT", "Thisconnection is used by CMT.");

           ConnectionManager.AddRequiredDataSourceItem("CMT_RBS", "SQLConnection",

               DataSourceTypeOptions.SqlServer,"LOGICMT_RBS", "This connection is used by CMT RBS.");

 

           //-- Make the call to SetConnections which willgather the connection information, show the connection wizard

           //   if needed and set the DataSourcescollection on the DataLayer class.

 

           ConnectionManager.SetConnections();

 

           SecurityBasics.SecurityDataSourceKey = "CMT_RBS";

        }

 


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search