More in this section

Forums / Developing with Sitefinity / Hey Ivan we need you over at the Sitefinity blog!

Hey Ivan we need you over at the Sitefinity blog!

8 posts, 0 answered
  1. UI Crew
    UI Crew avatar
    151 posts
    Registered:
    27 Sep 2012
    27 Nov 2007
    Link to this post
    Hi Telerik,

    If Ivan is sitting near any of you could you give him a gentle prod to take a look at some comments on the Sitefinity blog eg. http://blogs.sitefinity.com/Ivan/Post/07-11-07/sample_events_module_building_a_pluggable_module_based_on_generic_content_module.aspx
    and see if he could shed some light on questions and comments posted there?

    His fan base needs him! :-)

    Cheers,

    Seth
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    27 Nov 2007
    Link to this post
    Hello Seth,

    If I understand correctly from your blog post, the problem is "Missing provider: Events" error. Most probably you did not make all necessary changes in web.config. Here are the steps:

    1. Add configSection for events module to your web.config:

    <configSections> 
        <sectionGroup name="telerik"
            <section name="events" type="Sample.Events.Configuration.SectionHandler, Sample.Events" requirePermission="false" /> 

    2. Add the following in the <modules> section of web.config:

    <framework> 
       <modules> 
          <add type="Sample.Events.EventsModule, Sample.Events"/> 

    3. Add the following in <cmsEngine> -> <providers> section:

    <cmsEngine defaultProvider="Generic_Content"
        <providers> 
            <clear/> 
            <add name="Events" visible="False" defaultMetaField="Name" applicationName="/Events" securityProviderName="" allowVersioning="True" allowLocalization="False" versioningProviderName="" allowWorkflow="False" type="Sample.Events.Data.DefaultEventsProvider, Sample.Events.Data" connectionStringName="GenericContentConnection"/> 

    4. Add the necessary meta fields in <metaFields> section:

    <metaFields> 
       <add key="Events.Name" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="Event name..."/> 
       <add key="Events.NewsCategories" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue=""/> 
       <add key="Events.EventDates" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue=""/> 

    5. Add events section in <telerik> section:

    <events defaultGenericProvider="Events"
           <genericContentProviders> 
                <add providerName="Events" publicationDateField="Publication_Date" expirationDateField="Expiration_Date" urlDateTimeFormat="yy-MM-dd" urlRewriteFormat="[Publication_date]/[Title].aspx" urlWhitespaceChar="_" newsCategorySelectorTemplate="~/Sitefinity/Admin/ControlTemplates/Events/NewsCategorySelector.ascx" eventDatesSelectorTemplate="~/Sitefinity/Admin/ControlTemplates/Events/EventDatesSelector.ascx" eventsCalendarTemplate="~/Sitefinity/ControlTemplates/Events/EventsCalendarTemplate.ascx"/> 
           </genericContentProviders> 
    </events> 

    Hope this helps.

    Greetings,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI Crew
    UI Crew avatar
    151 posts
    Registered:
    27 Sep 2012
    27 Nov 2007
    Link to this post
    Hi Pepi,

    I will give this a go but I actually used the web.config that Ivan supplied in the blog.... so I would have thought it would be ok.

    Seth
  4. UI Crew
    UI Crew avatar
    151 posts
    Registered:
    27 Sep 2012
    29 Nov 2007
    Link to this post
    Hi Pepi,

    I followed your instuctions exactly and I wasn't missing anything and it still said the error message below. I also have used Ivan's exact web.config and it still didn't work.

    I have no idea what is wrong it seems a bit strange.

    Has anyone else tried this with success?

    Thanks,

    Seth
  5. Bob
    Bob avatar
    330 posts
    Registered:
    30 Dec 2016
    29 Nov 2007
    Link to this post
    Hello Seth Cleaver,

    have you referenced the Sample.Events and Sample.Events.Data from your website. Seems to me that the problem is that when you build the solution, .dll files are not output to the bin folder. So when the application is started it looks for the provider (because web.config tells it to), but the Sample.Events.dll and Sample.Events.Data.dll files are not there.

    I hope this helps.

    Greetings,
    Ivan
    the Telerik team


    Instantly find answers to your questions at the new Telerik Support Center
  6. UI Crew
    UI Crew avatar
    151 posts
    Registered:
    27 Sep 2012
    29 Nov 2007
    Link to this post
    Hi Ivan,

    Hey - I am dumb but not that dumb :-) No the dlls are definetly there my friend.

    There is no dlls for the es and hr folders however - is there meant to be?

    This is really puzzlling me as I am sure I have followed all instruction to the letter.

    So what I might do is open  support ticket and send you my project and then we can post the resolution back here as I am sure I won't be the only one with this issue.

    Is that ok?

    Seth


  7. UI Crew
    UI Crew avatar
    151 posts
    Registered:
    27 Sep 2012
    30 Nov 2007
    Link to this post
    Hi,

    Applying the hotfix for SP1 fixed my issue.

    Seth
  8. Sonya
    Sonya avatar
    231 posts
    Registered:
    24 Sep 2012
    30 Nov 2007
    Link to this post
    Hello Seth,

    Sure Seth, go ahead. You could open a support ticket and we will look further into the problem :)

    Regards,
    Sonya
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
8 posts, 0 answered