none
Credentials - Specify a username and password RRS feed

  • Question

  • Hi,

    I've been calling reporting services web service in my code like this:

    ReportingService rs = new ReportingService();
    rs.Credentials = System.Net.CredentialCache.DefaultCredentials;


    How can I specify a username and password, instead of using DefaultCredentials?

    Thank you!!
    Tuesday, July 8, 2008 2:52 PM

Answers

  • ReportingService rs = new ReportingService();
    rs.Credentials = new NetworkCredential(username, password, domain);
    Tuesday, July 8, 2008 3:12 PM

All replies