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

Forums / Set-up & Installation / These code with signed red font don't work after upgrading from V2.7 to V3.0

These code with signed red font don't work after upgrading from V2.7 to V3.0

2 posts, 0 answered
  1. Developer
    Developer avatar
    10 posts
    Registered:
    02 Aug 2007
    27 Sep 2007
    Link to this post

    using System;
    using System.Collections;
    using System.Data;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    using Telerik.WebControls;
    using Telerik.ContentManagement;

    namespace Telerik.ContentManagement.Controls.Modules
    {
     public class ItemCommandsTemplate : ITemplate
     {
      private WorkflowControlSupporter supporter = null;
      
      public ItemCommandsTemplate(WorkflowControlSupporter supporter)
      {
       this.supporter = supporter;
      }

      public void InstantiateIn(Control container)
      {
       WorkflowCommandButtons holder = new WorkflowCommandButtons(supporter);
       holder.DataBinding += new EventHandler(btn_DataBinding);
       container.Controls.Add(holder);
      }

      private void btn_DataBinding(object sender, EventArgs e)
      {
       WorkflowCommandButtons holder = (WorkflowCommandButtons) sender;
       GridDataItem container = (GridDataItem) holder.NamingContainer;
       Guid guid = (Guid)DataBinder.Eval(container.DataItem, "ItemGuid");
       WorkflowActions actions = (WorkflowActions)DataBinder.Eval(container.DataItem, "Actions");
       OuterContentStatus status = (OuterContentStatus)DataBinder.Eval(container.DataItem, "Status");
       holder.Initialize(guid, actions, status);
      }
     }
    }
    =========================================================
    These code with signed red font  work very well in sitefinity V2.7.
    But these code with signed red font don't work  after upgrading from V2.7 to V3.0. 
    I'm sure that  it's because the new version .dll files had some big changes. 
    But how to fix it? 

    Thanks in advance.

    Evan

  2. Vlad
    Vlad avatar
    498 posts
    Registered:
    15 Jul 2016
    27 Sep 2007
    Link to this post
    Hello Developer,

    As you maybe know, Sitefinity 3.0 is not combatible with the old versions, so it is not possible to upgrade v2.7 to 3.0. Sitefinity 3.0 is written from scratch and has a completely new API, none of the code and database in v2.7 are relevant to v3.0. In the practice, Sitefinity 3.0 is a completely new solution.
    Also, the modules written for v2.7 will not work for 3.0. They should be converted to match the new module requirements described in the developer manual and this Sitefinity blog.

    However, this error is because of the missing of TelerikCms.dll assembly from the Sitefinity 2.7 in the bin folder of your project.

    All the best,
    Vlad
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
2 posts, 0 answered