TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Vikram
1.5k
276
308.4k
Connection failed with MS Access on Hosting server
Oct 13 2011 2:44 AM
Hi,
I am using MS Access as database for web site. To create connection string I used following code.
string dppath="";
OleDbConnection MSAConn;
dbPath = HttpContext.Current.Server.MapPath("~");
dbPath = dbPath + "\\App_Data\\dbname.accdb";
MSAConn = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0; Data Source=" + dbPath + ";");
Also I have tried ...
MSAConn = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0; Data Source=" +
HttpContext.Current.Server.MapPath("\App_Data\dbname.accdb") + ";");
These both connection string doesn't work . I am hosting this application on Shared Hosting Server.
Any help appreciated.
Regards,
Vikram
Reply
Answers (
3
)
Draw Dynamic Circle Over Image in ASP.Net Webforms
I would like to read records from QuickBook POS with C#?