473,226 Members | 1,496 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,226 software developers and data experts.

critical error with typed dataset Key not valid for use in specifiedstate

vs2005 final release, um, i can't open my typed dataset, I am getting
unhelpful error. I could not find any info on it on newsgroups or web
sites. anyone know of a solution? Seems to be something with getting
the connection string, I do seem to have one in my settings file.

of course this is extremely inconvenient because I put a lot of work
into this dataset. this is another reason why I am not convinced of all
these useful wizards and gi tools - yeah they save you time in the short
term, but do they really in the long term? Sorry, I digress. If
someone has a way out of this, please let me know before I redo 5 or so
hours worth of code. Thanks. Here is the error:
One or more errors encountered while loading the designer. The errors
are listed below. Some errors can be fixed by rebuilding your project,
while others may require code changes.

Key not valid for use in specified state.

at Microsoft.VisualStudio.Data.DataProtection.Decrypt String(String s)
at
Microsoft.VSDesigner.VSDesignerPackage.AppSettings Helper.AddServerExplorerConnections(IServiceProvid er
serviceProvider, IList connections)
at
Microsoft.VSDesigner.VSDesignerPackage.GlobalConne ctionService.Microsoft.VSDesigner.VSDesignerPackag e.IGlobalConnectionService.GetConnections(IService Provider
serviceProvider, Project project)
at
Microsoft.VSDesigner.DataSource.DesignConnection.G etConnectionFromAppSettings(String
objectName, String propertyName)
at
Microsoft.VSDesigner.DataSource.DesignConnection.g et_ConnectionStringObject()
at
Microsoft.VSDesigner.DataSource.DbSource.set_Conne ction(IDesignConnection
value)
at
Microsoft.VSDesigner.DataSource.DesignDataSource.S etConnectionProperty(Source
source)
at
Microsoft.VSDesigner.DataSource.DesignDataSource.R eadXmlSchema(DataSourceXmlTextReader
xmlReader)
at
Microsoft.VSDesigner.DataSource.DesignDataSource.R eadXmlSchema(TextReader
textReader)
at
Microsoft.VSDesigner.DataSource.Designer.DataSourc eSerializationService.DeserializeToDataSource(Stri ng
filePath, Object serializationData)
at
Microsoft.VSDesigner.DataSource.ProjectDataSourceD escriptor.LoadDataSource()
at
Microsoft.VSDesigner.DataSource.ProjectDataSourceD escriptor.Init(IServiceProvider
provider, IVsHierarchy primaryHierarchy, UInt32 primaryItemId, Object
primaryDocDataObject, UInt32 docCookie, IVsInvisibleEditor
invisibleEditor, IDesignerHost host)
at
Microsoft.VSDesigner.DataSource.ProjectDataSourceS torage.EnsureInvisibleEditor(ProjectItem
dsProjectItem, Boolean ensureWritable, Boolean createInvisibleEditor)
at
Microsoft.VSDesigner.DataSource.ProjectDataSourceS torage.GetDataSourceInternal(Object
caller, ProjectItem dsProjectItem, Boolean ensureWritable, Boolean
createInvisibleEditor)
at
Microsoft.VSDesigner.DataSource.Designer.DataSourc eDesignerLoader.HandleLoad(IDesignerSerializationM anager
serializationManager)
Dec 7 '05 #1
1 3064

Well, that was real difficult, I just deleted the connection in server
explorer, reconnected and it worked.

Ed West wrote:
vs2005 final release, um, i can't open my typed dataset, I am getting
unhelpful error. I could not find any info on it on newsgroups or web
sites. anyone know of a solution? Seems to be something with getting
the connection string, I do seem to have one in my settings file.

of course this is extremely inconvenient because I put a lot of work
into this dataset. this is another reason why I am not convinced of all
these useful wizards and gi tools - yeah they save you time in the short
term, but do they really in the long term? Sorry, I digress. If
someone has a way out of this, please let me know before I redo 5 or so
hours worth of code. Thanks. Here is the error:
One or more errors encountered while loading the designer. The errors
are listed below. Some errors can be fixed by rebuilding your project,
while others may require code changes.

Key not valid for use in specified state.

at Microsoft.VisualStudio.Data.DataProtection.Decrypt String(String s)
at
Microsoft.VSDesigner.VSDesignerPackage.AppSettings Helper.AddServerExplorerConnections(IServiceProvid er
serviceProvider, IList connections)
at
Microsoft.VSDesigner.VSDesignerPackage.GlobalConne ctionService.Microsoft.VSDesigner.VSDesignerPackag e.IGlobalConnectionService.GetConnections(IService Provider
serviceProvider, Project project)
at
Microsoft.VSDesigner.DataSource.DesignConnection.G etConnectionFromAppSettings(String
objectName, String propertyName)
at
Microsoft.VSDesigner.DataSource.DesignConnection.g et_ConnectionStringObject()

at
Microsoft.VSDesigner.DataSource.DbSource.set_Conne ction(IDesignConnection
value)
at
Microsoft.VSDesigner.DataSource.DesignDataSource.S etConnectionProperty(Source
source)
at
Microsoft.VSDesigner.DataSource.DesignDataSource.R eadXmlSchema(DataSourceXmlTextReader
xmlReader)
at
Microsoft.VSDesigner.DataSource.DesignDataSource.R eadXmlSchema(TextReader
textReader)
at
Microsoft.VSDesigner.DataSource.Designer.DataSourc eSerializationService.DeserializeToDataSource(Stri ng
filePath, Object serializationData)
at
Microsoft.VSDesigner.DataSource.ProjectDataSourceD escriptor.LoadDataSource()

at
Microsoft.VSDesigner.DataSource.ProjectDataSourceD escriptor.Init(IServiceProvider
provider, IVsHierarchy primaryHierarchy, UInt32 primaryItemId, Object
primaryDocDataObject, UInt32 docCookie, IVsInvisibleEditor
invisibleEditor, IDesignerHost host)
at
Microsoft.VSDesigner.DataSource.ProjectDataSourceS torage.EnsureInvisibleEditor(ProjectItem
dsProjectItem, Boolean ensureWritable, Boolean createInvisibleEditor)
at
Microsoft.VSDesigner.DataSource.ProjectDataSourceS torage.GetDataSourceInternal(Object
caller, ProjectItem dsProjectItem, Boolean ensureWritable, Boolean
createInvisibleEditor)
at
Microsoft.VSDesigner.DataSource.Designer.DataSourc eDesignerLoader.HandleLoad(IDesignerSerializationM anager
serializationManager)

Dec 7 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: brettn | last post by:
I have a typed dataset, bound to a repeater. In the aspx file, I want to refer to my typed column names and not use the usual syntax For example, within the repeater template I want to do...
0
by: Nathan Ernst | last post by:
I have a pretty simple XSD schema: ******************************************** * XSD SCHEMA ******************************************** <?xml version="1.0" encoding="utf-8" ?> <xs:schema...
0
by: Kurt | last post by:
Hi, (sorry if I'm cross posting - not quite sure where to put) I am basically trying to force the user of my web service to only send a valid dataset that is based on a schema I have created. ...
1
by: Imran | last post by:
Hello, I have a typed dataset defined in my project. I am writing a user control which needs to invoke an instance of that dataset. Problem is that the page developer only provides the name of...
3
by: Freeon | last post by:
Hi, I am looking for a way to sort a strong typed dataset. It would seem the most straightforward way is to use a dataview. The only problem is when I use the dataview I seem to loose the strong...
0
by: Cyr1dian | last post by:
Hi all, Situation: ---------- 1) I have a typed dataset (generated with the supplied VS tools) containing several tables (some of which quite large). 2) I have a webservices that needs to...
1
by: rival | last post by:
Hi. I've a single solution with many projects. I'm using VS2003 and framework 1.1 1. Data project - contains UserData class, inheriting from DataSet, and setting up constants and columns...
13
by: Jerry C | last post by:
I am using some sample code from gotdotnet to Create DataSet mappings from a xsd schema. I am geting this error. code and error below. I might mention there is also a publictypelibrary file with...
4
by: Rachana | last post by:
Hi, I have understood Data Sets but what is meant by typed/untyped/ strongly typed datasets. Can any one explain me or suggest any site/ article, to get these concepts (and their ...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.