All of the sudden my Dataset won't load -- Microsoft Visual Studio 2010

1.9k views Asked by At

I get a pop-up with this error message every time I open my program:

Failed to load dataset because of the following error: Object reference not set to an >instance of an object

Every time I try to compile I get errors saying my typed TableAdapter and TableRows don't exist.

When I double click on the data .xsd file to go to the designer view for the dataset I get an error screen with that repeats the Object reference bit and gives me this call stack:

at >Microsoft.VisualStudio.Editors.SettingsGlobalObjects.SettingsGlobalObjectProvider.CreateGl>obalObjects(Project project) at >Microsoft.VisualStudio.Editors.SettingsGlobalObjects.SettingsGlobalObjectProvider.GetGloba>lObjectsCore(Project project, Type baseType) at Microsoft.VisualStudio.Shell.Design.GlobalObjectProvider.GetGlobalObjects(Project >project, Type baseType) at 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) at Microsoft.VSDesigner.DataSource.DesignConnection.GetConnectionFromAppSettings(String >objectName, String propertyName, Project currentProject) at Microsoft.VSDesigner.DataSource.DesignConnection.GetConnectionStringObject(Project >targetProject) 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, >String baseURI) at >Microsoft.VSDesigner.DataSource.Designer.DataSourceSerializationService.DeserializeToDataS>ource(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, 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)

This program has been working for a while and it just started doing this today. Today I witched the .Net version and then changed it back and altered the installer, but I don't know why any of that would cause this issue. Need some help on this. I'm on a really tight time schedule.

0

There are 0 answers