Error in Visual Studio 2022: An error occured while creating the new data source: "Could not get type information for 'Church_Video_InventoryDataSet'.

Howard Burton 0 Reputation points
2023-09-07T22:45:51.61+00:00

Project: .NET framework 4.7.2 WPF application

Microsoft Visual Studio Community 2022

Version 17.7.3

VisualStudio.17.Release/17.7.3+34024.191

Microsoft .NET Framework

Version 4.8.09037

Installed Version: Community

Visual C++ 2022 00482-90000-00000-AA799

Microsoft Visual C++ 2022

ADL Tools Service Provider 1.0

This package contains services used by Data Lake tools

Arduino IDE for Visual Studio by Visual Micro 22.0

Visual Micro is an Arduino Compatible IDE for Visual Studio 2022. For more information and forum please visit www.visualmicro.com.

ASA Service Provider 1.0

ASP.NET and Web Tools 17.7.273.65229

ASP.NET and Web Tools

Azure App Service Tools v3.0.0 17.7.273.65229

Azure App Service Tools v3.0.0

Azure Data Lake Tools for Visual Studio 2.6.5000.0

Microsoft Azure Data Lake Tools for Visual Studio

Azure Stream Analytics Tools for Visual Studio 2.6.5000.0

Microsoft Azure Stream Analytics Tools for Visual Studio

C# Tools 4.7.0-3.23416.8+43b0b05cc4f492fd5de00f6f6717409091df8daa

C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools 1.10

Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Linux Core Dump Debugging 1.0.9.34018

Enables debugging of Linux core dumps.

Microsoft Azure Hive Query Language Service 2.6.5000.0

Language service for Hive query

Microsoft Azure Stream Analytics Language Service 2.6.5000.0

Language service for Azure Stream Analytics

Microsoft JVM Debugger 1.0

Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

NuGet Package Manager 6.7.0

NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

SerialMonitor2 Extension 1.0

SerialMonitor2 Visual Studio Extension Detailed Info

SQL Server Data Tools 17.7.10.1

Microsoft SQL Server Data Tools

Test Adapter for Boost.Test 1.0

Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.

Test Adapter for Google Test 1.0

Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.

ToolWindowHostedEditor 1.0

Hosting json editor into a tool window

TypeScript Tools 17.0.20628.2001

TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools 4.7.0-3.23416.8+43b0b05cc4f492fd5de00f6f6717409091df8daa

Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual C++ for Linux Development 1.0.9.34018

Visual C++ for Linux Development

Visual F# Tools 17.7.0-beta.23314.10+e612cf93b989503c89e3a5830090062b7ab5e143

Microsoft Visual F# Tools

Visual Studio IntelliCode 2.2

AI-assisted development for Visual Studio.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,397 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,677 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Hui Liu-MSFT 40,271 Reputation points Microsoft Vendor
    2023-09-08T09:02:02.28+00:00

    Hi,@Howard Burton. Welcome Microsoft Q&A.

    "An error occurred while creating the new data source: 'Could not get type information for 'Church_Video_InventoryDataSet','" suggests that there may be an issue with the data source configuration in your project.

    Here are some steps to troubleshoot and resolve the issue:

    1.Open the DataSet designer (typically a .xsd file) and verify that it exists and is properly configured.

    2.Sometimes, rebuilding the project can resolve issues related to missing type information.

    3.Verify that the dataset and related components are in the correct namespace that matches your project's namespace.

    4.Ensure that you have all the required references in your project. Right-click on your project, select "Add," and then choose "Reference..." to check that all necessary references are included.

    5.If you are configuring a data source in Visual Studio, double-check that you've selected the correct dataset and that the dataset has been successfully built.

    6.Clean and Rebuild Solution.

    7.Sometimes, Visual Studio can encounter temporary glitches. Try closing and reopening Visual Studio to see if the issue persists.

    8.Ensure that all project components, including the dataset, are compatible with the target .NET Framework version (4.7.2 in your case). Mismatched versions can lead to issues.

    9.Ensure that your Visual Studio installation and all extensions are up to date. Outdated components can sometimes cause compatibility issues.

    10.Check any configuration files (e.g., app.config or web.config) for correctness, especially if your dataset is used in a specific context like ASP.NET.

    11.If you are using a specific data source like SQL Server or Entity Framework, ensure that the data source connection and properties are correctly configured.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Michael Chapman 0 Reputation points
    2024-04-03T19:04:55.11+00:00

    I kept getting the 'could not find data type' error and it was driving me nuts. Try this -

    When you're adding a data source and you get to the part where you select tables and the such to include don't click anything, leave them all empty. It will ask if you want to create an empty dataset, say yes and an empty dataset will show up in your data sources window. Then configure the dataset with the wizard and add your items.

    Worked for me anyway. Good luck!