﻿<?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 » Issues  » Connection string  using "DataDirectory"</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 05:51:03 GMT</lastBuildDate><ttl>20</ttl><item><title>Connection string  using "DataDirectory"</title><link>http://forum.strataframe.net/FindPost10659.aspx</link><description>I am creating a windows application using strateframe, In my app config i am using connection string. however I am not able to use that same connection string with strateframe, its is not able fetch data and receiving exception as data out of bound,index -1.&lt;br&gt;
&lt;br&gt;
Connection string I am using is &lt;br&gt;
&lt;br&gt;
connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\App_Data\ISOCOM.mdf;Integrated Security=True;User Instance=True;"&lt;br&gt;
&lt;br&gt;
Also let me know as if i can use "DataDirectory" in my connection string to access data  through strateframe. As I am facing this issue after  changing connection string in above format. &lt;br&gt;
&lt;br&gt;
waiting for early response, Thx in advance.</description><pubDate>Thu, 02 Aug 2007 09:31:19 GMT</pubDate><dc:creator>Vikram Saxena</dc:creator></item><item><title>RE: Connection string  using "DataDirectory"</title><link>http://forum.strataframe.net/FindPost10677.aspx</link><description>I am a bit confused about what you are trying to accomplish.&amp;nbsp; I don't see any reason that your connection will not work.&amp;nbsp; But StrataFrame does not use the connection strings in the app.config file.&amp;nbsp; You can pull them from there if you would like, but all connections in SF have to be added to the DataSources collection.&lt;/P&gt;&lt;P&gt;[codesnippet]MicroFour.StrataFrame.Data.Databasics.DataSource.Add(New SqlDataSourceItem("","Your Connection String"))[/codesnippet]</description><pubDate>Thu, 02 Aug 2007 09:31:19 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>