Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a document writing event its using IUmbracoContextFactory to get UmbracoContext.Content.GetByid all working fine. I now added another method that again uses the IUmbracoContextFactory however now on index rebuild i get the following error:
Anyone any ideas? FYI this is on umbraco 8.1.5
Ok so think I have this fixed I was doing:
using (var umbracoContext = _umbracoContextFactory.EnsureUmbracoContext().UmbracoContext) { content = umbracoContext .Content.GetById(docArgs.ValueSet.Id.ToInt32()); }
What i needed todo was:
using (var umbracoContext = _umbracoContextFactory.EnsureUmbracoContext()) { content = umbracoContext.UmbracoContext.Content.GetById(docArgs.ValueSet.Id.ToInt32()); }
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Cannot access a disposed object error
I have a document writing event its using IUmbracoContextFactory to get UmbracoContext.Content.GetByid all working fine. I now added another method that again uses the IUmbracoContextFactory however now on index rebuild i get the following error:
Anyone any ideas? FYI this is on umbraco 8.1.5
Ok so think I have this fixed I was doing:
What i needed todo was:
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.