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

Forums / Bugs & Issues / Custom DownloadList upgrade to 3.7 error

Custom DownloadList upgrade to 3.7 error

4 posts, 1 answered
  1. Anders Olsen
    Anders Olsen avatar
    9 posts
    Registered:
    28 May 2010
    01 Jun 2010
    Link to this post
    I used a custom DownloadList in the version 3.2, which was created in this way
    http://www.sitefinity.com/devnet/forums/sitefinity-3-x/developing-with-sitefinity/problems-inheriting-from-downloadlist.aspx

    Unfortunately, it stop working after upgrading to the version 3.7 of Sitefinity. I get an error message (you can see it bellow)

    Any ideas?



    Server Error in '/WebNew' Application.

    Invalid resource name (Telerik.Libraries.Resources.ControlTemplates.Frontend.DownloadList.ascx) for assembly (App_Code.xkyyg_ir, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null) or empty template.

    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.ArgumentException: Invalid resource name (Telerik.Libraries.Resources.ControlTemplates.Frontend.DownloadList.ascx) for assembly (App_Code.xkyyg_ir, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null) or empty template.

    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: 

    [ArgumentException: Invalid resource name (Telerik.Libraries.Resources.ControlTemplates.Frontend.DownloadList.ascx) for assembly (App_Code.xkyyg_ir, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null) or empty template.]
       Telerik.Framework.Web.ControlUtils.GetTemplate(String virtualPath, String resourceFileName, Type assemblyInfo, Type localizationAssemblyInfo) +853
       Telerik.Framework.Web.ControlUtils.GetTemplate(String virtualPath, String resourceFileName, Type assemblyInfo, Type localizationAssemblyInfo, Type templateMapType, String additionalTemplateKey) +428
       Telerik.Libraries.DownloadList.get_ItemListTemplate() +183
       Telerik.Cms.Engine.WebControls.ContentView.get_ListContainer() +82
       Telerik.Cms.Engine.WebControls.ContentView.CreateContentList() +69
       Telerik.Cms.Engine.WebControls.ContentView.CreateChildControls() +5555
       Telerik.Libraries.WebControls.LibraryViewBase.CreateChildControls() +29
       Telerik.Libraries.DownloadList.CreateChildControls() +53
       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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    01 Jun 2010
    Link to this post
    Hi Anders Olsen,

    You should override the properties below

    public override string ItemListTemplatePath
    {
        get
        {
            return "PATH TO YOUR TEMPLATE";
        }
     
    }
     
    public override string SingleItemTemplatePath
    {
        get
        {
            return "PATH TO YOUR TEMPLATE";
        }
     
    }
     
    public override Type LocalizationAssemblyInfo
    {
        get
        {
            return this.GetType();
        }
        set
        {
            base.LocalizationAssemblyInfo = value;
        }
    }
     
    public override Type AssemblyInfo
    {
        get
        {
            return this.GetType();
        }
        set
        {
            base.AssemblyInfo = value;
        }
    }

    You can download all templates ( external ) from you account >> Downloads section. There is an archive - ExternalTemplate.zip.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
    Answered
  3. Anders Olsen
    Anders Olsen avatar
    9 posts
    Registered:
    28 May 2010
    02 Jun 2010
    Link to this post
    Thank you very much for the quick answer!
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    02 Jun 2010
    Link to this post
    Hello Anders Olsen,

    Let me know if there are any further troubles.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Register for webinar
4 posts, 1 answered