Close

Error after take paid version of Ajax Filters

zaharovo
12 years ago
#567 Quote
Avatar
  • 1
Hi. after installing paid version of ajax filter's. I have error when filtering items:
Server Error in '/' Application.
No parameterless constructor defined for this object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.MissingMethodException: No parameterless constructor defined for this object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[MissingMethodException: No parameterless constructor defined for this object.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) +98
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +241
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +69
   System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +67

[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.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +182
   System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) +80
   System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) +74
   System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +232
   System.Web.Mvc.<>c__DisplayClass6.<BeginProcessRequest>b__2() +49
   System.Web.Mvc.<>c__DisplayClassb`1.<ProcessInApplicationTrust>b__a() +13
   System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Func`1 func) +124
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +98
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) +50
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +16
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8969496
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.276
Support
12 years ago
#573 Quote
Avatar
  • Moderator
  • 1044
zaharovo wrote:
Hi. after installing paid version of ajax filter's ...


Hi zaharovo,

Could you tell us which version of the Filters and nopCommerce do you use?

Best Regards,
Nop-Templates Support Team
[email protected]
12 years ago
#610 Quote
Avatar
  • 1
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
YashChandra
12 years ago
#611 Quote
Avatar
  • Moderator
  • 62
Hi Christoph,

This error is due to an inconsistency between the SevenSpikes.Core and the SevenSpikes.Nop.AjaxFilters. Did you replace both plugins? If so please restart your application and let us know if you still have this problem!

Best Regards
Regards,
Milen Kovachev
Nop-Templates.com