We're running into an object reference error under the following conditions:
-
site configured to use shipping calculator (or free shipping after previously setting site use use shipping calculator)
-
cart contains only products added to cart via querystring parameter (?ProductId=xxxxx)
-
shipping not calculated
If you then attempt to update the quantity the result is the following message in the Log Viewer. This is an example with UPS, but a similar error occurs with the GetUSPSRates method. Haven't tested any others.
DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Smith.DNN.Modules.BuyNow.Cart.BuildUPSRequest(String accessKey, String userId, String password) at Smith.DNN.Modules.BuyNow.Cart.GetUPSRates() at Smith.DNN.Modules.BuyNow.Cart.GetShippingRates() at Smith.DNN.Modules.BuyNow.Cart.CalShippingRates() at Smith.DNN.Modules.BuyNow.Cart.btnUpdate_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---