> 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:
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.
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
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.
Web.config
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
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
This answer should provide some insight and even help you forward for now:
https://our.umbraco.com/forum/templates-partial-views-and-macros/95928-modelsbuilder-api-exception-in-v8#comment-303403
is working on a reply...