title: SSRS authentication in a MVC application
body: <p>I have a ASP.NET MVC project which connects to SSRS using <code>ReportingService2010</code> web service endpoints to retrieve and download reports.</p>
  
  <p>Connection works fine using <code>CredentialCache.DefaultCredentials</code> when developing locally with Visual Studio running with admin privileges</p>
  
  <p>When published to virtual directory or used with <code>NetworkCredential</code> with <code>domain\username</code> it doesn't work as expected. I added the windows system user in SSRS as a system administrator.</p>
  
  <p>Current syntax which only works when running locally in Visual Studio with admin privileges.</p>
  
  <pre><code>ReportingService2010 service = new ReportingService2010();
  service.Credentials = CredentialCache.DefaultCredentials;
  CatalogItem[] items = service.ListChildren(reportsFolderPath, true);
  </code></pre>
  
  <p>Is there a way to configure <code>domain\username</code> password with <code>NetworkCredential</code></p>
  
  <pre><code>ReportingService2010 service = new ReportingService2010();
  var credentials = new NetworkCredential("insharp", "abc123", "insharp-lenovo");
  service.Credentials = credentials;
  </code></pre>