I found that I do not have System.net.http.dll
in GAC
folder in windows. Not sure how I lost it. So I tried installing it using gacutil.exe
in ASP.net folder following the instructions.
But I get errors due to spaces in the links.
I tried running gacutil from its directory as well as in GAC folder. Both got similar errors.
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2>gacutil -i C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Net.Http.dll
'gacutil' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2>C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\gacutil -i System.Net.Http.dll
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2>C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\gacutil -i System.Net.Http.dll
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Any help is appreciated.