StrataFrame Forum

Error when I try to access the BO's from PopulationDatasourcesetting

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

By sreddy - 9/15/2010

Hello All

I get the following error when I try to access the BO's from PopulationDatasourcesetting Property.

I followed others posts with similar type of error but was not able to figure out my error.

Thank you

Srujeet

DataLayerException

An error occurred while creating a new DataLayer for the business object.

DataLayerException

The DataSourceKey [] is not defined.

Source : MicroFour StrataFrame Business

Stack Trace:

at MicroFour.StrataFrame.Data.DataLayer.Create(BusinessLayer BusinessObject, ISynchronizeInvoke SyncObject, Boolean CheckDesignTime)

at MicroFour.StrataFrame.Business.BusinessLayer.CreateDataLayer()

at MicroFour.StrataFrame.Business.BusinessLayer.get__DataLayer()

at MicroFour.StrataFrame.Business.BusinessLayer.FillDataTable(DbCommand CommandToExecute)

at MicroFour.StrataFrame.Extensibility.BusinessObjects.DTEPreferencesBO.FillBySolutionName(String SolutionName)

at MicroFour.StrataFrame.Extensibility.BusinessObjects.DTEPreferencesBO.FillBySolutionName()

at MicroFour.StrataFrame.Extensibility.ExtensibilityBasics.GetMethodsOnTypeForListPopulation(String TypeFullName, IServiceProvider Provider, ListControl ComboToPopulate)

at MicroFour.StrataFrame.Extensibility.ListPopulationEditorDialog.ᜃ()

at MicroFour.StrataFrame.Extensibility.ListPopulationEditorDialog.ᜁ(Object A_0, EventArgs A_1)

By Greg McGuffey - 9/15/2010

Check that you set the DataSourceKey on the BO being used to populate the combo/list/listview.  Or be sure you have setup the data source used by the BO, typically in the SetDataSources method of Application.vb or program.cs (depending on language being used).