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

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 476:            xGlobal = Nothing
Line 477:        Catch ex As Exception
Line 478:            Throw ex
Line 479:            m_objStringBuilder = Nothing
Line 480:            xGlobal = Nothing

Source File: D:\Inetpub\wwwroot\COL 2.0\Components\CdInfo.ascx.vb    Line: 478

Stack Trace:


[InvalidCastException: Conversion from type 'DBNull' to type 'String' is not valid.]
   CdInfo.RenderAlbumInfo2() in D:\Inetpub\wwwroot\COL 2.0\Components\CdInfo.ascx.vb:478
   CdInfo.Page_Load(Object sender, EventArgs e) in D:\Inetpub\wwwroot\COL 2.0\Components\CdInfo.ascx.vb:61
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   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.8009; ASP.NET Version:2.0.50727.8015