Server Error in '/' Application.

Data is Null. This method or property cannot be called on Null values.

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.SqlTypes.SqlNullValueException: Data is Null. This method or property cannot be called on Null values.

Source Error:


Line 369: db.Id = id; Line 370: db.SelectOne(); Line 371: tmp = db.HtmlText.Value; Line 372: Line 373: if (db.Template.Value.IndexOf("articleTemplate_Article_FCK.htm") >= 0)

Source File: c:\inetpub\vhosts\hiddush.org\httpdocs\ArticleItem.aspx.cs    Line: 371

Stack Trace:


[SqlNullValueException: Data is Null. This method or property cannot be called on Null values.] System.Data.SqlTypes.SqlString.get_Value() +2347721 _ArticleItem.fillArticle(Int32 id) in c:\inetpub\vhosts\hiddush.org\httpdocs\ArticleItem.aspx.cs:371 _ArticleItem.Page_PreRender(Object sender, EventArgs e) in c:\inetpub\vhosts\hiddush.org\httpdocs\ArticleItem.aspx.cs:80 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51 System.EventHandler.Invoke(Object sender, EventArgs e) +0 System.Web.UI.Control.OnPreRender(EventArgs e) +9906354 System.Web.UI.Control.PreRenderRecursiveInternal() +88 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +883


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