Reloading Plugins causes 3.4 to crash?

7 months ago
Hi all,

I have 2 stores running 3.4. One, all of the plugins are fine and I don;t have an issue. The other, however, fails to load any plugins and when I try to reload them, it crashes my store. Any ideas as to why this is happening?

Thanks,
Jon
7 months ago
Check the System > Log.  Post related error messages here.
7 months ago
These are the errors that occurred. There are a number of warnings but nothing related to plugins:

  Log level  Short message  Created on  View
  Error  Value cannot be null. Parameter name: serviceType  6/13/2019 8:01:35 AM  View
  Error  Value cannot be null. Parameter name: serviceType  6/13/2019 8:01:35 AM  View
  Error  Value cannot be null. Parameter name: serviceType  6/13/2019 7:58:10 AM  View
  Error  Value cannot be null. Parameter name: serviceType  6/13/2019 7:58:10 AM  View
7 months ago
Click View button next to one of those, and post entire stack trace here.

Do you have custom plugins?
https://www.nopcommerce.com/boards/t/38024/value-cannot-be-null-parameter-name-servicetype.aspx
7 months ago
I do have a custom plug in but it is in both of the store.

Here is the error text:


The level of log entry.Log level:  Error
The log entry message.Short message:  Value cannot be null. Parameter name: serviceType
The details for the log entry.Full message:  System.ArgumentNullException: Value cannot be null. Parameter name: serviceType at Autofac.Util.Enforce.ArgumentNotNull[T](T value, String name) at Autofac.ResolutionExtensions.TryResolve(IComponentContext context, Type serviceType, Object& instance) at Nop.Core.Infrastructure.DependencyManagement.ContainerManager.TryResolve(Type serviceType, ILifetimeScope scope, Object& instance) in C:\TFS-Azure\Ecommerce\CII Store - V34\nopCommerce\Libraries\Nop.Core\Infrastructure\DependencyManagement\ContainerManager.cs:line 103 at Nop.Core.Plugins.PluginDescriptor.Instance[T]() in C:\TFS-Azure\Ecommerce\CII Store - V34\nopCommerce\Libraries\Nop.Core\Plugins\PluginDescriptor.cs:line 94 at Nop.Core.Plugins.PluginDescriptor.Instance() in C:\TFS-Azure\Ecommerce\CII Store - V34\nopCommerce\Libraries\Nop.Core\Plugins\PluginDescriptor.cs:line 107 at Nop.Admin.Controllers.PluginController.PreparePluginModel(PluginDescriptor pluginDescriptor, Boolean prepareLocales, Boolean prepareStores) in C:\TFS-Azure\Ecommerce\CII Store - V34\nopCommerce\Presentation\Nop.Web\Administration\Controllers\PluginController.cs:line 115 at Nop.Admin.Controllers.PluginController.<ListSelect>b__16_0(PluginDescriptor x) in C:\TFS-Azure\Ecommerce\CII Store - V34\nopCommerce\Presentation\Nop.Web\Administration\Controllers\PluginController.cs:line 214 at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext() at System.Linq.Buffer`1..ctor(IEnumerable`1 source) at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext() at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at Nop.Admin.Controllers.PluginController.ListSelect(DataSourceRequest command) in C:\TFS-Azure\Ecommerce\CII Store - V34\nopCommerce\Presentation\Nop.Web\Administration\Controllers\PluginController.cs:line 212 at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) 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.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() 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) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) at System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) at System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) at System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
IP address of the machine that caused the exception.IP address:  18.216.255.248
Name of the customer who caused the exception.Customer:  (deleted by me)
Originating page of exception.Page URL:  http://estore.cambridgeinnovationinstitute.com/admin/plugin/listselect
The referrer URL.Referrer URL:  /Admin/Plugin/List
Date/Time the log entry was created.Created on:  6/13/2019 8:01:35 AM