More in this section

Forums / Developing with Sitefinity / Upgrading existing 3.5 module to 3.6

Upgrading existing 3.5 module to 3.6

2 posts, 0 answered
  1. Shane
    Shane avatar
    28 posts
    Registered:
    27 Jul 2008
    07 May 2009
    Link to this post

    Hi Guys,

    We are trying to specify a custom control templates for our bytheway news provider / module in the admin section.

    <news defaultGenericProvider="News"
                <genericContentProviders> 
                    <add providerName="News" publicationDateField="Publication_Date" expirationDateField="Expiration_Date" thumbnailUrlField="Thumbnail" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_"/> 
                    <add providerName="ByTheWay" publicationDateField="Publication_Date" expirationDateField="Expiration_Date" thumbnailUrlField="Thumbnail" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_"/> 
                </genericContentProviders> 
            </news> 



    We have created a Controls Config file and specified the custom view for the ByTheWay news provider. We are pointing at the out of the box NewsItemEdit and NewsItemNew view as supplied in the external template download.

    <controlsConfig> 
        <viewMap> 
            <viewSettings hostType="Telerik.News.WebControls.Admin.NewsItemEdit"
                <additionalTemplates> 
                    <add key="ByTheWay" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/ByTheWay/NewsItemEdit.ascx" /> 
                </additionalTemplates> 
            </viewSettings> 
            <viewSettings hostType="Telerik.News.WebControls.Admin.NewsItemNew"
                <additionalTemplates> 
                    <add key="ByTheWay" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/ByTheWay/NewsItemNew.ascx" /> 
                </additionalTemplates> 
            </viewSettings> 
        </viewMap> 
    </controlsConfig> 


     When we try and create/edit a ByTheWay article we the below exception

    Server Error in '/' Application. 
    The method or operation is not implemented. 
    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.NotImplementedException: The method or operation is not implemented. 
     
    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: 
     
    [NotImplementedException: The method or operation is not implemented.] 
       Telerik.Libraries.WebControls.DefaultTemplate.InstantiateIn(Control container) +55 
       Telerik.Libraries.WebControls.ButtonSelector.CreateChildControls() +96 
       System.Web.UI.Control.EnsureChildControls() +87 
       System.Web.UI.Control.PreRenderRecursiveInternal() +44 
       System.Web.UI.Control.PreRenderRecursiveInternal() +171 
       System.Web.UI.Control.PreRenderRecursiveInternal() +171 
       System.Web.UI.Control.PreRenderRecursiveInternal() +171 
       System.Web.UI.Control.PreRenderRecursiveInternal() +171 
       System.Web.UI.Control.PreRenderRecursiveInternal() +171 
       System.Web.UI.Control.PreRenderRecursiveInternal() +171 
       System.Web.UI.Control.PreRenderRecursiveInternal() +171 
       System.Web.UI.Control.PreRenderRecursiveInternal() +171 
       System.Web.UI.Control.PreRenderRecursiveInternal() +171 
       System.Web.UI.Control.PreRenderRecursiveInternal() +171 
       System.Web.UI.Control.PreRenderRecursiveInternal() +171 
       System.Web.UI.Control.PreRenderRecursiveInternal() +171 
       System.Web.UI.Control.PreRenderRecursiveInternal() +171 
       System.Web.UI.Control.PreRenderRecursiveInternal() +171 
       System.Web.UI.Control.PreRenderRecursiveInternal() +171 
       System.Web.UI.Control.PreRenderRecursiveInternal() +171 
       System.Web.UI.Control.PreRenderRecursiveInternal() +171 
       System.Web.UI.Control.PreRenderRecursiveInternal() +171 
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842 
     
     

    Any assistance you can give is appreciated.

    Cheers,

    Shane and Co
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    11 May 2009
    Link to this post
    Hello Shane,

    The mapping you have seems to be correct. Make sure that you have specified the provider name under the following section of your web.config file and you have added your metakyes as well.

    Sample:

    <cmsEngine defaultProvider="Generic_Content">   
          <providers> 
            <clear/> 
    <add name="ByTheWay" allowLocalization="True" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Title" securityProviderName="" allowVersioning="True" applicationName="/ByTheWay" versioningProviderName="" commentsModeration="true" connectionStringName="GenericContentConnection" type="Telerik.News.Data.DefaultNewsProvider, Telerik.News.Data"/> 

    Also check whether you have tried to map ButtonSelector control in ControlsConfig file which throws the error.( check whether you have made any changes to buttonSelector template located under Sitefinity/Admin/controlTemplates/Libraries/Dialogs)The error is thrown from Telerik.Libraries.WebControls.ButtonSelector

    If the problem persists, write back  to us.

    All the best,
    Ivan Dimitrov
    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.
2 posts, 0 answered