A really annoying problem appeared suddenly in my EPiserver 6 R2 project.
I added a new property to a pagetype (PagetypeBuilder) and then the runtime crashed in initialising, the Itera.Objects Dig() method threw the famous "object reference not set to an instance of an object".
After som trial and error it turns out that it was looking for the Type, which I had first omitted since it was just a "public virtual string".
So, remember to add the Type declaration...
[PageTypeProperty(EditCaption = "Name",
HelpText = "",
SortOrder = 200,
UniqueValuePerLanguage = false,
Searchable = false,
Type = typeof(PropertyString),
Required = false)]
public virtual string Creator { get; set; }
Inga kommentarer:
Skicka en kommentar