Copied to clipboard

Flag this post as spam?

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


  • colin graham 6 posts 76 karma points
    Oct 06, 2022 @ 22:16
    colin graham
    0

    Umbraco Weird Model Error

    Hi Guys - I am getting this weird error intermittently on my projects approx twice a day - its breaking my whole site 7.15.8

    The model item passed into the dictionary is of type 'Models.FlightListModel', but this dictionary requires a model item of type 'Models.FlightListModel'.

    and yes you have guessed it it doent make any sense to me - normally the 2 tyes differ - strangely all my custom models that use @HTML.Action in the same format seem to be broken on my site at this point. i think it may be related to examine but im not sure. has anyone ever encountered this ?

    The code we use to try and call this is a simple action in razor:

    @Html.Action("RenderLists", "Lists", new { searchResults = Model })

    What i have noticed is that my other custom models arent working as well as we have a similar call on another page that is also broken - can anyone give any advice on this please?

    @Html.Action("RenderMetaData", "Meta", new { area = "MetaArea" })

    if i make small chnage in the code or upload a new dll it normally fixes the issue. im on an IIS setup but i don think this is the issue

    all help appreciated in advance - thnak you.

    enter image description here

  • 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.

Please Sign in or register to post replies