Before you calling the actual
WebClient DownloadString
functionality, You may have to set the
Credentials
Property to the
WebClient
object. i.e
WebClient client = new WebClient();
client.Credentials = CredentialCache.DefaultCredentials;
For more see
MSDN[
^] article.