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

Forums / Deployment / upgrade- custom control

upgrade- custom control

9 posts, 0 answered
  1. Satya Vepa
    Satya Vepa avatar
    31 posts
    Registered:
    03 Dec 2009
    12 Jan 2010
    Link to this post


    We have installed SP2 . after installation started getting the error

    Could not load file or assembly 'Telerik.Cms.Web.UI, Version=3.7.1990.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    This is a custom control built from Sitefinity control.
    Do we need to recompile/trebuild  the custom control whenever we upgrade sitefinity .Is there a way for the custom control to use new version of Telerik/sitefinity new dlls

    Thanks
    Satya
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 Jan 2010
    Link to this post
    Hi Satya Vepa,

    You have to recompile the control. If you do not want to make new compiled version each time you upgrade your project use App_Code folder to store the custom controls.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Satya Vepa
    Satya Vepa avatar
    31 posts
    Registered:
    03 Dec 2009
    12 Jan 2010
    Link to this post

    Thanks for the Reply Ivan

    If Store my control dll in App_code folder, can it be used insidte sitefinity designer. Because I am using this control in page/Template design in sitefinity.

     

  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    13 Jan 2010
    Link to this post
    Hello Satya Vepa,

    There should not be functional differences between the classes in App_Code or if they are in class library.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Satya Vepa
    Satya Vepa avatar
    31 posts
    Registered:
    03 Dec 2009
    13 Jan 2010
    Link to this post
    Actually I built the control as dll and uploading into sitefinity thru Upload a Control as .dll file
    I ythink sitefinity determines where to copy the control (bin folder). So I can't keep it in app_code
    Still I want to make sure this control is compatible with the future versions of sitefinity. Right now its depending the version no of Telerik.cms.web.ui.dll
    Any settings or any code to include when I compile the control to build dll , so that it picks up any version say > 3.0 of Telerik.cms.web.ui.dll

    Thanks
    Satya
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    14 Jan 2010
    Link to this post
    Hello Satya Vepa,

    When the compilation happens, the .net compiler uses the version and the public key of the assemblies, so your controls should reference exactly this version of assembly, with this version of the public key. When ASP.NET finds a control, referencing assembly with an old version the execution is stopped. This is not controled by Sitefinity is ASP.NET Framework behavior.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Satya Vepa
    Satya Vepa avatar
    31 posts
    Registered:
    03 Dec 2009
    15 Jan 2010
    Link to this post
    I agree with you. But my question is is there a way not to include the version info when i build the control or to speicify a minimum version the control is dependent on so that it works with any version higher than thje mentioned one. otherwise everytime we upgrade sitefinity we have to re build all our custom controls to match the version no.

    Thanks
    Satya
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    17 Jan 2010
    Link to this post
    Hello Satya Vepa,

    The problem is not related to the version of the dll you compile it is related to the version of the dlls you are referring. This is basic ASP.NET knowledge and it does not have anything to do with Sitefinity. It is related to class library compiling.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  9. Satya Vepa
    Satya Vepa avatar
    31 posts
    Registered:
    03 Dec 2009
    18 Jan 2010
    Link to this post
    Thanks for your reply. i agree with you. But what I am asking is whether you know any setting or way to tell the compiler not to look for specific version numbers or to lokk for version number greater than a specific number
Register for webinar
9 posts, 0 answered