Exception Thrown from Mismatched Assemblies

2 posts, 0 answers
  1. EVP
    EVP avatar
    8 posts
    Member since:
    Jul 2013

    Posted 24 Oct 2014 Link to this post

    Hi there,
               I'm getting this exception when trying to query through OpenAccess. I recently had to reload Windows on my system, so I'm assuming that something is just pointing incorrectly, since I've reloaded the project onto this machine. After doing some reading on here, it looks like several others had the issue, and you told them it was caused by differing versions of the assemblies in the project. However, I can't seem to figure out how to set things straight from within the two projects, to get it working. 

    Here's the exception:

    An exception of type 'Telerik.OpenAccess.OpenAccessException' occurred in Telerik.OpenAccess.Runtime.dll but was not handled in user code

    Additional information: Application id class 'Telerik.OpenAccess.RT.OID.IntIdentity' used by class 'Horizon_PlatformModel.Account' must have field: 'public System.Int32 _account_id'.

    ASP.NET Web Application has these references:

    And the EntitiesModel Project has:

    Any suggestions on how I can straighten this out would be appreciated!



    (all versions 2013.3.1014.1)

  2. Kristian Nikolov
    Kristian Nikolov avatar
    206 posts

    Posted 28 Oct 2014 Link to this post

    Hi Eric,

    Thank you for contacting us.

    Indeed it is likely that the error you are experiencing could occur due to inconsistent versions of the Telerik Data Access assemblies in the bin folder of your projects. We would recommend deleting the bin folders of the projects in your solution which have references to Telerik Data Access assemblies and then rebuilding the solution. This should resolve the situation.

    I hope this helps. Should you have further questions, feel free to post at our forums again.

    Kristian Nikolov
    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
  3. DevCraft banner
Back to Top