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

Thread is closed for posting
2 posts, 0 answers
  1. Hunter
    Hunter avatar
    11 posts
    Member since:
    Apr 2013

    Posted 03 Aug 2013 Link to this post

    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:

    When I built the project only 2 of them showed in my References folder.

    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?
  2. Kristian Nikolov
    Kristian Nikolov avatar
    206 posts

    Posted 05 Aug 2013 Link to this post

    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.

    Kristian Nikolov
    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.
Back to Top