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 377:    <p style="margin-bottom:1.5em;"><strong>Location:</strong> <br><%=rs!Region.Value & " - " & rs!SubRegion.Value %></p>
Line 378:    
Line 379:    <img src="<%="HTTP://Business-team.com/Packages/" & Mid(rs!DocumentName.Value,InstrRev(rs!DocumentName.Value,"\")+1) %>" alt="<%=rs!LeadLine.value %>" class="bizpicleft"/>
Line 380:    <p><strong>Business Description:</strong></p><p><%=rs!Blurb.value %></p>
Line 381:    <%

Source File: D:\WWWRoot\business-team.com\www\buy-a-business\business-for-sale.aspx    Line: 379

Stack Trace:


[InvalidCastException: Conversion from type 'DBNull' to type 'String' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToString(Object Value) +1307492
   ASP.buy_a_business_business_for_sale_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in D:\WWWRoot\business-team.com\www\buy-a-business\business-for-sale.aspx:379
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +270
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +14
   System.Web.UI.Page.Render(HtmlTextWriter writer) +30
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +67
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +101
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +27
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1342


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