Close
Avatar

User posts

12 years ago

I am experiencing the very same issue after upgrading my site to nopCommerce 2.50 (and ajax filters for 2.50). I hope I did not make a mistake at migrating my code.

The filters are displayed on my website, but when I use the filter, I get the javascript-message: "Loading the page failed."

When I look into the System-Log in nopCommerce, I see this message:

Page URL: http://localhost/catalog7spikes/getfilteredproducts
Short message: An error occurred when trying to create a controller of type 'SevenSpikes.Nop.AjaxFilters.Controllers.Catalog7SpikesController'. Make sure that the controller has a parameterless public constructor.

Full message: System.InvalidOperationException: An error occurred when trying to create a controller of type 'SevenSpikes.Nop.AjaxFilters.Controllers.Catalog7SpikesController'. Make sure that the controller has a parameterless public constructor. ---> System.MissingMethodException: Für dieses Objekt wurde kein parameterloser Konstruktor definiert.
bei System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
bei System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)
bei System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache)
bei System.Activator.CreateInstance(Type type, Boolean nonPublic)
bei System.Web.Mvc.DefaultControllerFactory.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) --- Ende der internen Ausnahmestapelüberwachung ---
bei System.Web.Mvc.DefaultControllerFactory.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType)
bei System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName)
bei System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
bei System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<BeginProcessRequest>b__2()
bei System.Web.Mvc.SecurityUtil.<>c__DisplayClassb`1.<ProcessInApplicationTrust>b__a()
bei System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust[TResult](Func`1 func)
bei System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
bei System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Any ideas?

Thanks,
Christoph