Error adding an OleDb Data Connection to Visual Studio Server Explorer

The error I'm getting when setting up an OleDB connection to an Access database* via the Server Explorer in Visual Studio 2008 is Incorrect Add Connection screen'Format of the initialization string does not conform to specification starting at index 0'. The screen doesn't display the way it should be displayed, as you can see in the screenshot on the left.

There is a possible fix at svenM's blog (it's about checking the existence of a key in the registry called 'ProgID' and the default value, as you can read in this article), but this doesn't seem to work for my situation.
It took me some time trying lots of  'possible fixes' (like the registry change, attempts to (re-)install mdac, uninstalling and installing Visual Studio, and so on) . None of them helped. I even went through all four pages of this lengthy thread, but to no avail. The only thing I haven't tried yet is the most rigorous solution: format the disk and start with a fresh install.

I'm getting annoyed over here..., if you have any tips: let me know.



* I won't go in to whether an Access file is or is not a database ;). And although I generally wouldn't consider Access as the database solution for an important business application, I do think it does have its pro's in specific scenarios, like for a relative small web application.

Published Thu, Mar 27 2008 9:54 PM by Rick van den Bosch
Filed under: , ,

Comments

# re: Error adding an OleDb Data Connection to Visual Studio Server Explorer

Thanks for this.  Like you I was having terrible problems but svenM's reg fix cured it.  I already had a key called VersionIndependantProgID but I went ahead and added the ProgID as recommended and everything worked.

Wednesday, April 30, 2008 6:07 PM by Mike VE

# re: Error adding an OleDb Data Connection to Visual Studio Server Explorer

I don't know if you managed to get this working or not, but svenM's article maybe a bit misleading.

He says if you have the ProgID key you don't have the same problem has him, but the value of the key could be wrong, wich was my case. And don't forget to restart VS after you change the registry.

Hope it helps

Tuesday, September 02, 2008 4:14 PM by Pedro Costa

# re: Error adding an OleDb Data Connection to Visual Studio Server Explorer

Thanks for this.  I was having the same problem when trying to connect to an Access DB file and svenM's reg fix cured it.  I already had a key called VersionIndependantProgID but I went ahead and added the ProgID as recommended and everything worked. Thanks for your post.

Thursday, November 20, 2008 6:53 AM by Timothy Mburu

# re: Error adding an OleDb Data Connection to Visual Studio Server Explorer

I changed by ProgID key from MSIDXS.1 to MSIDX and it worked for me.

Thursday, December 10, 2009 3:41 AM by Traci

Leave a Comment

(required) 
(required) 
(optional)
(required) 
Please add 1 and 4 and type the answer here: