Solved

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

Posted on 2009-05-10
3
662 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-
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

751 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