London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
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);
}