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

Forums / Sitefinity SDK / Manager Class can't find provider

Manager Class can't find provider

6 posts, 0 answered
  1. Augus
    Augus avatar
    34 posts
    Registered:
    29 Mar 2011
    18 Apr 2011
    Link to this post
    Hello, i'm trying to create a custom module (a product category module) based on product custom module. so far it's work fine until i'm tried to add new item (category) it give me an error in manager class in Copy(source, destination) said "Object reference not set to an instance of an object." please see the attached file.

    anyone can point some clue where to check this?

    thank you.

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 Sep 2016
    18 Apr 2011
    Link to this post
    Hello Augus,

    Can you tell us which object is null? The Provider or ?

    All the best,
    Ivan Dimitrov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. Augus
    Augus avatar
    34 posts
    Registered:
    29 Mar 2011
    18 Apr 2011
    Link to this post
    ahh sorry Ivan, yes the provider is null.
  4. Augus
    Augus avatar
    34 posts
    Registered:
    29 Mar 2011
    19 Apr 2011
    Link to this post
    correction, when i'm debugging again, the provider looks like it's not null. because i can hover and see the snippet containing p[ermission properties and so on. here's the stack trace.

    at Telerik.Sitefinity.Security.SecuredObjectExtensions.CopySecurityFrom(ISecuredObject destination, ISecuredObject source, DataProviderBase destinationProvider)
       at Telerik.Sitefinity.Modules.GenericContent.ContentDataProviderBase.CopyContent(Content source, Content destination)
       at CustomCategories.Data.CategoriesManager.Copy(CategoryItem source, CategoryItem destination) in C:\Program Files\Telerik\Sitefinity 4.0\Projects\ZonkCategory\CustomCategories\Data\CategoriesManager.cs:line 232
       at Telerik.Sitefinity.Modules.GenericContent.ContentDataProviderBase.CheckOut[TContent](TContent master, Action`2 copy, IQueryable`1 itemsQuery)
       at CustomCategories.Data.CategoriesManager.CheckOut(CategoryItem item) in C:\Program Files\Telerik\Sitefinity 4.0\Projects\ZonkCategory\CustomCategories\Data\CategoriesManager.cs:line 222
       at Telerik.Sitefinity.Modules.ContentServiceBase`5.SaveContentUsingWorkflow(ContentItemContext`1 context, String parentId, String providerName, String workflowOperation)
       at Telerik.Sitefinity.Modules.ContentServiceBase`5.SaveContentInternal(ContentItemContext`1 context, String providerName, String workflowOperation)
       at Telerik.Sitefinity.Modules.ContentServiceBase`5.SaveContent(ContentItemContext`1 content, String contentId, String providerName, String version, Boolean published, Boolean checkOut, String workflowOperation)
       at SyncInvokeSaveContent(Object , Object[] , Object[] )
       at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
       at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)

    i still have no clue where to look. thank you.
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 Sep 2016
    20 Apr 2011
    Link to this post
    Hello Augus,

    I am not able to replicate the issue with the default setup of the Products module. You have changes something, but it is not clear to me what. If the problem persists, please open a support request and provide us with the module you created.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  6. Augus
    Augus avatar
    34 posts
    Registered:
    29 Mar 2011
    20 Apr 2011
    Link to this post
    Thank you Ivan. unfortunately i can;t replicate it either when i install my module in a new fresh site. it's now causing another issue. but this can be postpone until 4.1 SDK is out (and hopefully with some working sample). once again thank you Ivan :)
6 posts, 0 answered