I was also having this issue - and it turned out to be due to dll performing the web request having being downloaded from the web.
I had to go into the Properties of the dll in file explorer (right click> Properties) and click "Unblock" - making sure to click "Apply" and then "Ok".