Key not valid for use in specified state.
My ability to add data connections or data sources recently left. I cannot view a dataset in designer in previously created projects. I cannot create a new data connection in a new project. I don't know what's going on. I tried repairing the current installation. Then I tried uninstalling and reinstalling. Neither worked. Has anyone seen this before?
Neal
[372 byte] By [
chakka77] at [2007-12-28]
chakka77,
I suppose you're using the VS.NET 2005. Do you mean you cannot find the DataSet control in your ToolBox? Here is the way:
In your ToolBox, open Data item, right click the mouse, in the menu, click Choose Items... option, you will see a a DialogBox named Choose Toolbox Items with two panels: .NET Framwork Components and COM Components. In the .NET Framwork Components panel, find and click to choose the DataSet control and some other controls.
If you are using the SQL Server database, I recommand you to choose the SqlCommand, SqlDataAdapter, SqlConnection and DataGrid controls, too. In the properties window, you can set the configuration for your database connection and manipulation convieniently.
Any problems? Please reply me and waiting for your reply :-)
I'm don't have a "key not valid" message or anything like that, but I am experiencing the same problem of not having the DataSet tool available in the Toolbox. I go to Choose Toolbox Items, and DataSet is already checked, but it is not available for me. If I do a show all, I see it, but it is greyed out. It is not available to me in Source mode (and obviously not in Design mode either), but it does become available in the code behind (C#). I am at a loss. Should I reinstall?
Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727
Installed Edition: Professional
Jim Taylor,
I am sorry to hear about your problem. However, it is not the VS2005's fault because I use the same edition with you and the DataSet control can be shown in the Toolbox and work normally. Certainly it is neccessary to add by chooseing item for your toolbox. I suggest you to install the SP1 for Visual Studio 2005, then just have a look at the change.
I hope your DataSet control problem has been sovled :-)
Actually it is not so important shown on the Toolbox if your DataSet object works fine when you use it to access database when munipulating your memory data.
After adding a datagridview control to a form and while choosing data source i m getting the following error
"key not valid for use in specified state "
but the same thing is working fine in other sytem,
is this the problem with the visual studio
i m using vs2005