modelsbuilder/ModelsBuilder.Original

UmbracoModelsBuilder Error (System.Net.Http)

JaimyTak opened this issue · 5 comments

Hello!

I have encountered a problem that i'm not able to fix. When I run the Umbraco Models Builder (Builder.cs) I recieve an error message:

UmbracoModelsBuilder: Starting v8.0.5 9/25/2019 9:49:24 AM.
UmbracoModelsBuilder: UmbracoModelsBuilder failed to generate code: FileNotFoundException: Cannot load file or assembly System.Net.Http, Version = 4.2.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a or one of its dependencies. The system cannot find the specified file.
UmbracoModelsBuilder: at Umbraco.ModelsBuilder.Api.ApiClient.ValidateClientVersion ()
at Umbraco.ModelsBuilder.CustomTool.CustomTool.UmbracoModelsBuilder.GenerateRaw (String wszInputFilePath, String wszDefaultNamespace, IntPtr [] rgbOutputFileContents, UInt32 & pcbOutput, String & errMsg.

Can someone please help me?

Thanks in advance.

Kind regards,
Jaimy

Can you try again with the Visual Studio Extension instead of the Visual Studio CustomTool? See this post for details. And then... the error happens right in Visual Studio which is weird - what version of VS is that?

Thanks for your reply.

I am recieving the same error with the "Extension".

My visual studio:

Visual Studio Professional 2017 - Version: 15.9.16

Kind regards,
Jaimy

I am afraid I haven't tested the latest extension with VS2017 - any chance you can run VS2019?

Else I'll have to troubleshoot.

Yes, I'm able to run VS2019. I will send a message/comment when I'm ready/installed everything.

It seems to work with VS2019! Thanks for your reply and help!