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
Loading
Mike GoldPosted Jun 23, 2007, 7:40 PM
I think you need to show people in this forum your xml file in order to answer the question. It may be that your xml file is in the wrong format, so the ReadXml command is getting confused.