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

Forums / Developing with Sitefinity / Remove / replace a module

Remove / replace a module

4 posts, 0 answered
  1. Janusz
    Janusz avatar
    3 posts
    Registered:
    02 Feb 2009
    01 Jun 2009
    Link to this post
    I have extended the images and document module with extra functionality (i.e. my module inherits from Telerik.Libraries.LibrariesModule and the control panel removes the existing upload view and adds my new view) and have successfully managed to incorporate the new module into Sitefinity  however, I would like to remove the existing Images and Documents module and replace it with my own (most of the functionaly remains the same but I have replaced the upload view with one of my own).

    Does anyone know what needs to be removed / replaced from the web.config in order for my module to remain as the only active module (of this type)?.  I have already tried removing the current module by following the advice here

    http://www.sitefinity.com/support/knowledge-base/kb-article/b1154K-bbgc-b1154T-cgh.aspx

     but as the current module and my module use the same provider etc I keep getting exceptions.

  2. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    01 Jun 2009
    Link to this post
    Hello Janusz,

    the only thing you should remove is the following line:
    <add type="Telerik.Libraries.LibrariesModule, Telerik.Libraries" /> 
    in the web.config, located under this node:
    telerik/framework/modules

    If you are reusing a lot of functionality, everything else (like providers, module section etc.) should stay in the web.config.

    I hope this helps. Let us know if there is anything else we can do for you.

    Best wishes,
    Ivan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Janusz
    Janusz avatar
    3 posts
    Registered:
    02 Feb 2009
    01 Jun 2009
    Link to this post
    I've tried that and get the following error:

    Could not load file or assembly 'Telerik.Libraries]]' or one of its dependencies. The system cannot find the file specified.



    Stack Trace:

    [FileNotFoundException: Could not load file or assembly 'Telerik.Libraries]]' or one of its dependencies. The system cannot find the file specified.]
       System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
       System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
       System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
       System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
       System.Reflection.Assembly.Load(String assemblyString) +28
       Telerik.Utilities.TypeResolutionService.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +1025
       Telerik.Utilities.TypeResolutionService.GetType(String name, Boolean throwOnError) +73
       Telerik.Utilities.TypeResolutionService.GetType(String name) +68
       Telerik.Utilities.TypeResolutionService.ResolveType(String name) +68
       Telerik.Utilities.StringTypeConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) +155
       System.ComponentModel.TypeConverter.ConvertFromString(String text) +12
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadAttributes(ConfigElement element, XmlReader reader) +892
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +834
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, Stack`1 stack) +1145
       Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadSection(ConfigSection section) +409
       Telerik.Sitefinity.Configuration.ConfigProvider.GetSection() +483
       Telerik.Sitefinity.Configuration.ConfigManager.GetSection() +145
       Telerik.Framework.Web.ControlUtils..cctor() +77

    [TypeInitializationException: The type initializer for 'Telerik.Framework.Web.ControlUtils' threw an exception.]
       Telerik.Framework.Web.ControlUtils.GetTemplate(String virtualPath, String resourceFileName, Type assemblyInfo, Type localizationAssemblyInfo, Type templateMapType, String additionalTemplateKey) +0
       Telerik.Cms.Engine.WebControls.ContentView.get_ItemListTemplate() +230
       Telerik.Cms.Engine.WebControls.ContentView.get_ListContainer() +133
       Telerik.Cms.Engine.WebControls.ContentView.CreateContentList() +86
       Telerik.Cms.Engine.WebControls.ContentView.CreateChildControls() +5707
       Telerik.News.WebControls.NewsView.CreateChildControls() +53
       System.Web.UI.Control.EnsureChildControls() +87
       System.Web.UI.Control.PreRenderRecursiveInternal() +44
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842





  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    02 Jun 2009
    Link to this post
    Hello Janusz,

    It seems that you have some lines in your ControlsConfig file that are looking for Telerik.Libraries instead of your custom module. Therefore, the error is thrown. Please check your controls config file for this references to the hostType.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
4 posts, 0 answered