SyntaxFix
Write A Post
Hire A Developer
Questions
Use NetworkCredential
NetworkCredential
Yep, just add these two lines to your code.
var credentials = new System.Net.NetworkCredential("username", "password"); client.Credentials = credentials;