Telerik.OpenAccess You must add a reference to assembly

Thread is closed for posting
3 posts, 0 answers
  1. Beata
    Beata avatar
    1 posts
    Member since:
    Jun 2015

    Posted 25 Jun 2015 Link to this post

     How can I add a reference to assembly? I have got an error:


    Error 2 The type 'Telerik.OpenAccess.SPI.dataobjects.PersistenceCapable' is defined in an assembly that is not referenced. You must add a reference to assembly 'Telerik.OpenAccess, Version=2015.1.225.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342'. 

  2. Doroteya
    Doroteya avatar
    498 posts

    Posted 29 Jun 2015 Link to this post

    Hello Beata,

    Based on the provided information, I assume that your project consumes the Telerik Data Access NuGet packages and that recently it was upgraded to consume the latest version of the packages. 

    If this is the case, you need to check the following clause in the .csproj file of the project that holds the model:
    This is the path to the location where the Data Access Enhancer tool should reside. With a successful installation of the latest Fluent NuGet package, YYYY.Q.MDD.X should be 2015.2.624.1; when you navigate to this location on your local storage, you have to find the enhancer.exe file.

    I also suggest to you to check the references to the Telerik.OpenAccess.* assemblies in your project. They should point to version 2015.2.624.1 as well.

    In order to avoid such errors in the future, you need to restart Visual Studio after the upgrade of the Data Access NuGet packages.

    If the scenario on your side is not the outlined one, it would be helpful to provide me with the details about the setup.

    I hope this helps. Let me know how the things on your side are.

    Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
  3. Victor
    Victor avatar
    24 posts
    Member since:
    Feb 2015

    Posted 18 May 2017 in reply to Doroteya Link to this post

    I have the same issue.

    Can you be more specific how to overcome the issue?

    In my case, I create a second project inside the same solution with telerik already installed. 

Back to Top