471,618 Members | 1,156 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,618 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 3001

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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by brettn | last post: by
1 post views Thread by Imran | last post: by
3 posts views Thread by Freeon | last post: by
reply views Thread by Cyr1dian | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
1 post views Thread by ZEDKYRIE | last post: by

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.