Telerik.OpenAccess.Exceptions.NoSuchObjectException

2 posts, 0 answers
  1. Flare
    Flare avatar
    1 posts
    Member since:
    Aug 2012

    Posted 03 Feb 2013 Link to this post

    Hi,

    I am trying the Telerik OpenAccess ORM for my MVC 4 Project (VS2010 SP1) and ran through the quickstart tutorial:

    http://www.telerik.com/help/openaccess-orm/getting-started-root-quickstart-aspnet-overview.html

    When testing, a runtime error occurs: Telerik.OpenAccess.Exceptions.NoSuchObjectException

    I did everything exactly like in the tutorial. In the Initialize method of the controller the this.session[contextModule.CONTEXT_KEY] object seems to be null. The "datacontext" item in this.session seemingly not exists. But why?

    Regards, Sebastian

  2. Dimitar Tachev
    Admin
    Dimitar Tachev avatar
    67 posts

    Posted 06 Feb 2013 Link to this post

    Hello Sebastian,

    It seems that the context_PreRequestHandlerExecute method of your ContextModule is not properly placing the OpenAccess context into the session.

    Could you please confirm that you have registered the ContextModule in the web.config file of your project and properly implemented the module as described in this documentation section?

    Also I suggest you to take a look at the ASP.NET MVC category of our SDK where you could find a rich set of end-to-end sample applications.

    I am looking forward to your feedback.

    All the best,
    Dimitar Tachev
    the Telerik team
    Q3'12 SP1 of OpenAccess ORM packs Multi-Table Entities mapping support. Check it out.
  3. DevCraft banner
Back to Top