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

[Solved] Inclusion in projects issue

2 Answers 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Clark Roberts
Top achievements
Rank 1
Clark Roberts asked on 07 Mar 2011, 09:55 PM
I have multiple projects that are based on EntityFramework and since I installed OpenAccess I've had to makes some updates to those projects. These projects do not have OpenAccess referenced or in anyway refered too, however, when I push the project out to my server it errors indicating that it can't open the OpenAccess.dll. Any ideas?

2 Answers, 1 is accepted

Sort by
0
Clark Roberts
Top achievements
Rank 1
answered on 07 Mar 2011, 10:32 PM
I resolved this by un-installing OpenAccess. Re-building my code, pushed my project to the server and it worked fine. My group is considering moving from EntityFramework to OpenAccess, however this might be an issue.
0
Alexander
Telerik team
answered on 10 Mar 2011, 05:33 PM
Hi Clark Roberts,

Is it possible that you have added and then removed an OpenAccess model from your project? In order to run properly OpenAccess adds a specific post-build step to the project file where the model is contained. This post-build step requires the OpenAccess assemblies to be loaded and could cause the behavior you are observing. So except removing any references to the OpenAccess assemblies, you may also need to open the project file in a text editor and delete the following line, if it is there:
<Import Condition="Exists('$(MSBuildExtensionsPath)\OpenAccess.targets')" Project="$(MSBuildExtensionsPath)\OpenAccess.targets" />

Please let us know if this is not the case, the behavior you described is definitely wrong and not expected.

Regards,
Alexander
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
General Discussions
Asked by
Clark Roberts
Top achievements
Rank 1
Answers by
Clark Roberts
Top achievements
Rank 1
Alexander
Telerik team
Share this question
or