Unable to convert input xml file content to a DataSet. Requested value 'ConnectionStrings' was not found

1.2k Views Asked by At

I have a problem with the visual studio. I user visual studio 2015 and choose framework 4.5 and create an empty website. then I add Dataset.xsd to my project (in App_Code) and then by using server explorer I add my database tables to the dataset. with drag and drop it makes connection string in web.config and when I Build solution I get this Error. I attached a screenshot. Attention: I used this method many times and I have no problem before, but recently I get Error. Please Help ME. Thanks.

2

There are 2 best solutions below

2
AhmadMM On

Below article discusses options about loading the contents of a DataSet from an XML From Microsoft:

[Link]

Kindly refer to it, and if didn't help here is a microsoft community forums that discussed this issue

[Link 2]

0
Junaid Bilal On

the problem is in DataSet.xsd file with TableAdapter's connection string which you've added in Dataset by drag and drop.

  1. open DataSet.xsd file in xml editor
  2. remove connection string which have property AppSettingsObjectName="web.config"
  3. again open the Dataset with normal editor.
  4. now delete the TableAdapter which you have added by drag and drop
  5. Add the TableAdapter again in dataset by right click option See Here