Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Scott Spiller 3 posts 73 karma points
    Nov 12, 2015 @ 22:02
    Scott Spiller
    0

    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

                            }
    
Please Sign in or register to post replies

Write your reply to:

Draft