Mar
08
08
Data Directory for ACCESS Database in Web.Config
AppData or Data Directory for ACCESS Database or MDB file in Web.Config
I was facing issue with the database path in web.config file
It was something like this
<add key=”connectionstring” value=”provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\YourProject\Database.mdb;”/>
After searching thru internet, i found the solution for it. <add key=”connectionstring” value=”provider=Microsoft.Jet.OLEDB.4.0; Data Source=|DataDirectory|Database.mdb;”/> Hope this helps you. If yes, dont forget to put your comments below. I love it !!
There are no comments.