+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Sitefinity 8.2 to 9 upgrade Error

Sitefinity 8.2 to 9 upgrade Error

14 posts, 1 answered
  1. Richard
    Richard avatar
    3 posts
    Registered:
    26 Jan 2011
    23 Mar 2016
    Link to this post

    Hi Guys;

     

    i am getting

     

    "Error loading module 'SitefinityWebApp.InterfaceMappingsData' of type InterfaceMappingsData Another module (of type InterfaceMappingsData) with the same name has already been loaded Suggestions: 1) Ensure that you have not accidentally loaded the same module twice. 2) If you are using automatic module loading, ensure you have not manually loaded a module that may be found by the module loader. "

     

     

    Anyone is encountered this .  I have InterfaceMappingsData  ninject module which is being loaded in bootstrap method

     

    Thank you

  2. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    20 Mar 2017
    25 Mar 2016
    Link to this post
    Hi Richard,

    If you have followed this article:
    http://docs.sitefinity.com/feather-use-constructor-dependency-injections
    or other DI using a new kernel, this is most probably causing the issue.

    Please, register the dependency on Bootstrapper_Bootstrapped using:
    Telerik.Sitefinity.Frontend.FrontendModule.Current.DependencyResolver.Bind<IAuthorsService>().To<AuthorsService>();


    Regards,
    Nikola Zagorchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    20 Mar 2017
    06 Apr 2016
    Link to this post
    Hello Richard,

    Were you able to resolve the issue?

    Regards,
    Nikola Zagorchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  4. Nico
    Nico avatar
    6 posts
    Registered:
    04 Sep 2015
    11 Apr 2016 in reply to Nikola Zagorchev
    Link to this post
    Followed the http://docs.sitefinity.com/feather-use-constructor-dependency-injections article and getting a nullreferenceexceptionon Telerik.Sitefinity.Frontend.FrontendModule.Current
  5. Nico
    Nico avatar
    6 posts
    Registered:
    04 Sep 2015
    12 Apr 2016
    Link to this post
    IT seems like the module is being auto loaded as Telerik.Sitefinity.Frontend.FrontendModule.Current is null, but when I try using it with Ninject.Syntax.Bind, I get the original error stating that this is being loaded twice. Where are the settings for ninject auto loading or what should I be looking for?
  6. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    20 Mar 2017
    14 Apr 2016
    Link to this post
    Hello Nico,

    Use the current already registered dependency resolver and bind:
    public NinjectControllerFactory()
            {
                ninjectKernel = Telerik.Sitefinity.Frontend.FrontendModule.Current.DependencyResolver;
               ninjectKernel.Bind<IAuthorService>().To<AuthorService>();
            }


    Regards,
    Nikola Zagorchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
    Answered
  7. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    20 Mar 2017
    20 Apr 2016
    Link to this post
    Hello,

    Was the provided information useful? Were you able to bind the dependencies now?

    Regards,
    Nikola Zagorchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  8. Nico
    Nico avatar
    6 posts
    Registered:
    04 Sep 2015
    21 Apr 2016 in reply to Nikola Zagorchev
    Link to this post

    Yes it was thank you.  Please update your documentation with this implementation.

    Regards

    Nico le Roux

  9. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    20 Mar 2017
    21 Apr 2016
    Link to this post
    Hi Nico,

    Thank you for the update. Regarding the docs article, we are working on fixing it.

    Regards,
    Nikola Zagorchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  10. Chris
    Chris avatar
    4 posts
    Registered:
    02 Jan 2015
    27 Apr 2016
    Link to this post

    Hi thanks for resolving please at least post a note at the top of the article that this will throw an error in version 9 and link here. Just wasted two hours on this issue.

    Many thanks,

  11. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    20 Mar 2017
    28 Apr 2016
    Link to this post
    Hello Chris,
     
    Please, excuse us for the inconvenience caused.

    I have submitted an issue to our documentation team to refactor the article. They are working on it.

    Regards,
    Nikola Zagorchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  12. RJ Cuthbertson
    RJ Cuthbertson avatar
    41 posts
    Registered:
    01 Jun 2015
    14 Sep 2016
    Link to this post
    I posted more details about this bug and a work around here: https://github.com/Sitefinity/feather/issues/2580
  13. Preetham
    Preetham avatar
    0 posts
    Registered:
    02 Mar 2017
    02 Mar in reply to RJ Cuthbertson
    Link to this post
    Apologies, this is a duplicate of the post below
  14. Preetham
    Preetham avatar
    0 posts
    Registered:
    02 Mar 2017
    02 Mar in reply to Nikola Zagorchev
    Link to this post

    Hi Nikola,

    Please see attached screenshots and code if that makes it easier....

     

    I have tried all the methods listed above and the workaround, but still keep getting the same issue. 

    This happens when I trigger changes(activate/deactivate) a module in Sitefinity/Administration/ModulesAndServices

    The progress bar (green) goes into a loop and refreshing the page gives me this:

    Error loading Ninject component ICache
    No such component has been registered in the kernel's component container.

    Suggestions:
     1) If you have created a custom subclass for KernelBase, ensure that you have properly
        implemented the AddComponents() method.
     2) Ensure that you have not removed the component from the container via a call to RemoveAll().
     3) Ensure you have not accidentally created more than one kernel.

    And in the error logs for sitefinity I get:


    Message : Error loading module 'YourPackage.YourModule' of type YourModule
    Another module (of type YourModule) with the same name has already been loaded
    Suggestions:
      1) Ensure that you have not accidentally loaded the same module twice.
      2) If you are using automatic module loading, ensure you have not manually loaded a module
         that may be found by the module loader.

    Have followed the article: http://docs.sitefinity.com/feather-use-constructor-dependency-injections
    and the workaround too: https://github.com/Sitefinity/feather/issues/2580
    Can someone help please?

    Thanks,
    Preetham

14 posts, 1 answered