Inactive Tutor answered 01/23/24
Tutor
New to Wyzant
To resolve the issue with your ASP.NET MVC project connecting to SSRS using ReportingService2010 when not running locally, you'll need to configure the NetworkCredential correctly. It's important to ensure that the domain, username, and password are correctly set. Here's how you can modify your code:
ReportingService2010 service = new ReportingService2010();
service.Url = "http://YourReportingServer/ReportServer/ReportService2010.asmx";
var credentials = new NetworkCredential("username", "password", "domain");
service.Credentials = credentials;
CatalogItem[] items = service.ListChildren(reportsFolderPath, true);