O’ project, where art thou?

September 14, 2006

If you have been using Visual Studio 2005 and data adapters in the designer, I bet the following error message have caused you quite a lot of grief:

“Could not retrieve the current project”

Some days ago, I found a solution that seems to work every time: select the data adapter in the designer, bring up its property page, edit the connection string, and then change it back again, and voila – the missing project is back! I suspect that it is not the connection string itself that does the magic, but rather that I am configuring some other component that probably is in a more “stable” state, and hence is able to restore whatever link that has been lost to the current project.



  1. This didn’t work for me, although adding a new data adapter to the designer sorted out the adapter I was having problems with.

  2. Thanks. It works in VS2008 also.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: