1
Answer

DataSet.ReadXml error

Ask a question
Ramesh p

Ramesh p

17y
8.9k
1
i am using below code for to dispaly Rss feed data in my web.

i think problem with DataSet. it is not reading the data.

Any help please


Server Error in '/Slideshow' Application.
--------------------------------------------------------------------------------

A column named 'link' already belongs to this DataTable: cannot set a nested table name to the same name.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.DuplicateNameException: A column named 'link' already belongs to this DataTable: cannot set a nested table name to the same name.

Source Error:


Line 42: XmlDataDocument xdoc = new XmlDataDocument();
Line 43: XmlTextReader Reader = new XmlTextReader("http://feeds.autoblog.com/weblogsinc/autoblog");
Line 44: xdoc.DataSet.ReadXml(Reader, XmlReadMode.InferSchema);
Line 45:
Line 46:

Thanks
Ramesh

Answers (1)