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

Forums / Developing with Sitefinity / Generic content module missing from nav menu

Generic content module missing from nav menu

10 posts, 0 answered
  1. Brian Lee
    Brian Lee avatar
    3 posts
    Registered:
    07 Nov 2006
    04 Dec 2008
    Link to this post
    Hi:

    I have created 2 generic content modules (UseCases and PressReleases).

    After implementing the code per the "Adding a custom provider for Generic Content - ID#1029" (http://www.sitefinity.com/support/knowledge-base/kb-article/b1154K-bach-b1154T-cmm.aspx)

    ... I can select both of my modules on the
    generic_content page ( Sitefinity/Admin/Modules.aspx?module=generic_content)

    My problem, however, is that the
    Sitefinity/Admin/Modules.aspx?module=PressReleases page has an error:


    Line 38: 	protected void Page_Load(object sender, EventArgs e)
    Line 39: {
    Line 40: if (base.Module != null)
    Line 41: {
    Line 42: this.contolPanel = base.Module.CreateControlPanel(this);

    Source File: c:\Inetpub\wwwroot\Dev\Sitefinity\Admin\Modules.aspx.cs    Line: 40

    In addition, there is no "Press Releases" menu item on the modules navigation bar.  The "UseCases" module works just fine.

    Any ideas on what could be wrong?

    Thanks!

  2. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    08 Dec 2008
    Link to this post
    Hello Brian Lee,

    can you post a full stack trace for this error. It's really hard to guess what could be wrong.

    Thank you in advance.

    Best wishes,
    Ivan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Brian Lee
    Brian Lee avatar
    3 posts
    Registered:
    07 Nov 2006
    02 Mar 2009
    Link to this post

    Hi Ivan:


    My apologies for the delayed reply.  Here is the full stack trace:

    Security Exception

    Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

    Exception Details: System.Security.SecurityException: Insufficient permissions to access module "PressReleases".

    Source Error:

    Line 38: 	protected void Page_Load(object sender, EventArgs e)
    Line 39: 	{
    Line 40: 		if (base.Module != null)
    Line 41: 		{
    Line 42:             this.contolPanel = null;

    Source File: c:\Inetpub\wwwroot\DevQuova35\Sitefinity\Admin\Modules.aspx.cs    Line: 40

    Stack Trace:

    [SecurityException: Insufficient permissions to access module "PressReleases".]
       Telerik.Cms.Web.ModulesAdminPage.get_Module() +365
       Modules.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\DevQuova35\Sitefinity\Admin\Modules.aspx.cs:40
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       Telerik.Cms.Web.AdminPage.OnLoad(EventArgs e) +58
       System.Web.UI.Control.LoadRecursive() +47
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7350
       System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213
       System.Web.UI.Page.ProcessRequest() +86
       System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
       System.Web.UI.Page.ProcessRequest(HttpContext context) +49
       ASP.sitefinity_admin_modules_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\073b0dc2\75798027\App_Web_p973hb7s.2.cs:0
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
    
  4. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    03 Mar 2009
    Link to this post
    Hello Brian Lee,

    the reason you don't see the module in the navigation and why you get the security exception when you try to navigate to it is one and the same, you do not have permissions to access that module.

    Please log in with the admin account, go to that module and make sure you have permissions to at least View the module.

    I hope you'll find this information helpful. Let us know if there is anything else we can do for you.

    Sincerely yours,
    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.
  5. Gema
    Gema avatar
    46 posts
    Registered:
    02 Oct 2009
    29 Oct 2009
    Link to this post
    Hello,
    I've download an example code from sitefinity, about secured intra-site module. I've deployed the code in my test web site and I'm experimenting the same behavior.
    Sitefinity/Admin/Modules.aspx?module=Contacts page has an error:
    [SecurityException: Insufficient permissions to access module "Contacts".]

    I'm logging in with administrator account
    What am I doing wrong??

    Thanks

  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 May 2017
    29 Oct 2009
    Link to this post
    Hi mgrp mgrp,

    The permissions for Contacts module are different from this one for GenericCotent based modules. Most probably the SecurityRoots does not apply correctly in the module you have added. If you have not made any changes to the default module you should not see this error.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Gema
    Gema avatar
    46 posts
    Registered:
    02 Oct 2009
    29 Oct 2009
    Link to this post

    Hi Ivan,
    I haven't changed anything in the example code. I've deployed the code in sitefinity version 3.7

    I don´t know if sitefinity version will be related with this issue. Will be?

    Thanks for your quick reply
    Gema

  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 May 2017
    29 Oct 2009
    Link to this post
    Hello mgrp,

    Do you you the new backend architecture for Contacts module - Contacts IntraSite module and ContactsPuggable module , because this one showed above applies for Sitefinity 3.5.

    I have these one on my local development server and they run without problems. The same also applies for 3.5 version.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  9. Gema
    Gema avatar
    46 posts
    Registered:
    02 Oct 2009
    29 Oct 2009
    Link to this post
    Hi Ivan,
    This is the code I downloaded to try secured modules intra-linq-secured module

    I deployed the same module without security and it works fine. So, I can´t understand what´s wrong.
    May be I´ve missed something. I don´t know.

    I will try your sample.

    Thanks

  10. Gema
    Gema avatar
    46 posts
    Registered:
    02 Oct 2009
    30 Oct 2009
    Link to this post
    Hi Ivan,
    I´ve solved de problem.

    My problem was my GlobalPermissions class was implementing ISecured, but in Sitefinity version 3.7, GlobalPermissions class has to inherit SecuredBase

    Thanks for your sample code,
    Gema
Register for webinar
10 posts, 0 answered