Server Error in '/' Application.

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

Source Error:


Line 5:      Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Line 6:          If Not Me.IsPostBack Then
Line 7:              ltrlPopular.Text = TDSearch.SearchUtils.PreparePopularityTagCloud
Line 8:          End If
Line 9:      End Sub

Source File: D:\Webroot\td2k8r2-64\tdcpreview.dytelworld.com\usercontrols\PopularSearches.ascx.vb    Line: 7

Stack Trace:


[InvalidCastException: Conversion from type 'DBNull' to type 'Long' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToLong(Object Value) +458664
   TDSearch.SearchUtils.PreparePopularityTagCloud() +416
   usercontrols_PopularSearches.Page_Load(Object sender, EventArgs e) in D:\Webroot\td2k8r2-64\tdcpreview.dytelworld.com\usercontrols\PopularSearches.ascx.vb:7
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.BasePartialCachingControl.LoadRecursive() +45
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.5485; ASP.NET Version:2.0.50727.5491