Could not load file or assembly System.Net.Http
Describe the bug A clear and concise description of what the bug is. Error when downloading symbols
To Reproduce Steps and/or AL code to reproduce the behavior:
- Go to '...' AL GO to create new project AL: Download symbols
Expected behavior A clear and concise description of what you expected to happen. Symbols to be downloaded
Screenshots If applicable, add screenshots to help explain your problem.
Versions:
- AL Langauge: 3.0.104632
- Business Central: bcinsider.azurecr.io/bcsandbox-master:base
More error info:
[Error - 12:56:48] Please report this issue to https://github.com/microsoft/al/issues including information on how to reproduce it, if possible.
Processing of message 'al/downloadSymbols' failed with error: 'Could not 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 file specified.'
Details:
System.IO.FileNotFoundException: Could not 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 file specified.
File name: 'System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.Extensions.NavServerRequestHandler1.<HandleAsync>d__5.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.Extensions.NavServerRequestHandler1.HandleAsync(T request, Int32 requestId, CancellationToken cancellationToken)
at Microsoft.Dynamics.Nav.EditorServices.Protocol.MessageProtocol.RequestHandlerBase`1.
WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Solutions that did not work:
Removing all extensions in VSCode Restarting VSCode Deleting the folder: C:\Users\Administrator.vscode\extensions Reinstalling the .vsix from the docker image
Do you have .net framework 4.7.2 installed on your machine with VsCode?
I did, and first it didn't solve the issue, then I uninstalled and re-installed and now it works again. Very strange, because I'm using a Win Server 2016 with Docker and VSCode, nothing else installed.
didn't worked for me same error persist
AL Version: 3.0.115791
Today I downloaded the latest bc on-prem docker image (BC build 14.0.29530) and build a container with it. Everything is installed. All clients (windows, web, dev) can be run. Now wanting to deploy the extensions I am currently working on I opened these projects in VSCode. I removed the old symbol files and triggered a new download getting exactly the same error as @srenders describes.
Installed .Net framework 4.7.2 as per @kalberes suggestion and things are working right, now.
Question: How does anybody know .Net framework 4.7.2 needs to be installed for BC spring 2019? New-NAVContainerHelper does not check this.
+1 on what Luc says. My whole team couldn't download symbols this morning after it seems AL Language has updated to 3.0.115791
We are all on Windows Sever 2016 1607 Build 14393.
Glad to have found this issue quickly this morning! :)

Please guide me on this issue...
Install .Net framework 4.7.2. The issue should be resolved.
MSBuild.exe -version Microsoft (R) Build Engine version 4.7.2053.0 [Microsoft .NET Framework, version 4.0.30319.42000] Copyright (C) Microsoft Corporation. All rights reserved.
4.7.2053.0
Connect-MicrosoftTeams : Could not 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 file specified. At line:1 char:1
Connect-MicrosoftTeams -Credential $credentials
Hi Anil,
Download .NET Framework 4.7.2. This should solve the issue.
Thanks & Regards H Siddharth
From: anilkumar15 [email protected] Sent: Wednesday, February 12, 2020 3:18 PM To: microsoft/AL [email protected] Cc: H.Siddharth [email protected]; Manual [email protected] Subject: Re: [microsoft/AL] Could not load file or assembly System.Net.Http (#4717)
MSBuild.exe -version Microsoft (R) Build Engine version 4.7.2053.0 [Microsoft .NET Framework, version 4.0.30319.42000] Copyright (C) Microsoft Corporation. All rights reserved.
4.7.2053.0
Connect-MicrosoftTeams : Could not 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 file specified. At line:1 char:1
Connect-MicrosoftTeams -Credential $credentials
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FAL%2Fissues%2F4717%3Femail_source%3Dnotifications%26email_token%3DALVWYCGXOJSKXVOJWN54QR3RCPAWTA5CNFSM4G5K5WT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELQD5BA%23issuecomment-585121412&data=02%7C01%7Ch.siddharth%40winspiresolutions.com%7C78bf83f34cb9443981b908d7afa0b715%7C4d5f13808b4c42f9964b56c5a8e50327%7C0%7C1%7C637170977138392380&sdata=Wa4rFb7sSt0eOS4zb8Nu1FWbTAzislR2qSvPUrqLaUI%3D&reserved=0, or unsubscribehttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALVWYCCYN4VWVKQIE422BYTRCPAWTANCNFSM4G5K5WTQ&data=02%7C01%7Ch.siddharth%40winspiresolutions.com%7C78bf83f34cb9443981b908d7afa0b715%7C4d5f13808b4c42f9964b56c5a8e50327%7C0%7C1%7C637170977138402373&sdata=GvN5EqIvFawH%2FjneBj18%2BgcqvDBHUXI6v3bWjRbU0o0%3D&reserved=0.
Hi, thanks for your contribution I solve the error