crajan
08-16-2006, 01:23 AM
I have converted the personal web site starter kit to use the Access database.
My question is, in 2005, the database is kept in the App_Data folder, while on discountasp.net, the folder for your database should be "_database"...
I have not figured out a way to configure the connection string in web.config to point to the right place.
The default connection string is:
<add name="Personal" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|personal.mdb;" providerName="System.Data.OleDb"/>
<add name="PersonalAccessProvider" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|ASPNetDB.mdb" providerName="System.Data.OleDb"/>
and the |DataDirectory| points to App_Data.
I have not seen a way in 2005 to use Server.Mappath, or any other explicit way to code the path for the custom location.
Has anyone come accross this? And how do you configure it?
I just want to configure the connection strings to point to the databases in the _database folder....
My question is, in 2005, the database is kept in the App_Data folder, while on discountasp.net, the folder for your database should be "_database"...
I have not figured out a way to configure the connection string in web.config to point to the right place.
The default connection string is:
<add name="Personal" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|personal.mdb;" providerName="System.Data.OleDb"/>
<add name="PersonalAccessProvider" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|ASPNetDB.mdb" providerName="System.Data.OleDb"/>
and the |DataDirectory| points to App_Data.
I have not seen a way in 2005 to use Server.Mappath, or any other explicit way to code the path for the custom location.
Has anyone come accross this? And how do you configure it?
I just want to configure the connection strings to point to the databases in the _database folder....