<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Access Databases and AccessDataSource Control</title><link>http://forums.asp.net/55.aspx</link><description>Discuss using Access as a data store for ASP.NET, and the AccessDataSource control.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: VS 2005 Datagrid and MS Access</title><link>http://forums.asp.net/thread/3269326.aspx</link><pubDate>Wed, 01 Jul 2009 15:52:58 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3269326</guid><dc:creator>hans_v</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3269326.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3269326</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;It looks good, and since it is working on your local machne, the only thing I can think of is still a permisions issue....&lt;/p&gt;</description></item><item><title>Re: VS 2005 Datagrid and MS Access</title><link>http://forums.asp.net/thread/3269263.aspx</link><pubDate>Wed, 01 Jul 2009 15:24:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3269263</guid><dc:creator>dcjohnston</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3269263.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3269263</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You are correct Hans, I did not see your post, thanks for the reply,&lt;/p&gt;
&lt;p&gt;I checked my permissions and added the IUSR account and also the ASPNET account. Still not working. &lt;/p&gt;
&lt;p&gt;To test this problem I created a basic web project with a simple database with 10 lines of data. ( to test timing out)&lt;/p&gt;
&lt;p&gt;I created a&amp;nbsp;website project and dragged a gridview to the form. Added the access database to the APP_Data folder.and selected two fields from the table (tblApps)&amp;nbsp;in the database. &lt;/p&gt;
&lt;p&gt;Ran it locally and the grid loaded with the data. See code of the page below. &lt;/p&gt;
&lt;p&gt;If I run this from ANY webserver no good. Very odd.&lt;/p&gt;&lt;pre class="vb.net" name="code"&gt;&amp;lt;%@ Page Language=&amp;quot;VB&amp;quot; AutoEventWireup=&amp;quot;false&amp;quot; CodeFile=&amp;quot;Default.aspx.vb&amp;quot; Inherits=&amp;quot;_Default&amp;quot; %&amp;gt;

&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;

&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; &amp;gt;
&amp;lt;head runat=&amp;quot;server&amp;quot;&amp;gt;
    &amp;lt;title&amp;gt;Untitled Page&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
    &amp;lt;div&amp;gt;
        &amp;lt;asp:GridView ID=&amp;quot;GridView1&amp;quot; runat=&amp;quot;server&amp;quot; AutoGenerateColumns=&amp;quot;False&amp;quot; DataSourceID=&amp;quot;AccessDataSource1&amp;quot;&amp;gt;
            &amp;lt;Columns&amp;gt;
                &amp;lt;asp:BoundField DataField=&amp;quot;CompName&amp;quot; HeaderText=&amp;quot;CompName&amp;quot; SortExpression=&amp;quot;CompName&amp;quot; /&amp;gt;
            &amp;lt;/Columns&amp;gt;
        &amp;lt;/asp:GridView&amp;gt;
        &amp;lt;asp:AccessDataSource ID=&amp;quot;AccessDataSource1&amp;quot; runat=&amp;quot;server&amp;quot; DataFile=&amp;quot;~/App_Data/InstalledApps.mdb&amp;quot;
            SelectCommand=&amp;quot;SELECT DISTINCT [CompName] FROM [tblApps]&amp;quot;&amp;gt;&amp;lt;/asp:AccessDataSource&amp;gt;
    
    &amp;lt;/div&amp;gt;
    &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: VS 2005 Datagrid and MS Access</title><link>http://forums.asp.net/thread/3269007.aspx</link><pubDate>Wed, 01 Jul 2009 13:26:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3269007</guid><dc:creator>hans_v</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3269007.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3269007</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;dcjohnston:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Correct me if I am wrong but the app runs on the server as ASPNET and thus ASPNET should have access to see the database correct?&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That depands. I don&amp;#39;t think you read the link I provided:&lt;/p&gt;
&lt;p&gt;&amp;quot;for XP Pro machines, the user is the ASPNET account. On Windows Server 2003, 2008 and Vista, it is the NETWORK SERVICE account. However, if you have ASP.NET Impersonation enabled, the user account will be IUSR_machinename.&amp;quot;&lt;/p&gt;</description></item><item><title>Re: VS 2005 Datagrid and MS Access</title><link>http://forums.asp.net/thread/3268994.aspx</link><pubDate>Wed, 01 Jul 2009 13:22:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3268994</guid><dc:creator>dcjohnston</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3268994.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3268994</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks Ramir,&lt;/p&gt;
&lt;p&gt;However, I am not sure where to find the connection string. Well let me restate, I am using the query builder in VS2005 and under the connectionstrings tag in the web.config there is nothing under it (see below.) &amp;nbsp;The app works fine locally. The timeout without error may be a problem but of course locally it does not take that long. &lt;/p&gt;
&lt;p&gt;Correct me if I am wrong but the app runs on the server as ASPNET and thus ASPNET should have access to see the database correct? Given that, the only issue could be when I run this app locally it runs under my credentials and I have access to the database. &lt;/p&gt;
&lt;p&gt;This is really confusing me&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;configuration&amp;gt;&lt;br /&gt;	&amp;lt;appSettings/&amp;gt;&lt;br /&gt;	&amp;lt;connectionStrings/&amp;gt;&lt;br /&gt;	&amp;lt;system.web&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: VS 2005 Datagrid and MS Access</title><link>http://forums.asp.net/thread/3268971.aspx</link><pubDate>Wed, 01 Jul 2009 13:11:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3268971</guid><dc:creator>hans_v</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3268971.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3268971</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;ramireddyindia:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;It May be the query is taking more time&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;90 seconds for a simple query? &lt;/p&gt;</description></item><item><title>Re: VS 2005 Datagrid and MS Access</title><link>http://forums.asp.net/thread/3268969.aspx</link><pubDate>Wed, 01 Jul 2009 13:10:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3268969</guid><dc:creator>hans_v</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3268969.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3268969</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;dcjohnston:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I have given ASPNET access to the folder &lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What kind of access? You need so set MODIFY permissions&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.mikesdotnetting.com/Article.aspx?ArticleID=74"&gt;http://www.mikesdotnetting.com/Article.aspx?ArticleID=74&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also, could you post your HTML markup and code?&lt;/p&gt;</description></item><item><title>Re: VS 2005 Datagrid and MS Access</title><link>http://forums.asp.net/thread/3267764.aspx</link><pubDate>Wed, 01 Jul 2009 02:19:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3267764</guid><dc:creator>ramireddyindia</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3267764.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3267764</wfw:commentRss><description>&lt;p&gt;It May be the query is taking more time, increase the command timeout property of the oledb command, &lt;/p&gt;&lt;p&gt;and also it may be connection string issue also, check the below link for connection strings.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;http://www.connectionstrings.com/access&lt;/p&gt;</description></item><item><title>VS 2005 Datagrid and MS Access</title><link>http://forums.asp.net/thread/3267305.aspx</link><pubDate>Tue, 30 Jun 2009 19:10:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3267305</guid><dc:creator>dcjohnston</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3267305.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=55&amp;PostID=3267305</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;OK, this should be simple,&lt;/p&gt;
&lt;p&gt;I have written a very simple web page with a gridview that uses an access database. This page works fine on the workstation that I am working on, but if I publish it to the ASP.NET 2.0 supported IIS webserver the gridview will not load the data. &lt;/p&gt;
&lt;p&gt;No errors, it just times out after 90 seconds or so. &lt;/p&gt;
&lt;p&gt;I have the Access database in the App_data folder and all rights are good on the server. &lt;/p&gt;
&lt;p&gt;Is it possible the Access database is invisible to the form on the client workstation? I have given ASPNET access to the folder and I even published to the root of the website ( c:\inetpub\wwwroot)&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;Dave&lt;/p&gt;</description></item></channel></rss>