Sitecore 7.2 MVC: Glass mapper sitecore context lost during Ajax call

35 views
Skip to first unread message

Chitrang Shah

unread,
Oct 16, 2014, 11:46:03 PM10/16/14
to glass...@googlegroups.com

During the ajax call, I am trying to grab the items via SitecoreService using the web database as shown below.

_service.GetItem<IType>(result.ItemId.Guid). When I debug it, I see all the fields but the values display "Function needs all threads to run before evaluation" so I am unable to see the field value. Is this a configuration issue or am I am doing something wrong?

I am updating an MVC partial view with Ajax using controller rendering following steps from this article http://cmatskas.com/update-an-mvc-partial-view-with-ajax/.

The ajax call routes to an action which loads the models and values of various templates. But it seems to timeout and throw an error while grabbing the values. It seems that the current sitecore context is lost or not maintained. Below is the error I see in the "InterfacePropertyInterceptor" when I make the ajax call.









Reply all
Reply to author
Forward
0 new messages