1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / ContentManager.DeleteContent always throw exception

ContentManager.DeleteContent always throw exception

2 posts, 0 answered
  1. Ian Muir
    Ian Muir avatar
    13 posts
    Registered:
    26 Jan 2010
    17 Jun 2010
    Link to this post
    I'm attempting to create a module that works with content stored in libraries. Unfortunately, I can't get the ContentManger.DeleteContent method to work.

    It throws the following exception:
    Value cannot be null.
    Parameter name: content


    I've tried using both available overloads and I've verified that the Guid I'm passing is correct.

    Any ideas what can cause this?
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    21 Jun 2010
    Link to this post
    Hello Ian Muir,

    Thank you for using our services.

    Could you please specify in which module are you getting this issue? If you are using Images and Documents and have enabled streaming there are some changes in the API regarding content items. If this is the case please check this link out to find out how to delete content with streaming enabled.

    Kind regards,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered