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 651: <%--<span class='CategoriesTsId<%# DataBinder.Eval(Container.DataItem, "CategoryId")%>'>--%> Line 652: <span class='ArCategoriesTsIdDescList'> Line 653: <%# ((string)DataBinder.Eval(Container.DataItem, "ArabicBriefDescription")).Replace("\n", "<br/>")%> Line 654: </span> Line 655: </td>

Source File: f:\calendar.jo\arabic\MoreEvents.aspx    Line: 653

Stack Trace:


[InvalidCastException: Unable to cast object of type 'System.DBNull' to type 'System.String'.] ASP.arabic_moreevents_aspx.__DataBind__control54(Object sender, EventArgs e) in f:\calendar.jo\arabic\MoreEvents.aspx:653 System.Web.UI.Control.OnDataBinding(EventArgs e) +86 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +154 System.Web.UI.Control.DataBind() +17 System.Web.UI.Control.DataBindChildren() +187 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +164 System.Web.UI.Control.DataBind() +17 System.Web.UI.Control.DataBindChildren() +187 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +164 System.Web.UI.Control.DataBind() +17 System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) +170 System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +3839 System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +67 System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) +15 System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +133 System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +34 System.Web.UI.WebControls.DataBoundControl.PerformSelect() +151 System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +76 System.Web.UI.WebControls.GridView.DataBind() +10 arabic_MoreEvents.FillEvents() in f:\calendar.jo\arabic\MoreEvents.aspx.cs:260 arabic_MoreEvents.Page_Load(Object sender, EventArgs e) in f:\calendar.jo\arabic\MoreEvents.aspx.cs:383 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52 System.Web.UI.Control.OnLoad(EventArgs e) +97 System.Web.UI.Control.LoadRecursive() +61 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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