I have created a code to get a list of blog RSS feeds from a SQL db. It then checks each rss and gets the Title, URL, & date of the most recent Blog post
It stores all the data to a DataTable, then updates the SQL db from the Datatable
But I'm getting the following error:
Object reference not set to an instance of an object.
at ASP.global_asax.b__0(XElement item) at System.Linq.Enumerable.
<div>WhereSelectEnumerableIterator`2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() at System.Linq.Enumerable.d__3a`1.MoveNext() at ASP.global_asax.UpdateBlogRoll()</div> <div></div> <div>My code:</div>
<div> {
string constring = System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
SqlConnection conn = new SqlConnection(constring);
SqlDataRea ...
Go to the complete details ...