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 44:             Dim strPropDetailsBox As String = ""
Line 45:             Dim strAffPlatform As String = rdrProp("AffPlatform")
Line 46:             Dim strAffLink As String = rdrProp("Filename")
Line 47:             Dim strAffID As String = "7993498"
Line 48: 

Source File: C:\inetpub\wwwroot\VillasInPortugal.com\detailvr.aspx.vb    Line: 46

Stack Trace:


[InvalidCastException: Conversion from type 'DBNull' to type 'String' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToString(Object Value) +715831
   detailvr.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\VillasInPortugal.com\detailvr.aspx.vb:46
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975