troubleshooting Question

Connection error

Avatar of ayha1999
ayha1999 asked on
.NET ProgrammingC#ASP.NET
8 Comments2 Solutions424 ViewsLast Modified:
Hi,

When I try to connect to an access 2007 db from a c# 2010 windows application, I get the follwoing error.

code:
 OleDbConnection cn = new OleDbConnection ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:myDb.mdb;User Id=admin;Password=;");

error:

{"Format of the initialization string does not conform to specification starting at index 56."}

how can I fix this error?

thanks

ayha
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros