BasePageData is not compatible with EPiServer.Core.PageData

Vote:
 

I got this error on my upgraded Episerver 7 project.

All uses of currentpage failes, anybody else seen this error?

#66709
Mar 07, 2013 8:31
Vote:
 

Hi Kristian,

 

What does your BasePageData class definition look like?

#66716
Mar 07, 2013 10:24
Vote:
 

using System.ComponentModel.DataAnnotations;
using Customer.Templates.Customer.Classes;
using EPiServer;
using EPiServer.DataAbstraction;
using EPiServer.DataAnnotations;
using EPiServer.Web;
using EPiServer.Core;

namespace Customer.Templates.Customer.PageType
{
public abstract class BasePageData : PageData
{
[Display(
GroupName = Global.GroupNames.MetaData,
Order = 100)]
[CultureSpecific]
public virtual string MetaTitle
{
get; set; }

[Display(
GroupName = Global.GroupNames.MetaData,
Order = 200)]
[CultureSpecific]
[BackingType(typeof(PropertyStringList))]
public virtual string[] MetaKeywords { get; set; }

[Display(
GroupName = Global.GroupNames.MetaData,
Order = 300)]
[CultureSpecific]
[UIHint(UIHint.Textarea)]
public virtual string MetaDescription { get; set; }

[Display(
GroupName = Global.GroupNames.MetaData,
Order = 400)]
[CultureSpecific]
public virtual bool DisableIndexing { get; set; }

[Display(
GroupName = SystemTabNames.Content,
Order = 100)]
[UIHint(UIHint.Image)]
public virtual Url PageImage { get; set; }

[Display(
GroupName = SystemTabNames.Content,
Order = 200)]
[CultureSpecific]
[UIHint(UIHint.Textarea)]
public virtual string TeaserText { get;set;}

[Display(
GroupName = SystemTabNames.Settings,
Order = 200)]
[CultureSpecific]
public virtual bool HideSiteHeader { get; set; }

[Display(
GroupName = SystemTabNames.Settings,
Order = 300)]
[CultureSpecific]
public virtual bool HideSiteFooter { get; set; }
}
}

 

 

I tried to remove all the properties, but didnt help, it doesnt seem like it is the basepagedata, because on the frontpage it is the startpage that has the same problem. Everywhere I use Currentpage failes.

#66732
Mar 08, 2013 7:55
Vote:
 

Kristian, I am getting the same problem as you described.  Have you found a solution?

#84322
Mar 31, 2014 22:08
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.