Telerik.web references having errors in a .net web form application

2 posts, 0 answers
  1. Jassie
    Jassie avatar
    9 posts
    Member since:
    Dec 2018

    Posted 02 Jul 2019 Link to this post

    I am getting the following error, "The following assembly has dependencies on a version of the .NET Framework that is higher than the target and might not load correctly during runtime causing a failure: Telerik.Web.Design, Version=2018.1.117.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4. The dependencies are: System.Windows.Forms, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089. You should either ensure that the dependent assembly is correct for the target framework, or ensure that the target framework you are addressing is that of the dependent assembly"
    for the following Telerik items:, Telerik.Web.UI, and Telerik.Web.Design twice.

    I am using Visual Studio 2010 and pointing to the BIN 4.0 folder for the Telerik references. I get these messages if I use the 2018 or 2019 Telerik updates.

    In the last few months, I have installed visual studio 2012 on my workstation for another .net 2012 application that does not use the Telerik tool.

    To solve my problem, I am wondering if I should do one of the following:
    1. Uninstall visual studio 2012 from my workstation. I do not need this version for the application I was looking at previously.
    2. Upgrade my visual studio 2010 .net application to visual studio 2012. However I do not know if I will have upgrade issues with that code.
    3. Would you tell me what you suggest that I do?
  2. Rumen
    Rumen avatar
    14320 posts

    Posted 03 Jul 2019 Link to this post

    Hi Jassie,

    Such an error is observed when the ASP.NET Web Forms site or application references an assembly which is built against a newer .NET version than the .NET configuration of the current project.

    For example, if your project targets .NET 2.0 or 3.5, you will get this error because the Telerik assemblies that are referenced are built against .NET 4.0 (2018.1.117.40 - the last two digits represent the .NET version).

    When you install the controls you will see three Bin folders - Bin35, Bin40 and Bin45 so you need to take the assemblies from the respective one, according to your project's .NET target. Please make sure that the assembly is correct for the target framework and then you should not encounter this error.

    Best Regards,
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top