Custom Module - There is no field with name 'supportsContentLifecycle' backing 'SupportsContentLifecycle' property
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
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
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