Copied to clipboard

Flag this post as spam?

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


  • Craig100 1136 posts 2523 karma points c-trib
    Nov 23, 2019 @ 23:35
    Craig100
    0

    Content Service PublishWithChildrenWithStatus Timeout

    Umb 7.15.3 (upgraded from 7.3.8)

    Importing data from a working API with the following code.

    var cs = ApplicationContext.Current.Services.ContentService;    
    cs.Save(nodeToPublish);
    cs.PublishWithChildrenWithStatus(nodeToPublish, includeUnpublished:true)
    

    It hangs on the third line and gives a timeout or server not responding exception. However the site saves and publishes correctly when done manually via Umbraco, so the server connection is good and responsive. The code hasn't been changed since it was working on V7.3.8. I don't see anything obvious when comparing the code to the docs.

    Any advice would be appreciated.

    Rgds

    Craig

    PS I know this should be in "Extending Umbraco and using the API" section but the UI confounded me, twice. :(

Please Sign in or register to post replies

Write your reply to:

Draft