Server Error in '/' Application.

Operator '<>' is not defined for type 'DBNull' and 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: Operator '<>' is not defined for type 'DBNull' and string "".

Source Error:


Line 90: 
Line 91:         Dim Result As String = ""
Line 92:         If dt.DefaultView(0).Item("Article") <> "" Then Result = dt.DefaultView(0).Item("Article")
Line 93: 
Line 94: 

Source File: c:\inetpub\wwwroot\BalmoralPartners\media\detail.aspx.vb    Line: 92

Stack Trace:


[InvalidCastException: Operator '<>' is not defined for type 'DBNull' and string "".]
   Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectNotEqual(Object Left, Object Right, Boolean TextCompare) +182
   media_details.Fill_NewsDetails(Int32 NewsID) in c:\inetpub\wwwroot\BalmoralPartners\media\detail.aspx.vb:92
   media_details.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\BalmoralPartners\media\detail.aspx.vb:30
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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