+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / The referenced OpenAccessContext or 'IObjectScope' is already closed (UnsynchronizedPMProxy).

The referenced OpenAccessContext or 'IObjectScope' is already closed (UnsynchronizedPMProxy).

1 posts, 0 answered
  1. kamii47
    kamii47 avatar
    71 posts
    Registered:
    02 Mar 2007
    15 May 2014
    Link to this post

    I am doing some background thread task in sitefinity. previously i was getting exception at the line.

     Config.Get<DataConfig>().ConnectionStrings. To overcome it i have sent dummy ashx request to my site and able to get connection string and connect ot db.

    Now when trying to access DynamicContent via code

    DynamicModuleManager dynamicModuleManager = DynamicModuleManager.GetManager();
                Type itemType = TypeResolutionService.ResolveType(key);
                DynamicContent item = dynamicModuleManager.GetDataItem(itemType, id);

                return item;

    I am getting above mentioned error.

    Any idea how to overcome this The referenced OpenAccessContext or 'IObjectScope' is already closed (UnsynchronizedPMProxy). error?

1 posts, 0 answered