SF BO throws DataAccessLayerException when Accessed any method of the BusinessObject.


SF BO throws DataAccessLayerException when Accessed any method of the...
Author
Message
Vikram Saxena
Vikram Saxena
StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)
Group: Forum Members
Posts: 41, Visits: 99
Dear All,

i am using Starta Frame on my machine. everything is running quite well on machine. Our one more developer is also working on the same project as i am. but when he started the project on his machine a DataAccessLayer Exception is being thrown on his machine with the message that "An error occurred whuke creating a new DataLayer for the Business object." The inner exception is null. The other information i found for exception is "DataSourceKey [] is not defined."

please tell me whats the wrong happening here?

my code is in C# and SetDataSource event handler for the StartaFrame.SetDataSource event is as follows (present in program.cs)

static void StrataFrameApplication_SetDataSources()

{

ConnectionManager.ApplicationKey = "ISOCOM Key";

ConnectionManager.ApplicationDefaultTitle = "ISOCOM Connection";

ConnectionManager.ApplicationDefaultDescription = "This application connection is used by ISOCOM";

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

// SQL Connection

ConnectionManager.AddRequiredDataSourceItem("ISOCOM Key", "SQL Connection", DataSourceTypeOptions.SqlServer, "ISOCOM", "This connection is used by MyApplication.", true);

////SQL Connection

//// Make the call to SetConnections which will gather the connection information, show the connection wizard

//// if needed and set the DataSources collection on the DataLayer class.

ConnectionManager.SetConnections();

}


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Vikram Saxena - 18 Years Ago
StrataFrame Team - 18 Years Ago
Fabian R Silva, - - 17 Years Ago
             StakTrace:

en...
Fabian R Silva, - - 17 Years Ago
StrataFrame Team - 17 Years Ago
                     Hello, thanks for reply

I tested everything....except set 1...
Fabian R Silva, - - 17 Years Ago
                         about question #4 the post...
Fabian R Silva, - - 17 Years Ago
                         Forgive about the popup that appears when I run the project, I forgive...
Fabian R Silva, - - 17 Years Ago
                             1) A data source with a DataSourceKey of "" is not required, but...
StrataFrame Team - 17 Years Ago
                                 3) Yes, the manual option allows you to retrieve the connection string...
Fabian R Silva, - - 17 Years Ago
                                     I'm glad you got that working. :) As for the calculated fields, we...
StrataFrame Team - 17 Years Ago
                                         Ben, thanks for all the feedback and support, I´m a newbie on .net and...
Fabian R Silva, - - 17 Years Ago
                                             We'll you'll never learn unless you're shown or you ask questions. So,...
StrataFrame Team - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search