HomeHome Product Discus... Product Discus...RazorCartRazorCartAdd Order From Admin Error Add Order From Admin Error
Previous
 
Next
New Post
11/27/2017 10:43 AM
 
I'm receiving the following error message when I try to add an order from the Admin Console. We're on version 1.2.7.

System.NullReferenceException

Object reference not set to an instance of an object.

Stack Trace

at RazorCart.AdminConsole.Controllers.OrderController.AddOnPost(Int32 StoreID, FormCollection Form) at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass48.<InvokeActionMethodFilterAsynchronouslyRecursive>b__41() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)

Exception Method

RazorCart.AdminConsole.Controllers.OrderController

Source File

[0]
 
New Post
11/27/2017 2:22 PM
 
I just tested this on RazorCart v 1.2.9 and I was able to add an order with no errors. Can you upgrade to v1.2.9 and test and let me know if you still get the error after upgrading.
 
New Post
11/27/2017 2:34 PM
 
Great. I submitted a request to gain access to download the latest version.
 
New Post
1/2/2018 11:26 AM
 
We currently have version 1.3.1 and when I try to add an order from the Admin Console I get the following error message:
Uh oh! Looks like something went wrong!

System.NullReferenceException

Object reference not set to an instance of an object.

Stack Trace

at RazorCart.AdminConsole.Controllers.OrderController.AddOnPost(Int32 StoreID, FormCollection Form) at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass48.<InvokeActionMethodFilterAsynchronouslyRecursive>b__41() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)

Exception Method

RazorCart.AdminConsole.Controllers.OrderController

Source File

[0]
Any ideas why we're still receiving this error message?
 
New Post
1/2/2018 12:22 PM
 
I am unable to replicate this in the latest build. Please download and install RazorCart 1.3.4 to fix the issue.
 
New Post
1/5/2018 11:25 AM
 
Thanks Dave. The latest build fixed the issue.
 
Previous
 
Next
HomeHome Product Discus... Product Discus...RazorCartRazorCartAdd Order From Admin Error Add Order From Admin Error