Solved

format of the initialization string does not conform to specification starting at index 0

Posted on 2009-05-10
3
654 Views
Last Modified: 2013-11-26
I'm trying to create a connection to a microsoft access database file (.mdb) in my App_Data folder.  When I go to the solution explorer and try to create a new connection, I click the change button and select Microsoft Access Database File.  The next screen prompts me to enter the connection string manually, but I continue to get the error "format of the initialization string does not conform to specification starting at index 0"

See the attached screeshot of the screen where I have to manually enter the connection string.

Any ideas what the problem is?

Thanks.
screenshot.png
0
Comment
Question by:-Dman100-
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
drypz earned 500 total points
ID: 24352477
Hi! Have you tried to change your connection string? something like

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\RGN.mdb;User Id=admin;Password=;

You can change the Data Source where your db located.
0
 

Author Comment

by:-Dman100-
ID: 24354006
Hi drypz,

I tried modifying the connection string and adding the full path to the access database:

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Dwayne\My Documents\Visual Studio 2008\Projects\Sample Code\Projects\Web Apps\ConfigureLocalAccessConnection\App_Data\RGN.mdb;User Id=admin;Password=;

I still got the same error message.
0
 
LVL 13

Expert Comment

by:drypz
ID: 24361821
Hi! Try to download and install the latest MDAC version from microsoft.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question