Forums

Forums / Bugs & Issues / SF12.2.7200 / TPC_5.2.07200.144 Error activating ITpcFormModel

SF12.2.7200 / TPC_5.2.07200.144 Error activating ITpcFormModel

2 posts, 0 answered
  1. Marc Baron (FLYWHEEL)
    Marc Baron (FLYWHEEL) avatar
    2 posts
    Registered:
    16 Dec 2019
    21 Oct 2020
    Link to this post
    Hi,

    When we drop TPC Form Manager on a page in our Sitefinity 12.2 site we see the following error -
    Message : Error activating ITpcFormModel
    No matching bindings are available, and the type is not self-bindable.
    Activation path:
      1) Request for ITpcFormModel

    Suggestions:
      1) Ensure that you have defined a binding for ITpcFormModel.
      2) If the binding was defined in a module, ensure that the module has been loaded into the kernel.
      3) Ensure you have not accidentally created more than one kernel.
      4) If you are using constructor arguments, ensure that the parameter name matches the constructors parameter name.
      5) If you are using automatic module loading, ensure the search path and filters are correct.

    Source : Ninject
    Help link : 
    Data : System.Collections.ListDictionaryInternal
    TargetSite : System.Collections.Generic.IEnumerable`1[System.Object] Resolve(Ninject.Activation.IRequest)
    HResult : -2146233088
    Stack Trace :    at Ninject.KernelBase.Resolve(IRequest request)
       at Ninject.ResolutionExtensions.Get[T](IResolutionRoot root, IParameter[] parameters)
       at Telerik.Sitefinity.Frontend.Mvc.Infrastructure.Controllers.ControllerModelFactory.GetModel[T](Type controllerType, IDictionary`2 constructorParameters)
       at pavliks.PortalConnector.Mvc.Forms.Mvc.Controllers.TpcFormController.get_Model() in C:\TeamCity\buildAgent\work\bde0a72409ac63d3\pavliks.PortalConnector.Mvc.Forms\Mvc\Controllers\TpcFormController.cs:line 44



    No other MVC widgets function either. For example, dropping the Knowledge Base widget on the page triggers an alert box with this message - There is a problem with loading the widget designer: [object Object] and makes a request to the following endpoint that throws a 500 error - /Telerik.Sitefinity.Frontend/Designer/Master/TpcKnowledgeBase?controlId=9bdf5297-1e1c-6d96-8691-ff00004eb51f

    Error: Exception type: ArgumentNullException 
        Exception message: Value cannot be null.



    Please advise at your earliest how we can fix these errors.

    Thank you.
  2. Patrick
    Patrick avatar
    33 posts
    Registered:
    20 Apr 2020
    04 Nov 2020 in reply to Marc Baron (FLYWHEEL)
    Link to this post
    Hi Marc,

    My apologies for the delay in responding. Are you using any custom Ninject bindings within the application? If not, then there may be an issue with your installation of TPC.

    I would recommend you remove all TPC libraries from your site files and then reapply them (please ensure you have the correct TPC build that corresponds with your Sitefinity version). It may be a good idea to download the latest build of TPC from our website.

    Please let me know if this resolves your issue or not.

    Thanks,

    Patrick
2 posts, 0 answered