You are correct Hans, I did not see your post, thanks for the reply,
I checked my permissions and added the IUSR account and also the ASPNET account. Still not working.
To test this problem I created a basic web project with a simple database with 10 lines of data. ( to test timing out)
I created a 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) in the database.
Ran it locally and the grid loaded with the data. See code of the page below.
If I run this from ANY webserver no good. Very odd.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="AccessDataSource1">
<Columns>
<asp:BoundField DataField="CompName" HeaderText="CompName" SortExpression="CompName" />
</Columns>
</asp:GridView>
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/InstalledApps.mdb"
SelectCommand="SELECT DISTINCT [CompName] FROM [tblApps]"></asp:AccessDataSource>
</div>
</form>
</body>
</html>