Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Have you tried clearing the bin and obj directories? Try cleaning the solution and make clear you don't have any references to the old assemblies.
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);
}