Copied to clipboard

Flag this post as spam?

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


  • Thomas Won Nyheim 23 posts 133 karma points
    Oct 18, 2018 @ 09:45
    Thomas Won Nyheim
    0

    Not able to create models from models builder

    Umbraco Version 7.12.3

    Getting the error The custom tool 'UmbracoModelsBuilder' failed. One or more errors occured. When trying to run custom tool.

    enter image description here

    The output log indicates 404 error.` UmbracoModelsBuilder: Starting v3.0.6.97 18.10.2018 11:38:21. 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.
    • Check the failed request tracing log and see which module is calling SetStatus. For more information, click here.

    Detailed Error Information:

    Module   IIS Web Core
    Notification   MapRequestHandler
    Handler   StaticFile
    Error Code   0x80070002
    Requested URL   http://localhost:63238/Umbraco/BackOffice/ModelsBuilder/ModelsBuilderApi/ValidateClientVersion
    Physical Path   C:\Users\Thomas\Documents\Local_src\Skiguard\Skiguard\Skiguard.WEB\Umbraco\BackOffice\ModelsBuilder\ModelsBuilderApi\ValidateClientVersion
    Logon Method   Anonymous
    Logon User   Anonymous
    Request Tracing Directory   C:\Users\Thomas\Documents\IISExpress\TraceLogFiles\SKIGUARD.WEB

    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)`

    Backoffice gives me this:

    ModelsBuilder is enabled, with the following configuration:

    • The models factory is enabled.
    • The API is enabled but not installed.
    • External tools such as Visual Studio cannot use the API.
    • No models mode is specified: models will not be generated.
    • Models namespace is Umbraco.Web.PublishedContentModels.
    • Static mixin getters are enabled. The pattern for getters is "Get{0}".
    • Tracking of out-of-date models is not enabled.

    Webconfig has the following settings:

    <add key="Umbraco.ModelsBuilder.Enable" value="true" />
    <add key="Umbraco.ModelsBuilder.ModelsMode" value="Nothing" />
    <add key="Umbraco.ModelsBuilder.EnableApi" value="true" />
    
  • Paul Seal 384 posts 2084 karma points MVP 2x c-trib
    Oct 18, 2018 @ 09:49
    Paul Seal
    100

    Hi Thomas Have you installed the package Umbraco.ModelsBuilder.Api in the project?

    https://www.nuget.org/packages/Umbraco.ModelsBuilder.Api/

    Cheers

    Paul

  • Thomas Won Nyheim 23 posts 133 karma points
    Oct 18, 2018 @ 10:10
    Thomas Won Nyheim
    0

    Thought I had, but seemed like i was looking at the wrong package.

    Thank you Paul

    Regards, Thomas

Please Sign in or register to post replies

Write your reply to:

Draft