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

Forums / Developing with Sitefinity / Updated Contacts Module for 3.5

Updated Contacts Module for 3.5

7 posts, 0 answered
  1. Joseph
    Joseph avatar
    26 posts
    Registered:
    28 Oct 2008
    22 Jan 2009
    Link to this post
    Has anyone successfully updated the sample contacts module for use within Sitefinity 3.5? Many of the references appear to be configured for the previous architecture of 3.2 or earlier. Because of the delay in releasing 3.6 I need to move forward quickly with an old-style module and I am hoping to use the contacts module as a building block.
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    22 Jan 2009
    Link to this post
    Hello Joseph,

    Attached is the module, compiled for Sitefinity 3.5SP1.
    Don't hesitate to contact us if you have other questions.

    Greetings,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Joseph
    Joseph avatar
    26 posts
    Registered:
    28 Oct 2008
    22 Jan 2009
    Link to this post
    Thanks Georgi, that's wonderful. Do you know where I can find the documentation for this iteration? There are many different references when I search, I think I've seen it before when I initially looked, but I'm having difficulty finding it for this now.
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    23 Jan 2009
    Link to this post
    Hello Joseph,

    The only difference in the module for this version, is that it is build with references to 3.5. In other words, there is no change in the architecture, compared to 3.2. You may use the same documentation.

    In our future releases of the Dev.Manual, we will include the version number, to which the article applies.

    Best wishes,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Joseph
    Joseph avatar
    26 posts
    Registered:
    28 Oct 2008
    29 Jan 2009
    Link to this post
    Super-close to getting this to work, but running into one error when I log into the admin, not sure why:
     

    Server Error in '/ClientName' Application.

    Object reference not set to an instance of an object.

    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.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:

    Line 61:             get
    Line 62:             {
    Line 63: return ConfigHelper.Handler.Providers;Line 64:             }
    Line 65:         }

    Source File: C:\Inetpub\wwwroot\ClientName\Sample.Contacts\ContactsManager.cs    Line: 63

    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
       Sample.Contacts.ContactsManager.get_ProvidersSettings() in C:\Inetpub\wwwroot\ClientName\Sample.Contacts\ContactsManager.cs:63
       Telerik.ManagerBase`1.Initialize() +496
       Telerik.ManagerBase`1..ctor(String providerName) +50
       Telerik.ManagerBase`1..ctor() +35
       Sample.Contacts.ContactsManager..ctor() in C:\Inetpub\wwwroot\ClientName\Sample.Contacts\ContactsManager.cs:30
       Sample.Contacts.ContactsManager.get_Providers() in C:\Inetpub\wwwroot\ClientName\Sample.Contacts\ContactsManager.cs:105
       Sample.Contacts.ContactsManager.get_SecurityRoots() in C:\Inetpub\wwwroot\ClientName\Sample.Contacts\ContactsManager.cs:92
       Sample.Contacts.ContactsModule.get_SecurityRoots() in C:\Inetpub\wwwroot\ClientName\Sample.Contacts\ContactsModule.cs:97
       Telerik.Security.Permissions.SecuredModule.CanCreate() +90
       Admin_Default.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\ClientName\ClientName\Sitefinity\Admin\Default.aspx.cs:269
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       Telerik.Cms.Web.CmsPageBase.OnLoad(EventArgs e) +82
       Telerik.Cms.Web.AdminPage.OnLoad(EventArgs e) +44
       Admin_Default.OnLoad(EventArgs e) in c:\Inetpub\wwwroot\ClientName\ClientName\Sitefinity\Admin\Default.aspx.cs:69
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
  6. Kameo
    Kameo avatar
    13 posts
    Registered:
    23 Feb 2006
    31 Jan 2009
    Link to this post
    Looks like the provider is not defined in your web.config the following should be in your web.config in the <telerik/> section. 

    <

     

    contacts defaultProvider="Sitefinity">
    <
    providers
    >
    <
    clear
    />
    <
    add name="Sitefinity" securityProviderName="" type="Sample.Contacts.Data.DefaultProvider, Sample.Contacts.Data" connectionStringName="DefaultConnection" visible="true" controlPanelListTemplate="~/Sitefinity/Admin/ControlTemplates/Contacts/ControlPanelListTemplate.ascx" controlPanelInsertEditTemplate="~/Sitefinity/Admin/ControlTemplates/Contacts/ControlPanelInsertEditTemplate.ascx" contactsPermissionsTemplate="~/Sitefinity/Admin/ControlTemplates/Contacts/ContactsPermissionsTemplate.ascx" contactEditorTemplate="~/Sitefinity/Admin/ControlTemplates/Contacts/ContactEditorTemplate.ascx" commandPanelTemplate="~/Sitefinity/Admin/ControlTemplates/Contacts/CommandPanelTemplate.ascx" contactsListTemplate="~/Sitefinity/ControlTemplates/Contacts/ContactsListTemplate.ascx" singleContactTemplate="~/Sitefinity/ControlTemplates/Contacts/SingleContactTemplate.ascx"
    />
    </
    providers
    >
    </
    contacts
    >

    If it IS there then check the ConfigurationHelper.cs file in the Configuration folder in Sample.Contacts it should say 

     

    private

     

    static SectionHandler handler =
    (SectionHandler)ConfigurationManager.GetSection(
    "telerik/contacts");

     

  7. Joseph
    Joseph avatar
    26 posts
    Registered:
    28 Oct 2008
    31 Jan 2009
    Link to this post
    Thanks Kameo. Both sections matched up. I went with a fresh install and got it to work, somewhere along the line something got messed up, not worth tracking down.
Register for webinar
7 posts, 0 answered