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

Forums / Developing with Sitefinity / Custom Module - There is no field with name 'supportsContentLifecycle' backing 'SupportsContentLifecycle' property

Custom Module - There is no field with name 'supportsContentLifecycle' backing 'SupportsContentLifecycle' property

2 posts, 0 answered
  1. Lonnie
    Lonnie avatar
    3 posts
    Registered:
    03 Oct 2011
    17 Jan 2013
    Link to this post
    I am following the example for Jobs to create a self installing sitefinity module. I also have been translating it all into VB. 

    The error I am getting when debugging is the following. 
    {"Unable to merge MetadataSource provided by 'DynamicModule.ns.Wrapped_OpenAccessRotatorDataProvider_dc436eb27ef04804b337c0b06d09ca04': There is no field with name 'supportsContentLifecycle' backing 'SupportsContentLifecycle' property in type 'Rotator.Model.RotatorApplication'. You need to either change the Field Naming rules of the mapping configuration object or call HasFieldName(string) with the name of the backing field."}

    The error occurs at the following code in my RotatorManager.vb.

    Public Shared Function GetManager(providerName As String) As RotatorManager
           Return ManagerBase(Of RotatorDataProviderBase).GetManager(Of RotatorManager)(providerName)
       End Function

    The part that is referenced is in this class.
    Imports Telerik.OpenAccess
    Imports Telerik.Sitefinity
    Imports Telerik.Sitefinity.GenericContent.Model
    Imports System.Runtime.Serialization
     
    Namespace Model
     
        <DataContract([Namespace]:="Rotator", Name:="RotatorApplication")> _
        <ManagerType("Rotator.RotatorManager, Rotator")> _
        <Persistent(IdentityField:="contentId")> _
        Public Class RotatorApplication
            Inherits Content
            Public Overrides ReadOnly Property SupportsContentLifecycle() As Boolean
                Get
                    Return False
                End Get
            End Property
     
            Private _imagePath As String
            Private _slideDescription As String
            Private _text As String
            Private _slideName As String
     
            <DataMember()> _
            <FieldAlias("imagePath")> _
            Public Property ImagePath() As String
                Get
                    Return Me._imagePath
                End Get
                Set(value As String)
                    Me._imagePath = value
                End Set
            End Property
     
            <DataMember()> _
            <FieldAlias("slideDescription")> _
            Public Property SlideDescription() As String
                Get
                    Return Me._slideDescription
                End Get
                Set(value As String)
                    Me._slideDescription = value
                End Set
            End Property
     
            <DataMember()> _
            <FieldAlias("text")> _
            Public Property Text() As String
                Get
                    Return Me._text
                End Get
                Set(value As String)
                    Me._text = value
                End Set
            End Property
     
            <DataMember()> _
            <FieldAlias("slideName")> _
            Public Property SlideName() As String
                Get
                    Return Me._slideName
                End Get
                Set(value As String)
                    Me._slideName = value
                End Set
            End Property
     
     
        End Class
    End Namespace

    Any help would be appreciated. 

    Thanks,
    Lonnie
  2. Phuc
    Phuc avatar
    2 posts
    Registered:
    10 May 2013
    31 May 2013 in reply to Lonnie
    Link to this post
    Hi Lonnie

    Do you have any field name in class Item start with '_'.

    you much remove that character. it will be fine.

    good luck.


    Phuc Ngo
2 posts, 0 answered