Copied to clipboard

Flag this post as spam?

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


  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Aug 05, 2022 @ 07:53
    Huw Reddick
    0

    ModelsBuilder Issue? Ambiguos reference

    I'm getting a strange Ambiguous reference isssue on some properties.

    enter image description here

    This is my Umbraco settings.

      "ModelsBuilder": {
        "ModelsMode": "SourceCodeManual",
        "ModelsDirectory": "~/../VantagePortal.ContentModels",
        "AcceptUnsafeModelsDirectory": true
      },
    

    Any ideas as to what might be causing this?

  • Bjarne Fyrstenborg 1284 posts 4038 karma points MVP 8x c-trib
    Aug 05, 2022 @ 08:32
    Bjarne Fyrstenborg
    0

    Hi Huw

    Do you have the model Home in multiple locations? I think you will get these errors if you first had the generated models in the default ModelsBuilder location in ~/umbraco/models but then changed mode to SourceCodeManual and generated the models in the new location.

    You'll then need to remove the original generated models from ~/umbraco/models folder.

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Aug 05, 2022 @ 08:51
    Huw Reddick
    100

    I figured it out, my models prj was using Umbro 10.1.0 but my web project was still using the 10.1.0_rc, updating the web project fixed it, I must have missed it when I updated the other projects in the solution doh!

Please Sign in or register to post replies

Write your reply to:

Draft