﻿<?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 » Role Based Security  » Business Object problem</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 16 Sep 2026 12:12:43 GMT</lastBuildDate><ttl>20</ttl><item><title>Business Object problem</title><link>http://forum.strataframe.net/FindPost5196.aspx</link><description>I just refreshed my Strataframe version last night due to various weirdnesses.&amp;nbsp; Now those weirdnesses are gone, but new weirdnesses&amp;nbsp;are showing up.&amp;nbsp; Of course, it could be just my own weirness, but nevertheless I need some help...&lt;P&gt;1. When I go through the Business Object Mapper and set it up as OLDEDB to access my VFP data, everything looks ok until I go to specify the data source.&amp;nbsp; The system "enumerates" data sources and comes up with this screen:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/f64aab37-419e-4cb8-9a66-c59e.jpg"&gt;&lt;/P&gt;&lt;P&gt;CPW.DBC is a VFP database, there is no CPW.DBC anywhere in my SQL Server,&amp;nbsp;yet Object Mapper SEEMS to think that this VFP DBC lives in my SQL server.&amp;nbsp; From here, I can move forward and see the VFP tables and fields just fine.&amp;nbsp; However, when I run the program and it tries to fill data table, I get this:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/c28be91f-9598-4f09-8040-f398.jpg"&gt;&lt;/P&gt;&lt;P&gt;And here's the error "dump":&lt;/P&gt;&lt;P&gt;System.ArgumentException was unhandled by user code&lt;BR&gt;&amp;nbsp; Message="Format of the initialization string does not conform to specification starting at index 0."&lt;BR&gt;&amp;nbsp; Source="System.Data"&lt;BR&gt;&amp;nbsp; StackTrace:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Data.Common.DbConnectionOptions.GetKeyValuePair(String connectionString, Int32 currentPosition, StringBuilder buffer, Boolean useOdbcRules, String&amp;amp; keyname, String&amp;amp; keyvalue)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(String connectionString, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions&amp;amp; userConnectionOptions)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlConnection.ConnectionString_Set(String value)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlConnection..ctor(String connectionString)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Data.SqlDataSourceItem.CreateBlankDbConnection()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Data.DbDataSourceItem.GetDataTable(DbCommand Command, OnChangeEventHandler CallBack)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Data.SqlDataSourceItem.GetDataTable(DbCommand Command, OnChangeEventHandler CallBack)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Data.DbDataSourceItem.GetDataTable(String Statement, OnChangeEventHandler CallBack)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Data.DataLayer.GetDataTable(String Statement, Boolean RegisterNotification)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Business.BusinessLayer.FillDataTable(String SelectStatement)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at CMBPermitsBOLibrary.CMBPermitsBO.FillTop100() in C:\StrataframeProjects\CMBPermitsBOLibrary\CMBPermitsBO.cs:line 55&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Editpage.Page_Load(Object sender, EventArgs e) in c:\StrataframeProjects\CMBpermits\Editpage.aspx.cs:line 16&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Web.UI.Control.OnLoad(EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Web.UI.Control.LoadRecursive()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)&lt;BR&gt;</description><pubDate>Tue, 12 Dec 2006 19:10:47 GMT</pubDate><dc:creator>Pertti Karjalainen</dc:creator></item><item><title>RE: Business Object problem</title><link>http://forum.strataframe.net/FindPost5257.aspx</link><description>[quote][b]Trent L. Taylor (12/12/2006)[/b][hr]Perrti,&lt;P&gt;We are always willing to listen to our users and improve our product.&amp;nbsp; Additionally, it is not our desire to spar with you over help topics.&amp;nbsp; If you feel something is missing within the help, we have a "Send Comments" link at the top right of every page to allow you to provide feedback.&amp;nbsp; Also, the word DataSourceKey does actually appear a number of times within the help topic.&amp;nbsp; Try searching on SecurityDataSourceKey and you will see all of the topics.&amp;nbsp;[/quote]&lt;P&gt;No, I'm not looking to spar at all, at times I get just a bit frustrated is all.&amp;nbsp; You guys are certainly very helpful and prompt with&amp;nbsp;helpful answers &amp;amp; handholding.&amp;nbsp;&lt;P&gt;Maybe a part of the problem also is my help file ("Strataframe 1.5.1")&amp;nbsp;-- I see no references whatsoever to SecurityDataSourceKey in Index or Search.&amp;nbsp; &lt;P&gt;Be that as it may, I will move forward and try to not bug you, at least&amp;nbsp;too much.&amp;nbsp; I feel that I have climbed most of the learning curve now, and I am actually becoming productive :w00t:, slowly but surely...&lt;P&gt;Thanks for all your help!&lt;P&gt;&amp;nbsp;&lt;P&gt;Pertti</description><pubDate>Tue, 12 Dec 2006 19:10:47 GMT</pubDate><dc:creator>Pertti Karjalainen</dc:creator></item><item><title>RE: Business Object problem</title><link>http://forum.strataframe.net/FindPost5251.aspx</link><description>[quote]If I may suggest, someone over there should create a web app from the very beginning, in C# and VBNet, using both SQL server and VFP data, and write down every last pertinent detail on every single step.&amp;nbsp; [/quote]&lt;/P&gt;&lt;P&gt;We have created a great many web applications using the framework (in both VB.NET and C#).&amp;nbsp; Many of the hurdles you have been trying to overcome are not SF related but simply having a broad understanding of web applications in .NET....which just comes with time and effort as you have been contributing.&lt;/P&gt;&lt;P&gt;As for the VFP tables, there is no reason for us to create a web sample in this respect as it is identical to doing something from the WinForms point of view.&amp;nbsp; &lt;/P&gt;&lt;P&gt;As you have learned, we are more than willing to help and&amp;nbsp;we in fact created and posted the C# web sample in the forum specifically for you so you could get started.</description><pubDate>Tue, 12 Dec 2006 16:40:47 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Business Object problem</title><link>http://forum.strataframe.net/FindPost5249.aspx</link><description>Perrti,&lt;/P&gt;&lt;P&gt;We are always willing to listen to our users and improve our product.&amp;nbsp; Additionally, it is not our desire to spar with you over help topics.&amp;nbsp; If you feel something is missing within the help, we have a "Send Comments" link at the top right of every page to allow you to provide feedback.&amp;nbsp; Also, the word DataSourceKey does actually appear a number of times within the help topic.&amp;nbsp; Try searching on SecurityDataSourceKey and you will see all of the topics.&amp;nbsp;</description><pubDate>Tue, 12 Dec 2006 16:36:45 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Business Object problem</title><link>http://forum.strataframe.net/FindPost5247.aspx</link><description>We will get a Getting Started tutorial done on the webforms side that matches what the VB.NET tutorial does.&lt;/P&gt;&lt;P&gt;You also might look at the training videos from &lt;A href="http://www.stratatrain.com"&gt;http://www.stratatrain.com&lt;/A&gt;... they contain almost all of the details that you're looking for.</description><pubDate>Tue, 12 Dec 2006 16:32:36 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Business Object problem</title><link>http://forum.strataframe.net/FindPost5238.aspx</link><description>Well, the help file at least I have is almost totally unhelpful on this topic.&amp;nbsp; Your instructions earlier in this message topic is what &lt;EM&gt;should&lt;/EM&gt; be in there.&amp;nbsp; The word "Datasourcekey" doesn't appear anywhere in the help file, not even in the GLOBAL.ASAX -topic.&amp;nbsp; Also, linked help topics &lt;EM&gt;Setting Data Sources Manually&lt;/EM&gt;&amp;nbsp;and &lt;EM&gt;Pulling the Connection String from the web.config File&lt;/EM&gt; lead to &lt;STRONG&gt;blank&lt;/STRONG&gt; pages.&lt;P&gt;If I may suggest, someone over there should create a web app from the very beginning, in C# and VBNet, using both SQL server and VFP data, and write down every last pertinent detail on every single step.&amp;nbsp; That's really the only way we poor users can get up-and-running quickly and without too much frustration.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pertti</description><pubDate>Tue, 12 Dec 2006 16:13:16 GMT</pubDate><dc:creator>Pertti Karjalainen</dc:creator></item><item><title>RE: Business Object problem</title><link>http://forum.strataframe.net/FindPost5237.aspx</link><description>No, it's not really a ".NET" thing... it's just the way StrataFrame is configured.&amp;nbsp; There is information within the help file on configuring your data sources within the Global.asax topic... &lt;P&gt;Application -&amp;gt; WebForms -&amp;gt; Global.asax File&lt;/P&gt;&lt;P&gt;Application -&amp;gt; WinForms -&amp;gt; AppMain.vb (program.cs) File -&amp;gt; SetDataSources()&lt;/P&gt;&lt;P&gt;I'm not sure why you couldn't locate anything when you searched for "DataSourceKey"... :ermm:</description><pubDate>Tue, 12 Dec 2006 16:02:26 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Business Object problem</title><link>http://forum.strataframe.net/FindPost5226.aspx</link><description>Ben,&lt;P&gt;Thank you for your help here.&amp;nbsp; I'm actually making some progress...&amp;nbsp; I&amp;nbsp;now have my "site" up again (well, if you can call it that when I have one read-only field with actual data coming in from a VFP table proudly displaying on my).&amp;nbsp; A huge step for a man, a minute step for a mankind...&amp;nbsp; &lt;/P&gt;&lt;P&gt;Of course, I could'a had my VFP form like this up in about 15 seconds.&amp;nbsp; And we call this progress?&amp;nbsp;&amp;nbsp;Granted, the VFP form by itself&amp;nbsp;would not display in a browser (unless you use Terminal Services, of course, which gives you web AND rich AND snappy user interface experience all at once -- now THAT's progress).&lt;/P&gt;&lt;P&gt;Is the below&amp;nbsp;explained in the manual?&amp;nbsp; I couldn't find any references for DataSourcekey even when I searched for the string itself in the help.&amp;nbsp; Heck, I couldn't even find the string "DataSourceKey" anywhere in my project.&amp;nbsp; This seems kind of a crucial step for those trying to get a web site with VFP data up and running, wouldn't you say?&amp;nbsp; Or is this .NET knowledge we oughta to know regardless?&lt;/P&gt;&lt;P&gt;[quote][b]Ben Chase (12/12/2006)[/b][hr]The first parameter of the VfpDataSourceItem constructor is not the OLE DB provider, it is the unique DataSourceKey that is used to identify the data source (a data source is synonymous with "connection string").&amp;nbsp; The second parameter is the actual connection string.&amp;nbsp; So, your code line to add the actual data source should look like this:&lt;/P&gt;&lt;P&gt;DataLayer.DataSources.Add(VfpDataSourceItem("", "Provider=VFPOLEDB;Data Source=C:\\CPW\\DATA\\CPW.DBC;"));&lt;/P&gt;&lt;P&gt;The first parameter should match the value that you place in the DataSourceKey property of your business objects.&amp;nbsp; This property on the business objects tells them what connection string to use when communicating with the database.&amp;nbsp; That property defaults to string.Empty (""), so that is why when you only have one data source, you leave the first parameter of the constructor as an empty string.[/quote]</description><pubDate>Tue, 12 Dec 2006 11:02:16 GMT</pubDate><dc:creator>Pertti Karjalainen</dc:creator></item><item><title>RE: Business Object problem</title><link>http://forum.strataframe.net/FindPost5221.aspx</link><description>Oh, and the connection string used within the BOMapper is only used to gather the structure information when the partial classes of the business objects are built.&amp;nbsp; It it not used at runtime.</description><pubDate>Tue, 12 Dec 2006 08:29:34 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Business Object problem</title><link>http://forum.strataframe.net/FindPost5220.aspx</link><description>The first parameter of the VfpDataSourceItem constructor is not the OLE DB provider, it is the unique DataSourceKey that is used to identify the data source (a data source is synonymous with "connection string").&amp;nbsp; The second parameter is the actual connection string.&amp;nbsp; So, your code line to add the actual data source should look like this:&lt;/P&gt;&lt;P&gt;DataLayer.DataSources.Add(VfpDataSourceItem("", "Provider=VFPOLEDB;Data Source=C:\\CPW\\DATA\\CPW.DBC;"));&lt;/P&gt;&lt;P&gt;The first parameter should match the value that you place in the DataSourceKey property of your business objects.&amp;nbsp; This property on the business objects tells them what connection string to use when communicating with the database.&amp;nbsp; That property defaults to string.Empty (""), so that is why when you only have one data source, you leave the first parameter of the constructor as an empty string.</description><pubDate>Tue, 12 Dec 2006 08:28:26 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Business Object problem</title><link>http://forum.strataframe.net/FindPost5208.aspx</link><description>Oh, and btw, it doesn't seem to matter what I do with global.asax, because I suppose object mapper overwrites it or something.&amp;nbsp; I've tried commenting out all datasources, uncommenting with and without parameters, etc.&amp;nbsp; No use.&lt;/P&gt;&lt;P&gt;Pertti</description><pubDate>Mon, 11 Dec 2006 18:17:37 GMT</pubDate><dc:creator>Pertti Karjalainen</dc:creator></item><item><title>RE: Business Object problem</title><link>http://forum.strataframe.net/FindPost5207.aspx</link><description>Hmmm...&amp;nbsp; I'm using the SF Object Mapper.&amp;nbsp; This is the screen sequence of my setup:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/4dd5b30d-b504-4ca4-850b-decb.jpg"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/f434d2bb-81cb-4796-b86d-dd85.jpg"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/be7d722e-697c-4ced-945e-a7a9.jpg"&gt;&lt;/P&gt;&lt;P&gt;Here's how I set up my global.asax:&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&amp;lt;%&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;@&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;Application&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;Language&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;="C#"&lt;/FONT&gt;&lt;FONT size=2&gt; %&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;%&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;@&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;Import&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;Namespace&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;="MicroFour.StrataFrame.Data"&lt;/FONT&gt;&lt;FONT size=2&gt;%&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;script&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;runat&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;="server"&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; Application_Start(&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Object&lt;/FONT&gt;&lt;FONT size=2&gt; sender, &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;EventArgs&lt;/FONT&gt;&lt;FONT size=2&gt; e) {&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;// Code that runs on application startup&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;// ToDo: 1) Manually set the DataSourceItems on the DataSources collection below.&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;// -- You can set as many data sources as necessary. The business objects use the data source specified&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;// by their DataSourceKey property (defaults to "").&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;//------------------------------------&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;// Setting the data sources manually&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;//------------------------------------&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;//-- SQL Server&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;//DataLayer.DataSources.Add(new SqlDataSourceItem("", "myconnectionstring"));&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;//-- Oracle&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;//DataLayer.DataSources.Add(new OracleDataSourceItem("", "myconnectionstring"));&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;//-- Microsoft Access&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;//DataLayer.DataSources.Add(new AccessDataSourceItem("", "myconnectionstring"));&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;//-- Visual Fox Pro&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;DataLayer&lt;/FONT&gt;&lt;FONT size=2&gt;.DataSources.Add(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;VfpDataSourceItem&lt;/FONT&gt;&lt;FONT size=2&gt;(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"VFPOLEDB"&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"C:\\CPW\\DATA\\CPW.DBC"&lt;/FONT&gt;&lt;FONT size=2&gt;));&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;//Provider=VFPOLEDB;Data Source=C:\MyVfpPath\CPW.DBC; &lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;//-- Set the localization information for the website&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;MicroFour.StrataFrame.UI.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Localization&lt;/FONT&gt;&lt;FONT size=2&gt;.MessageDataSourceKey = &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;""&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;/P&gt;&lt;P&gt;MicroFour.StrataFrame.UI.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Localization&lt;/FONT&gt;&lt;FONT size=2&gt;.MessageLocaleID = 1033;&lt;/P&gt;&lt;P&gt;MicroFour.StrataFrame.UI.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Localization&lt;/FONT&gt;&lt;FONT size=2&gt;.MessageKeyType = MicroFour.StrataFrame.Messaging.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;MessageKeyDataType&lt;/FONT&gt;&lt;FONT size=2&gt;.SqlServer;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; Application_End(&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Object&lt;/FONT&gt;&lt;FONT size=2&gt; sender, &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;EventArgs&lt;/FONT&gt;&lt;FONT size=2&gt; e) {&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;// Code that runs on application shutdown&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; Application_Error(&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Object&lt;/FONT&gt;&lt;FONT size=2&gt; sender, &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;EventArgs&lt;/FONT&gt;&lt;FONT size=2&gt; e) { &lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;// Code that runs when an unhandled error occurs&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; Session_Start(&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Object&lt;/FONT&gt;&lt;FONT size=2&gt; sender, &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;EventArgs&lt;/FONT&gt;&lt;FONT size=2&gt; e) {&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;// Code that runs when a new session is started&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; Session_End(&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Object&lt;/FONT&gt;&lt;FONT size=2&gt; sender, &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;EventArgs&lt;/FONT&gt;&lt;FONT size=2&gt; e) {&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;// Code that runs when a session ends. &lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;// Note: The Session_End event is raised only when the sessionstate mode&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;// is set to InProc in the Web.config file. If session mode is set to StateServer &lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;// or SQLServer, the event is not raised.&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;}&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;script&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Mon, 11 Dec 2006 18:14:47 GMT</pubDate><dc:creator>Pertti Karjalainen</dc:creator></item><item><title>RE: Business Object problem</title><link>http://forum.strataframe.net/FindPost5205.aspx</link><description>When you uncommented the VFP data source item, did you change the connection string?&amp;nbsp; By default it just says "myconnstring"...&amp;nbsp;it needs to be something like this:&lt;/P&gt;&lt;P&gt;Provider=VFPOLEDB;Data Source=C:\MyVfpPath\CPW.DBC;</description><pubDate>Mon, 11 Dec 2006 17:29:17 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Business Object problem</title><link>http://forum.strataframe.net/FindPost5204.aspx</link><description>This is a C# Web application.&amp;nbsp; I looked at the global.asax -file and commented out SQL and uncommented VFP.&amp;nbsp; Still experiencing the same *&amp;amp;#*$&amp;amp; problem...</description><pubDate>Mon, 11 Dec 2006 17:02:20 GMT</pubDate><dc:creator>Pertti Karjalainen</dc:creator></item><item><title>RE: Business Object problem</title><link>http://forum.strataframe.net/FindPost5201.aspx</link><description>The problem is that your application was configured to use an SQL connection.&amp;nbsp; Either the SQL connection string was the only one added to your application, or you have both an SQL connection and a VFP connection and your business object is pointing at the wrong one.&amp;nbsp; Within the SetDataSources() method of the AppMain.vb file, check to make sure that the AddRequiredDataSource() method call is not adding a SQL connection.&amp;nbsp; If you're setting the connection manually, then make sure you add a VfpDataSourceItem to the collection, not a SqlDataSourceItem.&amp;nbsp; If you have both a SQL connection and a VFP connection, you need to set the DataSourceKey property on your business object to point to the VFP connection, not the SQL connection.</description><pubDate>Mon, 11 Dec 2006 16:43:29 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>