﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » DataSourceKey Not Defined</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 18:07:25 GMT</lastBuildDate><ttl>20</ttl><item><title>DataSourceKey Not Defined</title><link>http://forum.strataframe.net/FindPost3182.aspx</link><description>&lt;FONT size=1&gt;&lt;P&gt;Hi Folks&lt;/P&gt;&lt;P&gt;I have a business object assembly that will provide data to a web site. I have everything wired up but when I run it, I get the following error. Where do I set the DataSourceKey? In the past, I have always put a connection string this in an App or Web Config and gone from there. I am obviously missing something simple.&lt;/P&gt;&lt;P&gt;"MicroFour.StrataFrame.Data.DataLayerException: An error occurred while creating a new DataLayer for the business object. ---&amp;gt; MicroFour.StrataFrame.Data.DataLayerException: The DataSourceKey [] is not defined.&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Fri, 29 Sep 2006 08:05:53 GMT</pubDate><dc:creator>Clayton Hoyt</dc:creator></item><item><title>RE: DataSourceKey Not Defined</title><link>http://forum.strataframe.net/FindPost3195.aspx</link><description>Yeah, that's it.&amp;nbsp; The base class is DbDataSourceItem, so sometimes my brain likes to add the Db in the class name...sorry for the confusion :hehe:</description><pubDate>Fri, 29 Sep 2006 08:05:53 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: DataSourceKey Not Defined</title><link>http://forum.strataframe.net/FindPost3189.aspx</link><description>Never Mind...found it under SqlDataSourceItem&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;:D</description><pubDate>Thu, 28 Sep 2006 16:17:52 GMT</pubDate><dc:creator>Clayton Hoyt</dc:creator></item><item><title>RE: DataSourceKey Not Defined</title><link>http://forum.strataframe.net/FindPost3188.aspx</link><description>ok...dumb question #2.:hehe:..where is the SqlDbDataSourceItem located? I've searched the object viewer, your documetation and the web and come up empty. I also looked for SqlDBDataSource which sounded familiar but no go on that one either.&lt;/P&gt;&lt;P&gt;Thanks!</description><pubDate>Thu, 28 Sep 2006 16:13:56 GMT</pubDate><dc:creator>Clayton Hoyt</dc:creator></item><item><title>RE: DataSourceKey Not Defined</title><link>http://forum.strataframe.net/FindPost3187.aspx</link><description>Sure.</description><pubDate>Thu, 28 Sep 2006 16:08:30 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: DataSourceKey Not Defined</title><link>http://forum.strataframe.net/FindPost3185.aspx</link><description>Thanks much!</description><pubDate>Thu, 28 Sep 2006 16:06:35 GMT</pubDate><dc:creator>Clayton Hoyt</dc:creator></item><item><title>RE: DataSourceKey Not Defined</title><link>http://forum.strataframe.net/FindPost3184.aspx</link><description>Yes.&amp;nbsp; You need to define this in the Application_Start method of the global.asax file.&amp;nbsp; You will just manually specify the data source:&lt;/P&gt;&lt;P&gt;MicroFour.StrataFrame.Data.Databasics.DataSources.Add(New SqlDbDataSourceItem("","Your connection string"))</description><pubDate>Thu, 28 Sep 2006 16:04:56 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>