Error!
An error occurred. The system has written a log file entry.
When checking the log, I find the following Error message referring to a DBNull error:
----------------------------------------------------------------------------
>> URL:http://angelwingscompany.com/Product.aspx?ProductID=11&L=1
>> Page:
-----------------------------------------------------------------------------
>> 1/8/2011 3:56:57 AM
>> 98.200.145.30
>> DESCRIPTION:
System.InvalidCastException: Conversion from type 'DBNull' to type 'Double' is not valid.
at Microsoft.VisualBasic.CompilerServices.Symbols.Container.InvokeMethod(Method TargetProcedure, Object[] Arguments, Boolean[] CopyBack, BindingFlags Flags)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.CallMethod(Container BaseReference, String MethodName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, BindingFlags InvocationFlags, Boolean ReportErrors, ResolutionFailure& Failure)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn)
at Product.Page_LoadComplete(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Page.OnLoadComplete(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Now when I try going on to the site not even the Default.aspx page will display. It generates a similar error. I'm assuming its an issue with the product, but when editing the product in the Admin, it edits fine. Not sure where the DBNull value is that its referring too.
Subsequent Error messages are logged referring to the Basket. Take a look:
-----------------------------------------------------------------------------
>> URL:http://angelwingscompany.com/Basket.aspx
>> Page:
-----------------------------------------------------------------------------
>> 1/8/2011 3:57:08 AM
>> 98.200.145.30
>> DESCRIPTION:
System.InvalidCastException: Conversion from type 'DBNull' to type 'Double' is not valid.
at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(Object Value, NumberFormatInfo NumberFormat)
at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(Object Value)
at BasketBLL.LoadBasketItems()
at Templates_BasketView.LoadBasket()
at Templates_BasketView.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
-----------------------------------------------------------------------------
>> URL:http://angelwingscompany.com/default.aspx
>> Page:
-----------------------------------------------------------------------------
>> 1/8/2011 4:03:06 AM
>> 98.200.145.30
>> DESCRIPTION:
System.InvalidCastException: Conversion from type 'DBNull' to type 'Double' is not valid.
at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(Object Value, NumberFormatInfo NumberFormat)
at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(Object Value)
at BasketBLL.LoadBasketItems()
at Templates_BasketView.LoadBasket()
at Templates_BasketView.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Is this a Basket issue or an issue with the Product Data?