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

Disable a module?

8 posts, 0 answered
  1. bnye
    bnye avatar
    332 posts
    Registered:
    22 Sep 2005
    13 Dec 2006
    Link to this post
    This may be a silly question, but how do I disable or remove temporarily the modules?
  2. Vassil Daskalov
    Vassil Daskalov avatar
    261 posts
    Registered:
    18 May 2013
    14 Dec 2006
    Link to this post
    Hello Ben,

    To disable a ceratin module in Sitefinity, you need to remove the DLL file for the module from the bin folder or to simply change its extension in something different than .dll. This is because Sitefinity shows the modules in the admin section by iterating through all the DLLs in the bin folder and checks up which of them implements certain interface. 

    For the time being, if you remove all the modules DLLs, the tab in the admin will stay there although there will not be any content to show.

    All the best,
    Vassil Daskalov
    the telerik team
  3. bnye
    bnye avatar
    332 posts
    Registered:
    22 Sep 2005
    14 Dec 2006
    Link to this post
    Oh...that is easy enough.

    Actually I like that it stays there. It's advertising. "Oh...you want the blog now?" You get the idea.

    Thanks,

    Ben
  4. bnye
    bnye avatar
    332 posts
    Registered:
    22 Sep 2005
    15 Dec 2006
    Link to this post
    Is there another step after removing the dlls?

    I am getting an error after I remove the 3 dlls.

    Sincerely,

    Ben
  5. Sean
    Sean avatar
    271 posts
    Registered:
    31 May 2006
    15 Dec 2006
    Link to this post
    Have you tried removing the sections in the web.config that refer to them, like if you search for blog you will find the 2 places you need to remove.
  6. Bob
    Bob avatar
    330 posts
    Registered:
    24 Sep 2012
    15 Dec 2006
    Link to this post

    Hello Ben,

    Can you send us a screenshot of the error you receive?

    It should work fine without removing the sections in the web.config file although sections are loaded on demand. Make sure you remove the correct assemblies. The corect assemblies are: Telerik.Polls.dll, Telerik.Blogs.dll and Telerik.Web.UI.News.dll. Removing any other dll may cause an error.


    Sincerely yours,

    Bob
    the telerik team

  7. bnye
    bnye avatar
    332 posts
    Registered:
    22 Sep 2005
    16 Dec 2006
    Link to this post

    The error only occurs when I remove all three DLLs. the error is listed below:

    Index was outside the bounds of the array.

    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.IndexOutOfRangeException: Index was outside the bounds of the array.

    Stack Trace:

    [IndexOutOfRangeException: Index was outside the bounds of the array.]
       Telerik.Cms.Web.AdminPage.OnPreRender(EventArgs e) +848
       Modules.OnPreRender(EventArgs e) +19
       System.Web.UI.Control.PreRenderRecursiveInternal() +88
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5728
    


  8. Bob
    Bob avatar
    330 posts
    Registered:
    24 Sep 2012
    18 Dec 2006
    Link to this post
    Hello Ben,

    Thanks for reporting this bug. It will be fixed in the upcoming release. I guess we never tested removing modules all together.

    Greetings,
    Bob
    the telerik team

Register for webinar
8 posts, 0 answered