I am trying to connect to URL using WebClient inside Asp.Net Web Api project. My intention was to get the content and create a web site thumbnail.
Sample Code:
I found the answer here in the end: Web Request through Proxy using RestSharp
Adding:
<system.net> <defaultProxy enabled="true" useDefaultCredentials="true"></defaultProxy> </system.net>
To my web config fixed it for me.