Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 201:			dt.Columns.Add("Url", typeof(string));
Line 202:
Line 203:			foreach (NewsArticle st in nc) {
Line 204:				st.PreambleText = Regex.Replace(st.PreambleText, @"<(.|\n)*?>", string.Empty);
Line 205:				st.PreambleText = Server.HtmlDecode(st.PreambleText);

Source File: \\172.21.204.201\webvol2\6y\20h0mq2vfd5fkpg\boxholms-ibk.com\public_html\templates\NewsPage.aspx.cs    Line: 203

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Website.NewsPage.GetAllNewsDataTable() in \\172.21.204.201\webvol2\6y\20h0mq2vfd5fkpg\boxholms-ibk.com\public_html\templates\NewsPage.aspx.cs:203
   Website.NewsPage.Page_Load(Object sender, EventArgs e) in \\172.21.204.201\webvol2\6y\20h0mq2vfd5fkpg\boxholms-ibk.com\public_html\templates\NewsPage.aspx.cs:170
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433