Error calling content service method SaveAndPublishWithStatus in a distributed environment.
I'm consistently getting an error when calling the SaveAndPublishWithStatus method when in a distributed environment. I do NOT get this error when in a single instance environment. The error message is "This messenger cannot execute without a valid/current UmbracoContext with an HttpContext assigned" Below is the code. I'm in 7.2.8 version.
ContentService cs = new ContentService();
var content = cs.GetById(itemToPublish.PageId);
try
{
var result = cs.SaveAndPublishWithStatus(content);
if (!result.Success)
{
LogHelper.Error
Error calling content service method SaveAndPublishWithStatus in a distributed environment.
I'm consistently getting an error when calling the SaveAndPublishWithStatus method when in a distributed environment. I do NOT get this error when in a single instance environment. The error message is "This messenger cannot execute without a valid/current UmbracoContext with an HttpContext assigned" Below is the code. I'm in 7.2.8 version.
ContentService cs = new ContentService(); var content = cs.GetById(itemToPublish.PageId); try { var result = cs.SaveAndPublishWithStatus(content); if (!result.Success) { LogHelper.Error
is working on a reply...