Copied to clipboard

Flag this post as spam?

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


  • Shaishav Karnani from digitallymedia.com 354 posts 1638 karma points
    Aug 22, 2019 @ 16:09
    Shaishav Karnani from digitallymedia.com
    0

    Model Builder API Fails 404

    Hi,

    I have installed v8.1.3 and Umbraco ModelBuilder API from nuget

    When I try generating ModelBuilder then getting 404 error on below link.

    http://local.trainingv8.com/Umbraco/BackOffice/ModelsBuilder/ModelsBuilderApi/ValidateClientVersion

    Any idea what could be the issue please?

  • Shaishav Karnani from digitallymedia.com 354 posts 1638 karma points
    Aug 22, 2019 @ 17:29
    Shaishav Karnani from digitallymedia.com
    100

    After bit of struggle, I decided to remove Model Builder API and Model Builder Custom Tool.

    Changed my web.config to below settings. We generate our ModelBuilder in a separate project with all other Models with a specific Namespace. I achieved all of them with below settings.

        <add key="Umbraco.ModelsBuilder.Enable" value="true" />
        <add key="Umbraco.ModelsBuilder.ModelsMode" value="AppData" />
        <add key="Umbraco.ModelsBuilder.ModelsDirectory" value="~/../Training.Web.Umbraco.Models/UmbracoModels/" />
        <add key="Umbraco.ModelsBuilder.AcceptUnsafeModelsDirectory" value="true" />
        <add key="Umbraco.ModelsBuilder.ModelsNamespace" value="Training.Web.Umbraco.Models.UmbracoModels" />
    

    Now, I think this is probably better approach as I did faced few issues with new releases of Model Builder API and Model Builder Custom Tool as it was not always 100% sync.

  • Nik 1614 posts 7260 karma points MVP 7x c-trib
    Aug 22, 2019 @ 18:21
    Nik
    0

    Hi Shaishav,

    Something to be aware of, the Models Builder Custom Tool extension has been deprecated in favour of Umbraco ModelsBuilder Extension. This could be why you are having issues with the API mode, just food for thought.

    For reference: https://www.zpqrtbnk.net/posts/models-builder-extension/

    Nik

Please Sign in or register to post replies

Write your reply to:

Draft