Back

New lean release build failure

Hi every one,

I will appreciate your help regarding lean engine release update, i have for a long time managed to build my lean engine succesfully and used it smoothly on my windows pc, but some reason during the latest releases it started targeting .Net 4.6 and build failure in quantconnect.toolbox, quantconnect.launcher due to missing refernce in assembly, i have tried to run nuget but dont know which package to update and how to use it.

 Any help will be greatly appreciated.

Regards

Essam Saied

Update Backtest







0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Hey Essam; can you please post the full error log for better assistance debugging? Thank you!

0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Hi Jared,

   Sorry for the lack of info in the previous one since i had to roll back the upgrade to be able to run lean, and i have updated it now to the last build, and here is a part of the build output,

 

19> QuantConnect.Report -> C:\Users\essam\source\repos\Lean\Report\bin\Debug\QuantConnect.Report.exe
19> IsWindows true
19> IsOSX false
19> IsLinux false
19> ForceLinuxBuild
19> SelectedOptimization
17> No way to resolve conflict between "System.Net.Http, Version=4.1.1.3, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Choosing "System.Net.Http, Version=4.1.1.3, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" arbitrarily.
17> Consider app.config remapping of assembly "System.Net.Sockets, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Net.Sockets\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Sockets.dll] to Version "4.1.1.0" [C:\Users\essam\source\repos\Lean\packages\System.Net.Sockets.4.3.0\lib\net46\System.Net.Sockets.dll] to solve conflict and get rid of warning.
17> Consider app.config remapping of assembly "System.Security.Cryptography.Algorithms, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Security.Cryptography.Algorithms\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Security.Cryptography.Algorithms.dll] to Version "4.1.0.0" [C:\Users\essam\source\repos\Lean\packages\System.Security.Cryptography.Algorithms.4.3.0\lib\net461\System.Security.Cryptography.Algorithms.dll] to solve conflict and get rid of warning.
17> Consider app.config remapping of assembly "System.ValueTuple, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ValueTuple\v4.0_4.0.0.0__cc7b13ffcd2ddd51\System.ValueTuple.dll] to Version "4.0.2.0" [C:\Users\essam\source\repos\Lean\packages\System.ValueTuple.4.4.0\lib\net461\System.ValueTuple.dll] to solve conflict and get rid of warning.
17> Consider app.config remapping of assembly "System.Net.Http, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\System.Net.Http.dll] to Version "4.1.1.3" [C:\Users\essam\source\repos\Lean\Brokerages\bin\Debug\System.Net.Http.dll] to solve conflict and get rid of warning.
17>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2081,5): warning MSB3276: Found conflicts between different versions of the same dependent assembly. Please set the "AutoGenerateBindingRedirects" property to true in the project file. For more information, see http://go.microsoft.com/fwlink/?LinkId=294190.
17>C:\Users\essam\source\repos\Lean\ToolBox\EstimizeDataDownloader\EstimizeDataDownloader.cs(27,18,27,22): error CS0234: The type or namespace name 'Http' does not exist in the namespace 'System.Net' (are you missing an assembly reference?)
17>C:\Users\essam\source\repos\Lean\ToolBox\EstimizeDataDownloader\EstimizeDataDownloader.cs(28,18,28,22): error CS0234: The type or namespace name 'Http' does not exist in the namespace 'System.Net' (are you missing an assembly reference?)
17>C:\Users\essam\source\repos\Lean\ToolBox\TradingEconomicsDataDownloader\TradingEconomicsDataDownloader.cs(19,18,19,22): error CS0234: The type or namespace name 'Http' does not exist in the namespace 'System.Net' (are you missing an assembly reference?)
17>C:\Users\essam\source\repos\Lean\ToolBox\TradingEconomicsDataDownloader\TradingEconomicsDataDownloader.cs(20,18,20,22): error CS0234: The type or namespace name 'Http' does not exist in the namespace 'System.Net' (are you missing an assembly reference?)
18> QuantConnect.Research -> C:\Users\essam\source\repos\Lean\Research\bin\Debug\QuantConnect.Research.dll
18> IsWindows true
18> IsOSX false
18> IsLinux false
18> ForceLinuxBuild
20>------ Rebuild All started: Project: QuantConnect.Lean.Launcher, Configuration: Debug Any CPU ------
20>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2081,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "C:\Users\essam\source\repos\Lean\Research\bin\Debug\QuantConnect.Research.dll", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
20>CSC : error CS0006: Metadata file 'C:\Users\essam\source\repos\Lean\ToolBox\bin\Debug\QuantConnect.ToolBox.exe' could not be found
21>------ Rebuild All started: Project: QuantConnect.Tests, Configuration: Debug Any CPU ------
21>CSC : error CS0006: Metadata file 'C:\Users\essam\source\repos\Lean\Launcher\bin\Debug\QuantConnect.Lean.Launcher.exe' could not be found
21>CSC : error CS0006: Metadata file 'C:\Users\essam\source\repos\Lean\ToolBox\bin\Debug\QuantConnect.ToolBox.exe' could not be found
========== Rebuild All: 16 succeeded, 3 failed, 2 skipped ==========

And thanks very much for your support

Regards

Essam Saied

0

And here is the entire error list

Severity Code Description Project File Line Suppression State
Error CS0234 The type or namespace name 'Http' does not exist in the namespace 'System.Net' (are you missing an assembly reference?) QuantConnect.ToolBox C:\Users\essam\source\repos\Lean\ToolBox\EstimizeDataDownloader\EstimizeDataDownloader.cs 27 Active
Error CS0234 The type or namespace name 'Http' does not exist in the namespace 'System.Net' (are you missing an assembly reference?) QuantConnect.ToolBox C:\Users\essam\source\repos\Lean\ToolBox\EstimizeDataDownloader\EstimizeDataDownloader.cs 28 Active
Error CS0234 The type or namespace name 'Http' does not exist in the namespace 'System.Net' (are you missing an assembly reference?) QuantConnect.ToolBox C:\Users\essam\source\repos\Lean\ToolBox\TradingEconomicsDataDownloader\TradingEconomicsDataDownloader.cs 19 Active
Error CS0234 The type or namespace name 'Http' does not exist in the namespace 'System.Net' (are you missing an assembly reference?) QuantConnect.ToolBox C:\Users\essam\source\repos\Lean\ToolBox\TradingEconomicsDataDownloader\TradingEconomicsDataDownloader.cs 20 Active
Error CS0006 Metadata file 'C:\Users\essam\source\repos\Lean\ToolBox\bin\Debug\QuantConnect.ToolBox.exe' could not be found QuantConnect.Lean.Launcher C:\Users\essam\source\repos\Lean\Launcher\CSC 1 Active
Error CS0006 Metadata file 'C:\Users\essam\source\repos\Lean\Launcher\bin\Debug\QuantConnect.Lean.Launcher.exe' could not be found QuantConnect.Tests C:\Users\essam\source\repos\Lean\Tests\CSC 1 Active
Error CS0006 Metadata file 'C:\Users\essam\source\repos\Lean\ToolBox\bin\Debug\QuantConnect.ToolBox.exe' could not be found QuantConnect.Tests C:\Users\essam\source\repos\Lean\Tests\CSC 1 Active

Thanks

0

Hi Essam Saed ,

Are you running the latest version of Lean? Does your system have .Net Framework 4.6.2? 
I would recommend getting those and rebuild with a clean version of Lean (remove all packages and let nuget fetch them again).

0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Dear Alexandre Catarino

    Thanks for your reply, I have tried as you suggested but still, I receive the same errors,

I have downloaded the latest lean version and I do have .Net framework 4.6.2 but i don't know why i receive this build error any other suggestions.

Thanks

0

Hi Essam Saed ,

This warning message:
warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "C:\Users\essam\source\repos\Lean\Research\bin\Debug\QuantConnect.Research.dll", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.

gives us a hint that you might be compiling Lean with the wrong processor architecture. That's why I asked you to get the latest version since a similar issue was solved by #4593...

Do you know which Lean version had worked on your computer? The Net Framework upgrade can be the cause, but it was merged mid-May. However, it's likely an issue with your system, and probably you will have to do a major clean up (remove and reinstall Net Framework, Visual Studio, etc).

1

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Dear Alexandre Catarino 

  Thanks very much for your suggestions, i have tried it and reinstalled visual studio and lean from scratch and it worked greatly

Thanks

0

Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed