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

Forums / Developing with Sitefinity / New module doesn't appear

New module doesn't appear

11 posts, 0 answered
  1. Clyde
    Clyde avatar
    15 posts
    Registered:
    02 May 2008
    19 Sep 2008
    Link to this post
    I created a custom data type and module to edit it. Worked great the first time. Then I created a second but this time, it will not show up in the modules menu. I've check 5 times and all appears to be correct but I can find no errors reported anywhere and it isn't on the menu.

    How do you debug this type of problem? Is there some way to validate that a module is configured correctly?
  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    19 Sep 2008
    Link to this post
    one thing you can try is to make sure the module is actually installed (even if not in the menu) by navigating it manually with a link like

    http://yoursite/Sitefinity/Admin/Modules.aspx?module=MODULENAME

    using the name you set for your module when you created it. if it's not loaded you might get some error messages that will be helpful. if it works, well then I'm out of ideas :)

    hope that was helpful
  3. Clyde
    Clyde avatar
    15 posts
    Registered:
    02 May 2008
    19 Sep 2008
    Link to this post
    I did try this already and I get an error about 'key not found in dictionary' which seems to indicate that the module is never loaded.
  4. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    19 Sep 2008
    Link to this post
    well the only thing I can guess is that there is a problem with the module itself. is this intrasite in the app_code folder or pluggable module? did you inherit from the correct module class?

    sorry I couldnt be more helpful
  5. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    20 Sep 2008
    Link to this post
    Hi SelArom,

    have you registered your new module with Sitefinity in web.config. Here is the section where you should add the registration of your module:
    <modules> 
            <add type="Telerik.Cms.Engine.GenericContentModule, Telerik.Cms.Engine"/>  
            <add type="Telerik.News.NewsModule, Telerik.News"/>  
            <add type="Telerik.Blogs.BlogsModule, Telerik.Blogs"/>  
            <add type="Telerik.Lists.ListModule, Telerik.Lists"/>  
            <add type="Telerik.Polls.PollModule, Telerik.Polls"/>  
            <add type="Telerik.Forums.ForumsModule, Telerik.Forums"/>  
            <add type="Telerik.Libraries.LibrariesModule, Telerik.Libraries"/>  
            <add type="Telerik.Events.EventsModule, Telerik.Events"/>  
            <add type="Telerik.Notifications.Newsletters.NewsletterModule, Telerik.Notifications" /> 
            <add type="Telerik.Testimonials.TestimonialsModule, Telerik.Testimonials" /> 
          </modules> 

    Let us know if this solves your problem.

    All the best,
    Ivan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    20 Sep 2008
    Link to this post
    thanks but it's actually not my module, I was just offering my help :)

    but I though intra site modules developed in app_code didn't need to be registered, but were picked up automatically?
  7. Clyde
    Clyde avatar
    15 posts
    Registered:
    02 May 2008
    20 Sep 2008
    Link to this post
    It is registered as a module along with the custom data type - Venue shows up, VEvent does not.

    <?xml version="1.0"?>

      <sectionGroup name="telerik">
       <section name="venue" type="DM.Fnf.Venue.Configuration.SectionHandler, DM.Fnf.Venue" requirePermission="false" />
       <section name="vevent" type="DM.Fnf.VEvent.Configuration.SectionHandler, DM.Fnf.VEvent" requirePermission="false" />
      </sectionGroup>

     <telerik>

      <framework>
       <modules>
        <add type="DM.Fnf.VEvent.VEventModule, DM.Fnf.VEvent" />
        <add type="DM.Fnf.Venue.VenueModule, DM.Fnf.Venue" />
       </modules>
      </framework>

      <cmsEngine defaultProvider="Generic_Content">
       <providers>
        <clear />

        <add name="VEvent" urlRewriteFormat="[Name].aspx" urlWhitespaceChar="_" visible="False" defaultMetaField="Name" securityProviderName="" allowVersioning="False" applicationName="/VEvent" versioningProviderName="" commentsModeration="true" connectionStringName="GenericContentConnection" type="Telerik.Cms.Engine.Data.Providers.DefaultProvider, Telerik.Cms.Engine.Data" />
        <add name="Venue" urlRewriteFormat="[Name].aspx" urlWhitespaceChar="_" visible="False" defaultMetaField="Name" securityProviderName="" allowVersioning="False" applicationName="/Venue" versioningProviderName="" commentsModeration="true" connectionStringName="GenericContentConnection" type="Telerik.Cms.Engine.Data.Providers.DefaultProvider, Telerik.Cms.Engine.Data" />
       </providers>

       <metaFields>

        <add key="Venue.Summary" valueType="LongText" visible="True" searchable="True" sortable="True" defaultValue="Short summary of this venue" mandatory="True" />
        <add key="Venue.Street" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" />
        <add key="Venue.Neighborhood" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" />
        <add key="Venue.City" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" />
        <add key="Venue.Country" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" />
        <add key="Venue.Geomapping_Data" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue="" />

        <add key="VEvent.Title" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" />
        <add key="VEvent.Event_Start" valueType="DateTime" visible="True" searchable="True" sortable="True" defaultValue="#Now" />
        <add key="VEvent.Event_End" valueType="DateTime" visible="True" searchable="True" sortable="True" defaultValue="#Now" />
        <add key="VEvent.Category" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" />

       </metaFields>
      </cmsEngine>

      <venue defaultGenericProvider="Venue">
       <genericContentProviders>
        <add providerName="Venue" urlRewriteFormat="[Name].aspx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" />
       </genericContentProviders>
      </venue>

      <vevent defaultGenericProvider="VEvent">
       <genericContentProviders>
        <add providerName="VEvent" urlRewriteFormat="[Name].aspx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" />
       </genericContentProviders>
      </vevent>

     </telerik>
    </configuration>


  8. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    26 Sep 2008
    Link to this post
    Hello Clyde,

    your configuration seems to be in order. Can you please send us the files for the module together with your web.config file, so that we can inspect it here locally. We'll send you the solution as soon as possible.

    Greetings,
    Ivan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  9. Joe
    Joe avatar
    138 posts
    Registered:
    24 Sep 2012
    26 Sep 2008
    Link to this post
    Hello Clyde,

    I just wanted to follow up. We have not received your configuration files. Has this issue been resolved?

    All the best,
    Joe
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  10. Clyde
    Clyde avatar
    15 posts
    Registered:
    02 May 2008
    26 Sep 2008
    Link to this post
    I never found the issue but simply deleted the module and started over. I have since created multiple modules and they all worked fine.

    This is no longer a problem but does raise the issue of a silent failure that is hard to resolve. If a module failes to be loaded, it should generate some hard error or at least drop an event in the event log.
  11. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    26 Sep 2008
    Link to this post
    Hi Clyde,

    I agree that in such cases there should be a record of the failed module load, however, without inspecting the code it is hard to say what could have caused the problem and was Sitefinity ever aware of this problem. We will however go through the module registration mechanism once again to see what kind of improvements could be made.

    I am glad that you are doing well with the module development. Let us know if there is anything else we can do for you.

    Sincerely yours,
    Ivan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
11 posts, 0 answered