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

I added the reference Telerik.OpenAccess to my project, but when building it does not appearing the the References folder of my MVC4 App.

1 Answer 77 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.
Hunter
Top achievements
Rank 1
Hunter asked on 03 Aug 2013, 05:15 AM
I created a new KendoUI MVC4 project. During setup I chose to skip adding an Open Access Library since I already had one created.

The first thing I did was add the connection string from my OpenAccess Library app.config file to my project's Web.config file.
The second thing I did was right click References > Add Reference
I selected the following 3 references:
Telerik.OpenAccess.35.Extensions
Telerik.OpenAccess.40.Extensions
Telerik.OpenAccess

When I built the project only 2 of them showed in my References folder.
Telerik.OpenAccess.35.Extensions
Telerik.OpenAccess.40.Extensions

I had to manually go to my C drive and find the Telerik.OpenAccess.dll file and paste it into my project's bin folder.
This worked fine, but I am wondering why it wouldn't automatically add that .dll file to my project when building.

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Kristian Nikolov
Telerik team
answered on 05 Aug 2013, 03:38 PM
Hi Hunter,

The reason for the behavior you observed is that Telerik.OpenAcces.dll is installed in the Global Assembly Cache (GAC) and thus it is not being copied locally to the project - the value of its Copy Local property is false.  To change that, please follow the next few steps:
  • Open the properties window of the Telerik.OpenAccess reference.
  • Change the value of the Copy Local property to true.
  • Rebuild the project and now you should be able to see Telerik.OpenAccess.dll present in your project`s bin folder.

Note that even if you do above steps, your project will still load the assembly from the GAC, in case OpenAccess is installed on the machine where it is being run.

If you have any additional questions, do not hesitate to contact us again.

Regards,
Kristian Nikolov
Telerik
OpenAccess ORM Q2 2013 brings you a more powerful code generation and a unique Bulk Operations support with LINQ syntax. Check out the list of new functionality and improvements shipped with this release.
Tags
General Discussions
Asked by
Hunter
Top achievements
Rank 1
Answers by
Kristian Nikolov
Telerik team
Share this question
or