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 448:                                            <figure class="animated" data-animation-type="flipInX">
Line 449:                                                <a title="<%# Eval("buy_company_name")%>" target="_blank" href='SuppliersDetails.aspx?opc_id=<%# Eval("opc_id")%> '>
Line 450:                                                    <img width="63" height="59" alt="<%# Eval("buy_company_name")%>" style="max-width: 63px; height: 59px; border: 1px solid #bebebe;" src='<%# Replace(Eval("BUY_LOGO_IMAGE"),"~/","")%>' />
Line 451:                                                </a>
Line 452:                                            </figure>

Source File: C:\Inetpub\vhosts\iqtenders.com\httpdocs\SuppliersDetails.aspx    Line: 450

Stack Trace:


[InvalidCastException: Conversion from type 'DBNull' to type 'String' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToString(Object Value) +1307492
   ASP.suppliersdetails_aspx.__DataBind__control5(Object sender, EventArgs e) in C:\Inetpub\vhosts\iqtenders.com\httpdocs\SuppliersDetails.aspx:450
   System.Web.UI.Control.OnDataBinding(EventArgs e) +86
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +154
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.Control.DataBindChildren() +187
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +164
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +128
   System.Web.UI.WebControls.Repeater.AddDataItemsIntoItemsArray(IEnumerable dataSource, Boolean useDataSource) +220
   System.Web.UI.WebControls.Repeater.PostGetDataAction(IEnumerable dataSource) +73
   System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +229
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +63
   System.Web.UI.WebControls.Repeater.DataBind() +81
   CMS_App.SuppliersDetails.getRelatedTender(Int32 catid) +156
   CMS_App.SuppliersDetails.pobulateTender() +732
   CMS_App.SuppliersDetails.Page_Load(Object sender, EventArgs e) +510
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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