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

Forums / Developing with Sitefinity / Contacts Module Documentation

Contacts Module Documentation

19 posts, 0 answered
  1. Alisha
    Alisha avatar
    23 posts
    Registered:
    09 Jun 2008
    29 Jan 2009
    Link to this post
    Where can I find documentation on the Contacts Module?  I have read the limited information in the Developer Manual already.  Is there anything more that this?

    Thank you,
    Alisha
  2. Joseph
    Joseph avatar
    26 posts
    Registered:
    28 Oct 2008
    29 Jan 2009
    Link to this post
    Which version of the contacts module do you have? There are a number of different downloads and scattered docs, I've been going through a lot of it so maybe I can help you find it, just let me know.
  3. Alisha
    Alisha avatar
    23 posts
    Registered:
    09 Jun 2008
    29 Jan 2009
    Link to this post
    I am using the latest Beta.  Mainly, I am looking for instructions on how to incorporate this in my project. 

    Thanks for your help!
  4. Joseph
    Joseph avatar
    26 posts
    Registered:
    28 Oct 2008
  5. Alisha
    Alisha avatar
    23 posts
    Registered:
    09 Jun 2008
    29 Jan 2009
    Link to this post
    yes
  6. Joseph
    Joseph avatar
    26 posts
    Registered:
    28 Oct 2008
    29 Jan 2009
    Link to this post
    There is an instructions document in the project when you create a new module using the download on this page:

    http://www.sitefinity.com/help/developer-manual/adding-new-modules-pluggable-bare-bones.html

    It tells you what to modify to install the module.
  7. Alisha
    Alisha avatar
    23 posts
    Registered:
    09 Jun 2008
    29 Jan 2009
    Link to this post
    Thank you for your help, but this is very frustrating.  I can get the sample module installed fine.  But I want the contacts module and it doesn't show up as a template in Visual Studio so I can't import it correctly and there are no instructions on how to imcorporate it once it is in your project. 
  8. Joseph
    Joseph avatar
    26 posts
    Registered:
    28 Oct 2008
    29 Jan 2009
    Link to this post
    I understand your pain.

    Have you created a solution in Visual Studio that incorporates your website and references your Contacts module project?

    If not, create a solution from the "File" menu... "New Project" > "Visual C#" > "Web" > "ASP.NET Web Application", and tell it what you want to call it and where you want it to live. For me: Name = ClientName, Location = C:\Inetpub\wwwroot\, SolutionName = ClientName, and check "Create directory for solution".

    Unzip the Contacts module, I've relocated the files for the Sample.Contacts and Sample.Contacts.Data to "C:\Inetpub\wwwroot\ClientName\" so that they live in the same solution folder as my website folder "ClientName".

    From the "File" menu, "Add" > "Existing Project" and browse to "C:\Inetpub\wwwroot\ClientName\Sample.Contacts\Sample.Contacts.csproj", then click open.

    Follow the last step for "Sample.Contacts.Data" as well.

    Follow the instructions from the sample pluggable module project regarding replacing the appropriate DLLs and updating the "web.config" file.

    Let me know if that helps.
  9. Joseph
    Joseph avatar
    26 posts
    Registered:
    28 Oct 2008
    29 Jan 2009
    Link to this post
    I should have noted that if you already have a functioning Sitefinity build, creating a "Blank Solution" and using "File" > "Add" > "Existing Website" is a better option than "ASP.NET Web Application".
  10. Alisha
    Alisha avatar
    23 posts
    Registered:
    09 Jun 2008
    29 Jan 2009
    Link to this post
    Thanks for your help.  I think I have most if it done, however, it calling the RadComboBox.Net2 and I don't have that dll.  How do I get ahold of it?
  11. Joseph
    Joseph avatar
    26 posts
    Registered:
    28 Oct 2008
    29 Jan 2009
    Link to this post
    I believe that RadComboBox has been rolled into Telerik.Web.UI, you no longer need to reference a separate DLL.
  12. Alisha
    Alisha avatar
    23 posts
    Registered:
    09 Jun 2008
    29 Jan 2009
    Link to this post
    Once again...Thank you.  I think we are almost there.  The Contacts Module appears in Sitefinity but when I click it I get and error:

    A required control was not found in the template for "Sample.Contacts.WebControls.Admin.ControlPanel+ContactsListContainer". The control must be assignable form type "Telerik.Web.UI.RadGrid" and must have ID "contactsGrid".

    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.Web.HttpException: A required control was not found in the template for "Sample.Contacts.WebControls.Admin.ControlPanel+ContactsListContainer". The control must be assignable form type "Telerik.Web.UI.RadGrid" and must have ID "contactsGrid".
     

    and when I try to build the project it errors on:

    <

    radC:RadComboBox ID="department" runat="server"> </radC:RadComboBox>

     

  13. Joseph
    Joseph avatar
    26 posts
    Registered:
    28 Oct 2008
    29 Jan 2009
    Link to this post
    Can you post the code?
  14. Alisha
    Alisha avatar
    23 posts
    Registered:
    09 Jun 2008
    29 Jan 2009
    Link to this post
    I figured out the control part - it changed to 

    <

    telerik:RadComboBox ID="department" runat="server">

     

    since it now inherits from a different assembly.  I don't know where the other code it being called.  Just when I click on the Contacts Module inside of Sitefinity, it throws this error.
  15. Joseph
    Joseph avatar
    26 posts
    Registered:
    28 Oct 2008
    29 Jan 2009
    Link to this post
    It's actually looking at the grid, not the combo box. Can you at least provide the full error?
  16. Alisha
    Alisha avatar
    23 posts
    Registered:
    09 Jun 2008
    30 Jan 2009
    Link to this post

    A required control was not found in the template for "Sample.Contacts.WebControls.Admin.ControlPanel+ContactsListContainer". The control must be assignable form type "Telerik.Web.UI.RadGrid" and must have ID "contactsGrid".

    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.Web.HttpException: A required control was not found in the template for "Sample.Contacts.WebControls.Admin.ControlPanel+ContactsListContainer". The control must be assignable form type "Telerik.Web.UI.RadGrid" and must have ID "contactsGrid".

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [HttpException (0x80004005): A required control was not found in the template for "Sample.Contacts.WebControls.Admin.ControlPanel+ContactsListContainer". The control must be assignable form type "Telerik.Web.UI.RadGrid" and must have ID "contactsGrid".]
       Telerik.Cms.Web.UI.GenericContainer`1.FindControl(Type requiredType, String id, Boolean required) +202
       Telerik.Cms.Web.UI.GenericContainer`1.FindRequiredControl(String id) +66
       Sample.Contacts.WebControls.Admin.ContactsListContainer.get_ContactsGrid() +69
       Sample.Contacts.WebControls.Admin.ControlPanel.CreateListView() +393
       Sample.Contacts.WebControls.Admin.ControlPanel.CreateChildControls() +262
       System.Web.UI.Control.EnsureChildControls() +87
       System.Web.UI.Control.PreRenderRecursiveInternal() +50
       System.Web.UI.Control.PreRenderRecursiveInternal() +170
       System.Web.UI.Control.PreRenderRecursiveInternal() +170
       System.Web.UI.Control.PreRenderRecursiveInternal() +170
       System.Web.UI.Control.PreRenderRecursiveInternal() +170
       System.Web.UI.Control.PreRenderRecursiveInternal() +170
       System.Web.UI.Control.PreRenderRecursiveInternal() +170
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
  17. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    03 Feb 2009
    Link to this post
    Hi Alisha,

    Well, the reasons could be two:
    • The control template of your ControlPanel do not have the contactsGrid grid.
    • The worker process does not access to the control template. This usually happens if you drag and drop the template from a Zip archive to the destination directory.
    If this do not help, please attach your ControlPanel template to the thread. We will see if everything is alright in there.
    Greetings,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  18. Alisha
    Alisha avatar
    23 posts
    Registered:
    09 Jun 2008
    03 Feb 2009
    Link to this post
    Thank you for your response.  How do I investigate and/or addresss these issues?
  19. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    05 Feb 2009
    Link to this post
    Hello Alisha,

    I am sending you the original control template for the contacts module. You will see a control named contactsGrid inside:
    <telerik:RadGrid ID="contactsGrid" runat="server"  
                                 AutoGenerateColumns="False"  
                                 GridLines="None" 
                                 CssClass="listItems"  
                                 OnDataBound="contactsGrid_DataBound"  
                                 OnItemCommand="contactsGrid_ItemCommand" 
                                 OnItemDeleted="contactsGrid_ItemDeleted"

    This is the required control missing in your template.

    As for the second possibility, you should add the account under which the Asp.Net worker process is accessing the files, to the list of allowed users. Right Click on the module directory -> Properties -> Security -> Add. If you run IIS5, the user is <yourcomutername>\AspNet, and for the other versions of IIS - <yourcomutername>\Network Services.

    All the best,
    Georgi
    the Telerik team

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