突然之间,我的数据集无法加载 - Microsoft Visual Studio 2010

时间:2013-08-28 19:02:42

标签: c# mysql .net visual-studio-2010 strongly-typed-dataset

每次打开程序时,我都会弹出一条错误消息:

  

由于以下错误导致无法加载数据集:对象引用未设置为>对象实例

每次我尝试编译时都会收到错误,说我的类型化TableAdapter和TableRows不存在。

当我双击数据.xsd文件转到数据集的设计器视图时,我得到一个错误屏幕,重复对象引用位并给我这个调用堆栈:

  

at> Microsoft.VisualStudio.Editors.SettingsGlobalObjects.SettingsGlobalObjectProvider.CreateGl> obalObjects(Project project)   at> Microsoft.VisualStudio.Editors.SettingsGlobalObjects.SettingsGlobalObjectProvider.GetGloba> lObjectsCore(Project project,Type baseType)   在Microsoft.VisualStudio.Shell.Design.GlobalObjectProvider.GetGlobalObjects(Project> project,Type baseType)   在Microsoft.VisualStudio.Shell.Design.GlobalObjectService.GetGlobalObjects(Type baseType)   at> Microsoft.VSDesigner.VSDesignerPackage.AppSettingsHelper.GetGlobalObjectCollection(IServic> eProvider serviceProvider,Project project)   at> Microsoft.VSDesigner.VSDesignerPackage.AppSettingsHelper.AddAppSettingsConnections(IServic> eProvider serviceProvider,Project project,IList connections)   at> Microsoft.VSDesigner.VSDesignerPackage.GlobalConnectionService.Microsoft.VSDesigner.VSDesi> gnerPackage.IGlobalConnectionService.GetConnections(IServiceProvider serviceProvider,> Project project)   在Microsoft.VSDesigner.DataSource.DesignConnection.GetConnectionFromAppSettings(String> objectName,String propertyName,Project currentProject)   在Microsoft.VSDesigner.DataSource.DesignConnection.GetConnectionStringObject(Project> targetProject)   在Microsoft.VSDesigner.DataSource.DesignConnection.get_ConnectionStringObject()   在Microsoft.VSDesigner.DataSource.DbSource.set_Connection(IDesignConnection值)   在Microsoft.VSDesigner.DataSource.DesignDataSource.SetConnectionProperty(源代码)   在Microsoft.VSDesigner.DataSource.DesignDataSource.ReadXmlSchema(DataSourceXmlTextReader> xmlReader)   在Microsoft.VSDesigner.DataSource.DesignDataSource.ReadXmlSchema(TextReader textReader,> String baseURI)   at> Microsoft.VSDesigner.DataSource.Designer.DataSourceSerializationService.DeserializeToDataS> ource(String filePath,Object serializationData)   在Microsoft.VSDesigner.DataSource.ProjectDataSourceDescriptor.LoadDataSource()   在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,Boolean getUIInfo)   at Microsoft.VSDesigner.DataSource.ProjectDataSourceStorage.GetDataSourceInternal(Object> caller,ProjectItem dsProjectItem,Boolean ensureWritable,Boolean createInvisibleEditor,> Boolean getUIInfo)   at> Microsoft.VSDesigner.DataSource.Designer.DataSourceDesignerLoader.HandleLoad(IDesignerSeri> alizationManager serializationManager)

这个程序已经工作了一段时间,它刚刚开始这样做。今天我把.Net版本搞砸了,然后改回来改变了安装程序,但我不知道为什么会导致这个问题。需要一些帮助。我的时间表非常紧张。

0 个答案:

没有答案