+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

12 posts, 1 answered
  1. Richard
    Richard avatar
    3 posts
    Registered:
    26 Jan 2011
    23 Mar
    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:
    26 Sep 2016
    25 Mar
    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:
    26 Sep 2016
    06 Apr
    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 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
    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:
    26 Sep 2016
    14 Apr
    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:
    26 Sep 2016
    20 Apr
    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 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:
    26 Sep 2016
    21 Apr
    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
    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:
    26 Sep 2016
    28 Apr
    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
    Link to this post
    I posted more details about this bug and a work around here: https://github.com/Sitefinity/feather/issues/2580
12 posts, 1 answered