Server Error in '/' Application.

Unable to cast object of type 'System.DBNull' to type 'System.String'.

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.InvalidCastException: Unable to cast object of type 'System.DBNull' to type 'System.String'.

Source Error:


Line 73: 		}
Line 74: 
Line 75: 		newsText.Text = (string)data["FullText"];
Line 76: 		LiteralControl header = (LiteralControl)SiteUtils.Search.FindControlByID(Page.Controls, "pageHeader");
Line 77:         header.Text = string.Format("<h2>{0}</h2>", data["Header"]);

Source File: x:\AtilektHostingData\CustomSites\Tattooproff\Moduls\News\client.ascx.cs    Line: 75

Stack Trace:


[InvalidCastException: Unable to cast object of type 'System.DBNull' to type 'System.String'.]
   Moduls_News_client.ShowSelectedNews() in x:\AtilektHostingData\CustomSites\Tattooproff\Moduls\News\client.ascx.cs:75
   Moduls_News_client.LoadData() in x:\AtilektHostingData\CustomSites\Tattooproff\Moduls\News\client.ascx.cs:57
   Moduls_News_client.Page_Load(Object sender, EventArgs e) in x:\AtilektHostingData\CustomSites\Tattooproff\Moduls\News\client.ascx.cs:43
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0