Adding Data Source Error: Key Not Valid For Use In Specified State

G

Guest

I'm getting the following error when trying to add a Data Source to a brand
new project: "Key not valid for use in specified state". I've created a new
Windows Application project. I go to the Data menu and choose 'Add New Data
Source...'. I select 'Database' and hit the Next button, then get the error.
If I choose 'Web Service' or 'Object' as the data source I do not get the
error.

How can I correct this problem?

Thanks,
Mike
 
K

Kevin Yu [MSFT]

Hi Mike,

After you clicked the Next button, the wizard is trying to get a list of
all the database connections in the DataConnections List. I suggest you try
the following:

1. Select View/Server Explorer from the main menu.
2. In the DataConnections, you will see a list of available data
connections. Remove all of them by right clicking on one connection and
select Remove from the popup menu.

Then try to use the add datasource wizard again to see if it is working
fine. HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
G

Guest

Thank you. I was able to get past this problem by deleting all Data
Connections from the Server Explorer.

Mike
 
K

Kevin Yu [MSFT]

You're welcome. It was nice to hear that you have had the problem resolved.
Thanks for sharing your experience with all the people here. If you have
any questions, please feel free to post them in the community.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top