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

E

Ed West

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.DecryptString(String s)
at
Microsoft.VSDesigner.VSDesignerPackage.AppSettingsHelper.AddServerExplorerConnections(IServiceProvider
serviceProvider, IList connections)
at
Microsoft.VSDesigner.VSDesignerPackage.GlobalConnectionService.Microsoft.VSDesigner.VSDesignerPackage.IGlobalConnectionService.GetConnections(IServiceProvider
serviceProvider, Project project)
at
Microsoft.VSDesigner.DataSource.DesignConnection.GetConnectionFromAppSettings(String
objectName, String propertyName)
at
Microsoft.VSDesigner.DataSource.DesignConnection.get_ConnectionStringObject()
at
Microsoft.VSDesigner.DataSource.DbSource.set_Connection(IDesignConnection
value)
at
Microsoft.VSDesigner.DataSource.DesignDataSource.SetConnectionProperty(Source
source)
at
Microsoft.VSDesigner.DataSource.DesignDataSource.ReadXmlSchema(DataSourceXmlTextReader
xmlReader)
at
Microsoft.VSDesigner.DataSource.DesignDataSource.ReadXmlSchema(TextReader
textReader)
at
Microsoft.VSDesigner.DataSource.Designer.DataSourceSerializationService.DeserializeToDataSource(String
filePath, Object serializationData)
at
Microsoft.VSDesigner.DataSource.ProjectDataSourceDescriptor.LoadDataSource()
at
Microsoft.VSDesigner.DataSource.ProjectDataSourceDescriptor.Init(IServiceProvider
provider, IVsHierarchy primaryHierarchy, UInt32 primaryItemId, Object
primaryDocDataObject, UInt32 docCookie, IVsInvisibleEditor
invisibleEditor, IDesignerHost host)
at
Microsoft.VSDesigner.DataSource.ProjectDataSourceStorage.EnsureInvisibleEditor(ProjectItem
dsProjectItem, Boolean ensureWritable, Boolean createInvisibleEditor)
at
Microsoft.VSDesigner.DataSource.ProjectDataSourceStorage.GetDataSourceInternal(Object
caller, ProjectItem dsProjectItem, Boolean ensureWritable, Boolean
createInvisibleEditor)
at
Microsoft.VSDesigner.DataSource.Designer.DataSourceDesignerLoader.HandleLoad(IDesignerSerializationManager
serializationManager)
 
E

Ed West

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

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