November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Your view expects the model to be `PageViewModel<AlloyTraining.Models.Pages.StartPage>` but in your controller, you are passing `AlloyTraining.Models.Pages.StartPage`.
Could you try changing your Controller to this?
public ActionResult Index(StartPage currentPage)
{
var model = PageViewModel.Create(currentPage);
return View(model);
}
Hi all, I'm a beginner just learning how to use Episerver and I was doing the free online training course and after doing one particular exercise I keep getting this error when I go to the start page of my episerver site:
The edit page works, but the live view does not. Anyone know how to fix this?
Relevant files:
...\AlloyTraining\Views\StartPage\Index.cshtml
...\AlloyTraining\Models\Pages\StartPage.cs
...\AlloyTraining\Controllers\PageControllerBase.cs
...\AlloyTraining\Models\Pages\StartPageController.cs
Not really sure what file is messing things up or where to look.
Here is the full error if that helps: