Not connecting to Access Database


#1

I’m trying to connect my asp.net site to database.

http://exiled.gearhostpreview.com/WebForm1.aspx

Database is on /site/wwwroot/App_Data/Exiled.mdb

<asp:SqlDataSource ID=“SqlDataSource” runat=“server” ConnectionString=“Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\home\App_Data\Exiled.mdb” ProviderName=".NET Framework Data Provider for OLE DB" SelectCommand=“SELECT DISTINCT * FROM [Title] WHERE ([ID] = ?)”>

Am I missing something?


#2

Try with the pathing as

C:\home\site\wwwroot\App_Data\Exiled.mdb


#3

Hi Robert,

It’s still the same error, but I’ve been thinking about trying Core, so let’s not spend more time here and I’ll let you know if I run into any troubles once I’ve got a database going with Core… something tells me it’ll be the same issue though :wink: