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

Forums / Sitefinity SDK / Custom Module Error

Custom Module Error

7 posts, 0 answered
  1. Duneel
    Duneel avatar
    166 posts
    Registered:
    08 Dec 2010
    05 Apr 2011
    Link to this post
    Hi,

    I'm receiving following exception when the application starts. What could be the reason? I have installed a custom module called BrightcoveVideo under NHLPA.Modules namespace.

    Timestamp: 4/5/2011 3:09:13 PM
      
    Message: HandlingInstanceID: 9d3c3400-c848-4f8f-a76d-fe1bc037a3bc
    An exception of type 'Telerik.OpenAccess.Exceptions.MetadataException' occurred and was caught.
    -----------------------------------------------------------------------------------------------
    04/05/2011 11:09:13
    Type : Telerik.OpenAccess.Exceptions.MetadataException, Telerik.OpenAccess, Version=2010.3.1125.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342
    Message : Persistence-capable-superclass 'Telerik.Sitefinity.GenericContent.Model.Content' not declared in meta data. --> NHLPA.Modules.BrightcoveVideo, Version=1.0.4112.18261, Culture=neutral, PublicKeyToken=null/namespace[NHLPA.Modules.BrightcoveVideo.Model]/class[NHLPA.Modules.BrightcoveVideo.Model.VideoItem]
    Source : Unity_ILEmit_DynamicClasses
    Help link : 
    ErrorId : 0
    ClassName : Telerik.Sitefinity.GenericContent.Model.Content
    FieldName : 
    TableName : 
    ColumnName : 
    AmbiguousValue : 
    DisambiguatedValue : 
    FileName : 
    ProjectName : 
    IndexName : 
    ConstraintName : 
    ProcedureName : 
    PreviousDefiner : 
    Context : --> NHLPA.Modules.BrightcoveVideo, Version=1.0.4112.18261, Culture=neutral, PublicKeyToken=null/namespace[NHLPA.Modules.BrightcoveVideo.Model]/class[NHLPA.Modules.BrightcoveVideo.Model.VideoItem]
    Usage : 
    Column : 0
    Line : 0
    IsWarning : False
    HelpKeyword : 
    InnerExceptions : 
    FailedObject : 
    BackendError : 
    Reason : Runtime
    CanRetry : True
    Data : System.Collections.ListDictionaryInternal
    TargetSite : Void Initialize(System.String, System.Collections.Specialized.NameValueCollection, System.Type)
    Stack Trace :    at DynamicModule.ns.Wrapped_OpenAccessProvider_4477efcee8cf4af2b08ca8fa7ddabc04.Initialize(String providerName, NameValueCollection config, Type managerType)
       at Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, Type providerType, ExceptionPolicyName policy, ManagerBase`1 manager)


    Thanks,
    Duneel
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    09 Apr 2011
    Link to this post
    Hello Duneel,

    The error is caused by having incomplete OpenAccess mappings , e.g. the mappings for the base Content class are missing for some reason. One solution that i can propose to make sure the base classes ORM mappings are always included is to explicitly declare the Sitefinity model assembly in your OpenAccess data provider GetPersistentAssemblies method. For example in the products module SDK sample this is implemented like this:
     peristentAssemblies = new Assembly[] { typeof(ProductItem).Assembly }; , simply add the typeof(Telerik.Sitefinity.GenericContent.Model.Content).Assembly as additional item in the array , so this is also returned by the GetPersistentAssemblies method. This should make sure that the mappings of the Content base class are always included when your data provider is initialized for the first time.

    Best wishes,
    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
  3. Duneel
    Duneel avatar
    166 posts
    Registered:
    08 Dec 2010
    19 Apr 2011
    Link to this post
    Hi Radoslav,

    Our previously developed custom modules doesnt compile on 4.1. Need help!!!

    Cant't find sample SDK solution in 4.1.

    SOS!!!

    thanks,
    Duneel



  4. Nicolas
    Nicolas avatar
    156 posts
    Registered:
    19 Jan 2011
    20 Apr 2011
    Link to this post
    Hi Duneel,

    I already ask the question, 4.1 SDK will be available next week.

    Regards,
    Nicolas
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    25 Apr 2011
    Link to this post
    Hello,

    Please make sure that you have modified your modules as described in this blog post.

    Regards,
    Ivan Dimitrov
    the Telerik team

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

  6. Duneel
    Duneel avatar
    166 posts
    Registered:
    08 Dec 2010
    25 Apr 2011
    Link to this post
    Hi Ivan,

    I did follow Salvo's blog post about upgrading custom modules. But it was published before the official release and Salvo confirms that it is missing some other changes happened after publishing the post.

    I have created a support ticket explaining the exact issues I have with regard to upgrading custom modules and I'm still awaiting for an answer.

    Thanks,
    Duneel
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    26 Apr 2011
    Link to this post
    Hi Duneel,

    Thanks for getting back to me here. We are going to check your custom modules and try to figure out what the problem is.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

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

7 posts, 0 answered