Error in Checkout

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
15 years ago
Hello,

ive searched and found nothing with regards to this, really confusing

Basically when a customer adds something to their cart, all is fine, enter address, then when it asks for billing address, and it is provided, when you press next you get an internal server error, the error says this:

System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentNullException: Value cannot be null. Parameter name: type at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at NopSolutions.NopCommerce.BusinessLogic.Shipping.ShippingManager.GetShippingOptions(ShoppingCart Cart, Customer customer, Address ShippingAddress, Nullable`1 AllowedShippingRateComputationMethodID, String& Error) in F:\Own\NopCommerce\EnterpriseEdition\1.5Release\Libraries\Nop.BusinessLogic\Shipping\ShippingManager.cs:line 419 at NopSolutions.NopCommerce.BusinessLogic.Shipping.ShippingManager.GetShippingOptions(ShoppingCart Cart, Customer customer, Address ShippingAddress, String& Error) in F:\Own\NopCommerce\EnterpriseEdition\1.5Release\Libraries\Nop.BusinessLogic\Shipping\ShippingManager.cs:line 385 at NopSolutions.NopCommerce.Web.Modules.CheckoutShippingMethodControl.BindData() in F:\Own\NopCommerce\EnterpriseEdition\1.5Release\NopCommerceStore\Modules\CheckoutShippingMethod.ascx.cs:line 103 at NopSolutions.NopCommerce.Web.CheckoutShippingMethodPage.Page_Load(Object sender, EventArgs e) in F:\Own\NopCommerce\EnterpriseEdition\1.5Release\NopCommerceStore\CheckoutShippingMethod.aspx.cs:line 62 at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at NopSolutions.NopCommerce.Web.BaseNopPage.OnLoad(EventArgs e) in F:\Own\NopCommerce\EnterpriseEdition\1.5Release\NopCommerceStore\Controls\BaseNopPage.cs:line 80 at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.checkoutshippingmethod_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_vui1wvs1.2.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Page URL: http://fenthill.com/CheckoutShippingMethod.aspx
http://fenthill.com/CheckoutBillingAddress.aspx


Thanks alot, hope you can help!

Ethan :)
fenthill.com
Refering URL:
15 years ago
I would try re-uploading Nop.BusinessLogic.DLL and see if this fixes the problem.
14 years ago
Hello, thanks for the reply, no this didn't fix the issue, it still applies.

If it help, this is hosted on a IIS Machine, Running Windows Server 2003.
14 years ago
A Wild guess but since you are running .NET 4, maybe try changing the App Pool?
14 years ago
Go to your active shipping rate computation method and ensure that "class name" field is set properly.
P.S. It's wrong according to your exception details
14 years ago
Fantasic, i went to the shipping methods and one of them was missing their class id,
so all is sorted, sorry if its a dub question, but all this is the first time im using ASP, so a bit different from PHP!

Once again, Thanks :)
14 years ago
The problem below is solved. The error was coming from wrong setup options in one of the payment modules. I leave the error below you might have the similar problem.

I'm also having similar problem. I have two nopcommerce sites, one has this problem and the other one just works fine. I compare Shipping Rate Computation > Class Name and they bot the same, but I receive following error after I click Next on Select Shipping Method page.
Value cannot be null.
Parameter name: type

[ArgumentNullException: Value cannot be null.
Parameter name: type]
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +7469174
   System.Activator.CreateInstance(Type type) +6
   NopSolutions.NopCommerce.Common.Payment.PaymentManager.GetAdditionalHandlingFee(Int32 PaymentMethodID) in PaymentManager.cs:85
   NopSolutions.NopCommerce.Web.Modules.CheckoutPaymentMethodControl.FormatPaymentMethodInfo(PaymentMethod paymentMethod) in CheckoutPaymentMethod.ascx.cs:51
   ASP.modules_checkoutpaymentmethod_ascx.__DataBind__control4(Object sender, EventArgs e) +226
   System.Web.UI.Control.OnDataBinding(EventArgs e) +99
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +92
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.WebControls.DataList.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +125
   System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) +459
   System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +54
   System.Web.UI.WebControls.BaseDataList.DataBind() +55
   NopSolutions.NopCommerce.Web.Modules.CheckoutPaymentMethodControl.Page_Load(Object sender, EventArgs e) in CheckoutPaymentMethod.ascx.cs:151
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   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.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


Could anyone possibly help me please? Thanks.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.