Hi , I have upgraded the CMS 11 to CMS 12 getting below error. Not able to recognized how to fix this issue.
Error : The type 'PageController<T>' exists in both 'EPiServer.Cms.AspNet, version = 11.17.0.0, culture=neutral, PublicKeyToken=8fe83dea738b45b7' and 'EPiServer.Cms.AspNetCore.Mvc, version = 12.4.0.0, culture=neutral, PublicKeyToken=8fe83dea738b45b7'
public abstract class PageControllerBase<T> : PageController<T>, IModifyLayout where T : SitePage { public ActionResult GetViewVerifyingAge(T currentPage) { if (!PageEditing.PageIsInEditMode && !SessionHelper.IsAdult) { var redirectUrl = ContentHelper.GetAgeVerificationUrl(currentPage.ContentLink); if (redirectUrl != null) { return new RedirectResult(redirectUrl); } }
var model = ViewHelper.CreatePageViewModel(currentPage); return View(model); }
Hi ,
I have upgraded the CMS 11 to CMS 12 getting below error. Not able to recognized how to fix this issue.
Error : The type 'PageController<T>' exists in both 'EPiServer.Cms.AspNet, version = 11.17.0.0, culture=neutral, PublicKeyToken=8fe83dea738b45b7' and 'EPiServer.Cms.AspNetCore.Mvc, version = 12.4.0.0, culture=neutral, PublicKeyToken=8fe83dea738b45b7'
public abstract class PageControllerBase<T> : PageController<T>, IModifyLayout
where T : SitePage
{
public ActionResult GetViewVerifyingAge(T currentPage)
{
if (!PageEditing.PageIsInEditMode && !SessionHelper.IsAdult)
{
var redirectUrl = ContentHelper.GetAgeVerificationUrl(currentPage.ContentLink);
if (redirectUrl != null)
{
return new RedirectResult(redirectUrl);
}
}
var model = ViewHelper.CreatePageViewModel(currentPage);
return View(model);
}