Copied to clipboard

Flag this post as spam?

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


  • George Phillipson 108 posts 287 karma points
    Feb 27, 2019 @ 01:07
    George Phillipson
    0

    Umbraco 8 Model Builder connection was refused Works OK in Umbraco 7

    Hi I'm trying to use Umbraco Model Builder API following this Umbraco TV https://umbraco.tv/videos/umbraco-v7/implementor/working-with-umbraco-data/working-with-models-builder/what-is-models-builder/

    Problem is I get the following error.

    > UmbracoModelsBuilder: Starting v3.0.6.97 27/02/2019 00:59:36.
    > UmbracoModelsBuilder: UmbracoModelsBuilder failed to generate code:
    > AggregateException: One or more errors occurred. UmbracoModelsBuilder:
    > at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean
    > includeTaskCanceledExceptions)    at
    > System.Threading.Tasks.Task`1.GetResultCore(Boolean
    > waitCompletionNotification)    at
    > System.Threading.Tasks.Task`1.get_Result()    at
    > Umbraco.ModelsBuilder.Api.ApiClient.ValidateClientVersion()    at
    > Umbraco.ModelsBuilder.CustomTool.CustomTool.UmbracoModelsBuilder.GenerateRaw(String
    > wszInputFilePath, String wszDefaultNamespace, IntPtr[]
    > rgbOutputFileContents, UInt32& pcbOutput, String& errMsg)
    > UmbracoModelsBuilder: Inner: HttpRequestException: An error occurred
    > while sending the request. UmbracoModelsBuilder: 
    > UmbracoModelsBuilder: Inner: WebException: Unable to connect to the
    > remote server UmbracoModelsBuilder:    at
    > System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult
    > asyncResult, TransportContext& context)    at
    > System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult
    > ar) UmbracoModelsBuilder: Inner: SocketException: No connection could
    > be made because the target machine actively refused it 127.0.0.1:51022
    > UmbracoModelsBuilder:    at
    > System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
    > at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)   
    > at System.Net.ServicePoint.ConnectSocketInternal(Boolean
    > connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress&
    > address, ConnectSocketState state, IAsyncResult asyncResult,
    > Exception& exception) UmbracoModelsBuilder: AggregateInner:
    > HttpRequestException: An error occurred while sending the request.
    > UmbracoModelsBuilder:
    

    Web.config

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

    So its telling me that connection was refused UmbracoModelsBuilder: Inner: SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:51022.

    Is the Umbraco TV Working with Models Builder still valid for version 8

    Thanks

    ------------Update-------------

    I have created an Umbraco 7 website, followed the same steps as above and the modelbuilder works.

    This issue seems to be Umbraco 8 bug

  • Gilles 25 posts 107 karma points
    Feb 27, 2019 @ 10:54
    Gilles
    0

    It looks like the Modelsbuilder API has some issues with v8. I also get an error message (different from yours - I'm not on my Dev machine right now so I can't copy it here).

    Works fine in v7 with the same machine.

    However, I works flawlessly (as far as I could test yesterday) when setting the ModelsMode to AppData

    Maybe the Modelsbuilder Extension has not been updated to work with v8 as it is still on the same version as before. Only the NuGet Package for the API got updated to v.8.0.1 vs 3.0.10

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Feb 27, 2019 @ 11:00
Please Sign in or register to post replies

Write your reply to:

Draft