The remote server returned an error: (500) Internal Server Error (WebCclient) In C#
In our case when we encountered this error using WebClient, the solution was to set the user agent and add it as header to the WebCclient object.
newWebClient.Headers.Add("user-agent", "Mozilla/5.0 (Windows NT 6.1; rv:2.0) Gecko/20100101 Firefox/4.0");
Comments
Post a Comment