Adding new telerik DLLs adds Microsoft.SharePoint.dll and other sharepoint dlls

2 posts, 0 answers
  1. Sushrut
    Sushrut avatar
    1 posts
    Member since:
    Jul 2016

    Posted 18 Jul Link to this post


    I want to use auto complete box in my project. I was using Telerik.UI.Web dlls of version 2012.1.411.35. But in that versions of Telerik.Web.UI.dll auto complete control was not present. So I tried updating to new Telerik DLLs to veresion 2016.1.225.40.

    But as I add these new DLLs to project, it adds few SharePoint DLLs to bin folder like “Microsoft.SharePoint.dll”, “Microsoft.SharePoint.Search.dll” etc. 

    Then after deploying the web I am receiving error “Could not load file or assembly 'Microsoft.SharePoint.Search' or one of its dependencies. An attempt was made to load a program with an incorrect format.” error on site.

    What should be done so that these SharePoint dlls do not get added to my site.

    Thank you in advance.

  2. Peter Milchev
    Peter Milchev avatar
    111 posts

    Posted 20 Jul Link to this post


    Could you double check if you followed correctly the steps described in the Upgrade project article? My guess is that your project has references to the Microsoft SharePoint assemblies and that is why they are added in the bin folder. I would suggest you take a look at this forum thread for more information on how to prevent the copying of the assemblies to the bin folder.

    Peter Milchev
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top