Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Saif Obeidat 53 posts 200 karma points
    Sep 02, 2019 @ 16:53
    Saif Obeidat
    0

    "Umbraco.Web.PublishedModels.Image" and cannot be used in this generic collection

    Hi guys,

    I face this error sometimes when I just open any page!

    The value "Umbraco.Web.PublishedModels.Image" is not of type "Umbraco.Web.PublishedModels.Image" and cannot be used in this generic collection.
    

    enter image description here

    I just rebuild the project and it gets solved...

    how to solve it ?

  • Alex Skrypnyk 5397 posts 19981 karma points MVP 3x admin c-trib
    Sep 02, 2019 @ 20:19
    Alex Skrypnyk
    0

    Hi Saif

    Can you show all code of your view?

    What datatype is "innerImage"?

    Thanks,

    Alex

  • Shaishav Karnani from digitallymedia.com 330 posts 1562 karma points
    Sep 03, 2019 @ 05:08
    Shaishav Karnani from digitallymedia.com
    0

    Hi Saif,

    Please can you add following in the web.config of views folder. Also namespace where models are being created. In my case, we have created it in below namespace.

    I think this should help you to fix issue.

    Regards,

    Shaishav

  • Arunabha Das 36 posts 149 karma points
    Sep 10, 2019 @ 07:49
    Arunabha Das
    0

    Hi Shaishav,

    Can you please let us know, what we need to add and where exactly

  • Saif Obeidat 53 posts 200 karma points
    Sep 12, 2019 @ 08:39
    Saif Obeidat
    0

    Hi Shaishav,

    can you provide more details ?

  • Saif Obeidat 53 posts 200 karma points
    Sep 24, 2019 @ 06:57
    Saif Obeidat
    0

    It seems that this issue was happening because there were two running projects connected to the same database. I think It's something related to the "Caching Process".

Please Sign in or register to post replies

Write your reply to:

Draft