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 422:              <asp:Repeater ID="repGalleries" runat="server">
Line 423:                <ItemTemplate>
Line 424:                  <li <%# IIf(Container.ItemIndex = 0, "class='first'", "") %> <%#GetGalleryItemStyle(Trim(Eval("PicThumb")))%> > 
Line 425:                    <a href="galleryinfo.aspx?gaid=<%#Eval("GalleryId")%>">
Line 426:                      <div class="inner_text">

Source File: D:\web\Groopy.co.il\trackinfo.aspx    Line: 424

Stack Trace:


[InvalidCastException: Conversion from type 'DBNull' to type 'String' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToString(Object Value) +1285796
   ASP.trackinfo_aspx.__DataBind__control13(Object sender, EventArgs e) in D:\web\Groopy.co.il\trackinfo.aspx:424
   System.Web.UI.Control.OnDataBinding(EventArgs e) +91
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +92
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +127
   System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +478
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +61
   System.Web.UI.WebControls.Repeater.DataBind() +76
   trackinfo.SetMidInfoBlock2() in D:\web\Groopy.co.il\trackinfo.aspx.vb:157
   trackinfo.Page_Load(Object sender, EventArgs e) in D:\web\Groopy.co.il\trackinfo.aspx.vb:28
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


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