StrataFrame Forum

Error with DataSourceKey on Client

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

By Terry Bottorff - 5/17/2013

Please Find attached 3 pictures. Error is the error I am experience on Client Machine. AppMain shows what is found in my AppMain.vb and BOProperties shows how the BO's properties is set for that specific BO.

What have I missed. Never experienced this error before. Could I maybe delete some files and have them rebuilt?

TIA.
By Terry Bottorff - 5/17/2013

Op's forgot attaching pictures.
By StrataFrame Team - 5/20/2013

Sorry for the delay, Terry, I've been out of town.  Did you make a call to ConnectionManager.SetConnections() in AppMain?  That is what actually populates the DataSources collection.  The AddRequiredDataSourceItem doesn't actually add a data source to the DataSources collection; it just tells the ConnectionManager that it needs to collect information on the RodeoCheck2 data source when .SetConnections() is called.
By Terry Bottorff - 5/24/2013

I am sorry for my delay. I was traveling also. After I did the install I ran the application and it asked me to pick the sql server instance and the data file. That all went well. When I tried to run one of my forms is when it gives me the error message....
By StrataFrame Team - 5/28/2013

Put a breakpoint in your AppMain.vb file right after the ConnectionManager.SetConnections().  When you hit that breakpoint, put MicroFour.StrataFrame.Data.DataBasics.DataSources in the watch window and see what's in it.  You should be able to expand the collection and view the data sources that are in the collection.  If not, you can put MicroFour.StrataFrame.Data.DataBasics.DataSources(0).DataSourceKey to see the first one, MicroFour.StrataFrame.Data.DataBasics.DataSources(1).DataSourceKey to see the second one and so forth.
By Terry Bottorff - 5/28/2013

I'll try it soon and let you know. Thank you so much.
By Terry Bottorff - 5/28/2013

Ok the attached is what I get as the datasource which is correct. But this is on my development machine and the project runs fine on it. But how do I check this on my clients machine where I get the error?

TIA