Could not get type information for 'dataset'

jsparks228 6 Reputation points
2022-12-07T21:19:31.31+00:00

This question has been asked by others, but I do not see an answer to any of them other than using reserved words in the db. That is not my case. The other questions are asked without details, so let's document my issue completely.

When trying to add a Data Source to my project using the Data Source Config Wizard, I get the error "Could not get the type information for 'DataSet'. I am using the Northwinds sample DB for testing. I have already used this same method to add one dataset and now this one refuses to cooperate.

Visual Studio Professional 2022-LTSC, C#

The process used to add the dataset is listed as follows:
Use the add Data Source wizard
268269-image.png

Select DataBase and then DataSet options
268288-image.png

add connection to Northwind DB
268325-image.png

I only want to add the stored procedures, so I select them
268381-image.png

Hit finish and that's when I get this.
268355-image.png

This is the same process that I used when starting my project and was able to connect to the database that I actually need for my project. The Northwind connection is just a test after I began receiving the failure when trying to add the second db connection to my project, same error. This happened once already, and I had to complete start over. Luckily, I hadn't done any code then... now is a different story. I need to understand why this is happening before I have to blow my project away.

Any help is greatly appreciated!

Additionally, the ability to preview data from a DatSet that is already in the project has been hosed!? It gives the same error.
268663-image.png
268640-image.png

Developer technologies | .NET | Other
SQL Server | Other
{count} vote

1 answer

Sort by: Most helpful
  1. jsparks228 6 Reputation points
    2022-12-08T16:59:46.47+00:00

    Found hope in saving my project.
    268712-image.png

    In another post I found a thread about changing your application target framework and it would resolve the issue. Tried that and although I am getting the error, the dataset appears when I rebuild the project and seams to work fine returning data.

    Initial Target framework was 4.7.2, went to 4.8 and tested. Received the error like before but when I did a rebuild, it was in the data sources. Now I am wondering if just doing the rebuild would have resolved it.
    268589-image.png

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.