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 47: 				LinkQuaestor.NavigateUrl = "liddetails.aspx?id=" & readerDetail("l3.id")
Line 48: 				
Line 49: 				If readerDetail("l4.foto") <> "" Then
Line 50: 					FotoAbactis.ImageUrl = "opgeladen/fotos/" & readerDetail("l4.foto")
Line 51: 				Else

Source File: D:\WebSites\libwarebe\www\praesdiepjaar.aspx    Line: 49

Stack Trace:


[InvalidCastException: Operator '<>' is not defined for type 'DBNull' and string "".]
   Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectNotEqual(Object Left, Object Right, Boolean TextCompare) +512247
   ASP.praesdiepjaar_aspx.Page_Load(Object sender, EventArgs e) in D:\WebSites\libwarebe\www\praesdiepjaar.aspx:49
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.9174; ASP.NET Version:2.0.50727.9175