AI OnAI Off
Hi Dinesh,
It should be a code issue so can you supply the code snippet here so that someone can help?
Hi Dinesh,
Please check the following;
Models.Media.ImageFile
inherit from ImageData
ImageFile.cshtml
in your ~/Views/Shared
folder. This Partial View should have a Model like @model ImageFile
.It would help us if you could provide;
Models.Media.ImageFile
class I also encourage you to spend time reading in the Rendering section of the Episerver Developer Documentation https://world.episerver.com/documentation/developer-guides/CMS/rendering/
Hi,
Thanks very much for the reply .. This issue is resolved now.
Under Admin -> Manage Websites -> Modify the website name to be pointing to correct link.
regards
Dinesh
Hi,
I am getting below error .. please guide
The routed data is of type 'EPiServer.Core.PageData' and the binding context data 'currentContent' is of type 'EPiServer.Core.PageData', neither of which matches the requested type 'Models.Media.ImageFile'.
Regards