web.config
-
I m uploading my website with access database..........database is already stored in App_Data folder and i m giving the path like:-
Data Source=|Data Directory|\db.mdb
but its not running........its giving me error after uploading server...i tried to find out on internet...some used global.asa and cache.........whts the right way.............plz guide me a bit....:)
-
I m uploading my website with access database..........database is already stored in App_Data folder and i m giving the path like:-
Data Source=|Data Directory|\db.mdb
but its not running........its giving me error after uploading server...i tried to find out on internet...some used global.asa and cache.........whts the right way.............plz guide me a bit....:)
I can't make head or tails of this. Did you fail to mark your post to not parse HTML tags, and actually post a web.config file ? It's usually wise to tell us what the error message is, instead of asking us to guess.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
I can't make head or tails of this. Did you fail to mark your post to not parse HTML tags, and actually post a web.config file ? It's usually wise to tell us what the error message is, instead of asking us to guess.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
I mean to say........wht should be connection string in web.config in case of access database when i m stroing database in App_Data folder
-
I mean to say........wht should be connection string in web.config in case of access database when i m stroing database in App_Data folder
what abbout
DataSource=~/App_Data/ASPNetDB.mdb
;)Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
I m uploading my website with access database..........database is already stored in App_Data folder and i m giving the path like:-
Data Source=|Data Directory|\db.mdb
but its not running........its giving me error after uploading server...i tried to find out on internet...some used global.asa and cache.........whts the right way.............plz guide me a bit....:)
-
Abhijeet is right..!
KhandelwalA wrote:
Data Source=|Data Directory|\db.mdb
Y dont U use this It may help
dbconn=New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;
data source=" & server.mappath("northwind.mdb"))If It Helps Click It as Answer
sashidhar, This is correct ! But I guess, this code is applicable for CS file not in web.config. This is not good to provided hardcoded ConnectionString in Code. :)
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
sashidhar, This is correct ! But I guess, this code is applicable for CS file not in web.config. This is not good to provided hardcoded ConnectionString in Code. :)
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
I m uploading my website with access database..........database is already stored in App_Data folder and i m giving the path like:-
Data Source=|Data Directory|\db.mdb
but its not running........its giving me error after uploading server...i tried to find out on internet...some used global.asa and cache.........whts the right way.............plz guide me a bit....:)
[Message Deleted]
-
[Message Deleted]
I think this is code useful for u
Sure It's work prabhakar......
modified on Saturday, September 19, 2009 4:29 AM