Copied to clipboard

Flag this post as spam?

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


  • Koen van Ras 56 posts 361 karma points c-trib
    Mar 06, 2019 @ 14:36
    Koen van Ras
    0

    Umbraco 8 with Models Builder API error

    Hi,

    I've set up a new Umbraco v8 project and this is working. Now I want to implement the Models Builder API into my VS project so I followed the following documentation to set it up: https://our.umbraco.com/Documentation/Reference/Templating/Modelsbuilder/Install-And-Configure

    I created some document types in the backoffice but now when I try to run the Builder.cs class I get an error that it doesn't work.

    I installed the Umbraco.ModelsBuilder, Umbraco.ModelsBuilder.Ui and Umbraco.ModelsBuilder.Api nuget packages (all version 8.0.1).

    Then I added the following keys to the web.config:

    <add key="Umbraco.ModelsBuilder.Enable" value="true" />
    <add key="Umbraco.ModelsBuilder.EnableApi" value="true" />
    <add key="Umbraco.ModelsBuilder.ModelsMode" value="Nothing" />
    

    As well added the details of my Umbraco administrator account to the Umbraco Models Builder Tool in visual studio itself. Now I get the following error:

    UmbracoModelsBuilder: Starting v3.0.6.97 06/03/2019 15:35:18. UmbracoModelsBuilder: UmbracoModelsBuilder failed to generate code: Exception: Response status code does not indicate success (NotFound)

    HTTP Error 404.0 - Not Found

    The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

    Most likely causes:

    • The directory or file specified does not exist on the Web server.
    • The URL contains a typographical error.
    • A custom filter or module, such as URLScan, restricts access to the file.

    Things you can try:

    • Create the content on the Web server.
    • Review the browser URL.
    • Create a tracing rule to track failed requests for this HTTP status code and see which module is calling SetStatus. For more information about creating a tracing rule for failed requests, click here.

    Detailed Error Information:

    Module   IIS Web Core
    Notification   MapRequestHandler
    Handler   StaticFile
    Error Code   0x80070002
    Requested URL   http://www.umbraco-v8.local:80/Umbraco/BackOffice/ModelsBuilder/ModelsBuilderApi/ValidateClientVersion
    Physical Path   D:\Projects\UmbracoFramework\Web\Umbraco\BackOffice\ModelsBuilder\ModelsBuilderApi\ValidateClientVersion
    Logon Method   Anonymous
    Logon User   Anonymous

    More Information:

    This error means that the file or directory does not exist on the server. Create the file or directory and try the request again.

    View more information ยป

    UmbracoModelsBuilder:    at Umbraco.ModelsBuilder.Api.ApiClient.EnsureSuccess(HttpResponseMessage result)
       at Umbraco.ModelsBuilder.Api.ApiClient.ValidateClientVersion()
       at Umbraco.ModelsBuilder.CustomTool.CustomTool.UmbracoModelsBuilder.GenerateRaw(String wszInputFilePath, String wszDefaultNamespace, IntPtr[] rgbOutputFileContents, UInt32& pcbOutput, String& errMsg)
    
  • Sebastiaan Janssen 5044 posts 15475 karma points MVP admin hq
    Mar 06, 2019 @ 14:52
    Sebastiaan Janssen
    101

    It's not supported yet, we're working on updates for ModelsBuilder.Api to be released for 8.0.1.

  • Koen van Ras 56 posts 361 karma points c-trib
    Mar 06, 2019 @ 14:56
    Koen van Ras
    0

    Awesome thanks for the quick reply!

  • Rene Becker 5 posts 76 karma points
    Mar 13, 2019 @ 08:55
    Rene Becker
    0

    Hi Koen, Did you managed to get this to work. I'm running into the same issue. Or are you waiting for the updates of the ModelsBuilder.Api?

  • Koen van Ras 56 posts 361 karma points c-trib
    Mar 13, 2019 @ 09:01
    Koen van Ras
    0

    Hi Rene, I'm still waiting for the update since they already fixed the issue. As I saw on Twitter, they will release it asap. For now some small issues are delaying the release that was planned for yesterday.

  • Rene Becker 5 posts 76 karma points
    Mar 13, 2019 @ 09:07
    Rene Becker
    0

    Hi Koen, Thnx for the quick reply. We'll just have to be a patient a bit more.

  • Koen van Ras 56 posts 361 karma points c-trib
    Mar 13, 2019 @ 10:14
    Koen van Ras
    0

    I just checked and they moved the release date to next week on Tuesday.

  • BJ Patel 80 posts 206 karma points
    Mar 19, 2019 @ 09:43
    BJ Patel
    0

    So is it getting released today?

    And sorry, but how can we track the same. (status of getting released )

  • Frans de Jong 548 posts 1840 karma points MVP 3x c-trib
    Mar 19, 2019 @ 09:51
    Frans de Jong
    1

    If you go to the status page you can track all updates and maintenance. You can also subscribe and get updates via email

    https://status.umbraco.io/

  • Koen van Ras 56 posts 361 karma points c-trib
    Mar 19, 2019 @ 10:35
    Koen van Ras
    0

    It looks like 8.0.1 just got release, though I can't upgrade to this version since they didn't release an update for UmbracoCms.Web, which is version 8.0.0 and UmbracoCms and UmbracoCms.Core 8.0.1 depend on UmbracoCms.Web 8.0.1. I just contacted support about what to do, I'll keep you posted here.

  • Sebastiaan Janssen 5044 posts 15475 karma points MVP admin hq
    Mar 19, 2019 @ 11:03
    Sebastiaan Janssen
    2

    Thanks Koen, I noticed something broke in our release pipeline, it should start working on NuGet in about 15 minutes.

  • Koen van Ras 56 posts 361 karma points c-trib
    Mar 19, 2019 @ 11:05
    Koen van Ras
    0

    Thank you, I see it got released now :)

  • BJ Patel 80 posts 206 karma points
    Mar 19, 2019 @ 18:02
    BJ Patel
    0

    Still getting the same error. after updating. (I have updated NuGet package to v8.0.1)

    But on Run Custom Tool

    HTTP Error 404.0 - Not Found
    

    "/Umbraco/BackOffice/ModelsBuilder/ModelsBuilderApi/ValidateClientVersion"

    Any suggestion.

  • Frans de Jong 548 posts 1840 karma points MVP 3x c-trib
    Mar 19, 2019 @ 18:03
    Frans de Jong
    0

    Did you install the modelsbuilder API package and are you running in debug mode?

  • BJ Patel 80 posts 206 karma points
    Mar 19, 2019 @ 18:15
    BJ Patel
    0

    Yes, model builder API is installed (V8.0.1)

    And Yes, running in debug mode.

  • BJ Patel 80 posts 206 karma points
    Mar 19, 2019 @ 18:27
    BJ Patel
    0

    Ok, Got it working after upgrading model builder API to V8.0.4

    Thanks

  • Osama Alkassih 6 posts 80 karma points
    Oct 09, 2019 @ 09:46
    Osama Alkassih
    0

    Hi, I'm having the same issue with the latest Umbraco version 8.1.5. I tried all suggestions but none worked.

    Any idea why?

    Thanks

  • Frans de Jong 548 posts 1840 karma points MVP 3x c-trib
    Oct 09, 2019 @ 09:51
    Frans de Jong
    0

    Can you describe what doesn't work means?

    Have you installed the Api in your Umbraco project? Did you set the correct settings in your web.config?

    Do you get a error?

    Frans

  • Osama Alkassih 6 posts 80 karma points
    Oct 09, 2019 @ 10:10
    Osama Alkassih
    0

    I get HTTP Error 404.0 - Not Found when calling /Umbraco/BackOffice/ModelsBuilder/ModelsBuilderApi/ValidateClientVersion.

    I installed the api yesterday on a Umbraco 8.1.1 project and worked ok. But today, I installed it on a project that has Umbraco 8.1.5, but it keeps giving me this error.

  • Osama Alkassih 6 posts 80 karma points
    Oct 09, 2019 @ 15:50
    Osama Alkassih
    0

    Ok, I have created a blank project and installed both Umbraco 8.1.5 & the api, but still have the same issue.

    Could someone help please?

  • Alan Mitchell 56 posts 277 karma points c-trib
    Oct 14, 2019 @ 11:54
    Alan Mitchell
    0

    Are you using the Models Builder extension - which replaces the Visual Studio Custom tool?

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

  • Marshall Penn 78 posts 258 karma points
    Oct 11, 2019 @ 10:07
    Marshall Penn
    0

    I also had the same error - when using the api - I installed 8.1.5 and I get a 404 when calling /Umbraco/BackOffice/ModelsBuilder/ModelsBuilderApi/ValidateClientVersion

    However, while i had installed ModelsBuilder 8.10, I have forgotten to install ModelsBuilderApi as well!! Once that was installed it works

  • Daniel Bardi 927 posts 2562 karma points
    Jul 20, 2020 @ 16:12
    Daniel Bardi
    0

    I'm running Umbraco v8.6.3 and getting this same error. Modelsbuilder v8.1.0

  • Osama Alkassih 6 posts 80 karma points
    Jul 20, 2020 @ 16:34
    Osama Alkassih
    4

    I haven't used it for a while, but one of the checks to do is to make sure you have debug="true" in the web.config

Please Sign in or register to post replies

Write your reply to:

Draft