CI IPageDataContextRetriever Error

Matthew Butler asked on June 8, 2022 13:25

I have a simple site working but if I setup a new basic instance and restore with CI I get

"Missing page context data. If required use IPageDataContextInitializer.Initialize method to initialize the context manually. For POST actions use HtmlHelper extension method"


var home = _pageDataContextRetriever.Retrieve

Recent Answers

Matthew Butler answered on June 8, 2022 13:48 (last edited on June 8, 2022 13:54)

It looks like something to do with the cultures, as I've removed en-US and set en-GB as default, but the restore doesn't appear to be updating the blank solution.

So the restore seems to default to the en_US culture and clear the "Home Page" selection?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.