Copied to clipboard

Flag this post as spam?

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


  • Sam Horne 11 posts 61 karma points
    Jul 02, 2013 @ 00:12
    Sam Horne
    0

    NullReference Exception in ContentService.IsPublishable

    I'm receiving a strange exception from within Umbraco.Core:

    After calling:

    ContentService.SaveAndPublish(profile, user.Id);

    The below exception happens. This can only be replicated in 1 of 3 development environments.

    Can anyone shed some light on possible causes?

     

     

  • Sam Horne 11 posts 61 karma points
    Jul 02, 2013 @ 00:15
    Sam Horne
    0

  • Sam Horne 11 posts 61 karma points
    Jul 02, 2013 @ 00:16
    Sam Horne
    0

    Another self solving problem - the parent ID of the content I was trying to publish was not found. When creating the content with ContentService.Create(), you must ensure the parent ID is set correctly. Ispublishable checks the parent's publishability.

Please Sign in or register to post replies

Write your reply to:

Draft