Server Error in '/' Application.

Conversion from type 'DBNull' to type 'String' is not valid.

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: Conversion from type 'DBNull' to type 'String' is not valid.

Source Error:


Line 28:         If Not IsDBNull(dr("story_Image2_Link")) Then
Line 29:             Image2.ImageUrl = dr("Story_Image2_Link")
Line 30:             Image2.AlternateText = dr("Story_Image2_Title")
Line 31:             LblImage2.Text = dr("Story_Image2_Title")
Line 32:         End If

Source File: C:\Domains\shq.lasdnews.net\pages\PageDetail.aspx.vb    Line: 30

Stack Trace:


[InvalidCastException: Conversion from type 'DBNull' to type 'String' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToString(Object Value) +452600
   Pages_PageDetail.Page_Load(Object sender, EventArgs e) in C:\Domains\shq.lasdnews.net\pages\PageDetail.aspx.vb:30
   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.8000; ASP.NET Version:2.0.50727.8001