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

Telerik.OpenAccess.Exceptions.NoSuchObjectException

1 Answer 137 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Flare
Top achievements
Rank 1
Flare asked on 03 Feb 2013, 11:43 PM
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

1 Answer, 1 is accepted

Sort by
0
Dimitar Tachev
Telerik team
answered on 06 Feb 2013, 11:38 AM
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.
Tags
Getting Started
Asked by
Flare
Top achievements
Rank 1
Answers by
Dimitar Tachev
Telerik team
Share this question
or