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

Forums / Developing with Sitefinity / Error: The ViewMode "listscontrolpanel" is not defined for this control.

Error: The ViewMode "listscontrolpanel" is not defined for this control.

3 posts, 0 answered
  1. Constantin Aparaschivei
    Constantin Aparaschivei avatar
    27 posts
    Registered:
    10 Nov 2009
    02 Aug 2010
    Link to this post
    Hi,

    I get this error when trying to access lists from command panel link:

    The ViewMode "listscontrolpanel" is not defined for this control.


    The url looks like this:
    http://host:port/es/Sitefinity/Admin/Modules.aspx?module=lists&route=ListsControlPanel.AllListsView

    and the stack trace is
    [ArgumentException: The ViewMode "listscontrolpanel" is not defined for this control.]
       Telerik.Cms.Web.UI.ViewModeControl`1.get_CurrentView() +279
       Telerik.Cms.Web.UI.ViewModeControl`1.LoadCurrentView(Control owner) +78
       Telerik.Cms.Web.UI.ViewModeControl`1.InitializeControls(Control viewContainer) +122
       Telerik.Cms.Web.UI.Backend.ControlPanel`1.InitializeControls(Control container) +67
       Telerik.Cms.Web.UI.ViewModeControl`1.CreateChildControls() +201
       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.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    

    What I am trying to do is to view all lists (in modules/lists). Trying to edit one list gives me the same error.

    I use an override for GetUrl method fromTelerik.Cms.Web.CmsHttpModule.

    If I change web.config and use the default CmsHttpModule (<add name="Cms" type="Telerik.Cms.Web.CmsHttpModule, Telerik.Cms"/>) instead of my own the error is not happening.

    I am using Sitefinity 3.6.1861.2.

    Is there a known issue for this problem?

    Thanks,
    Aparaschivei Constantin
  2. Constantin Aparaschivei
    Constantin Aparaschivei avatar
    27 posts
    Registered:
    10 Nov 2009
    02 Aug 2010
    Link to this post
    Probably it is important to mention that my website uses multiple languages and if I use the default one the error is not happening. I can only reproduce it in all other languages except default one.
  3. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    02 Aug 2010
    Link to this post
    Hello Constantin Aparaschivei,

    Thank you for using our services.

    Could you please post the GetUrl method override. It looks like the url is getting changed? Make sure that you are not converting the whole url to lower case characters.

    Best wishes,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
3 posts, 0 answered