Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi Guys,
I am experiencing an issue that when having a custom page model for home page, it throw the following error:
For the other pages/controllers, it works fine.
Any idea would be much appreciated
Thank you in advance.
Hello,
Are you using a new model on the homepage? If you are you should also use that model in the extension method which returns the homepage. Now you're casting to the wrong model.
Jeroen
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Unable to cast object of type "MyModel" to HomePage
Hi Guys,
I am experiencing an issue that when having a custom page model for home page, it throw the following error:
For the other pages/controllers, it works fine.
Any idea would be much appreciated
Thank you in advance.
Hello,
Are you using a new model on the homepage? If you are you should also use that model in the extension method which returns the homepage. Now you're casting to the wrong model.
Jeroen
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.