This is a migrated thread and some comments may be shown as answers.

Telerik.OpenAccess You must add a reference to assembly

2 Answers 509 Views
Integration with other products
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Beata
Top achievements
Rank 1
Beata asked on 25 Jun 2015, 12:51 PM

 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 Answers, 1 is accepted

Sort by
0
Doroteya
Telerik team
answered on 29 Jun 2015, 12:33 PM
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:
<EnhancerAssembly>$(SolutionDir)\packages\Telerik.DataAccess.Fluent.YYYY.Q.MDD.X\tools\enhancer\enhancer.exe</EnhancerAssembly>
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.


Regards,
Doroteya
Telerik
 
Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
0
Victor
Top achievements
Rank 1
answered on 18 May 2017, 09:02 PM

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. 

Tags
Integration with other products
Asked by
Beata
Top achievements
Rank 1
Answers by
Doroteya
Telerik team
Victor
Top achievements
Rank 1
Share this question
or