I have:
private readonly ReportingService2010 _rs = new ReportingService2010();
Error:
The type or namespace name \'ReportingSer
Just ran into the exact same issue. ReportingService2010SoapClient class was available, but the ReportingService2010 class was not. Was driving me nuts. I had added it as a "Service References", but you have to add it as a "Web References", like so:
Delete your old Service Reference
Right click on References. The "Add Service Reference" dialog comes up.
Do not enter the WSDL URL now, instead: Click on the "Advanced" button at the bottom left.
The "Service Reference Settings" dialog comes up.
At the bottom left, click the "Add Web Reference" button.
Now enter the URL for the WSDL. (for me that was servername/ReportServer/ReportService2010.asmx)
Click the small arrow on the right, it will take its sweet time to load.
Name the web reference, I used "ReportingService2010WebReference", but ReportingService2010" probably works just as well.
Click "Add Reference"
In your code, update your using statements to "using .ReportingService2010WebReference (or whatever name you picked)
Code:
private MySol.ReportService2010WebReference.ReportingService2010 rsClient;
rsClient = new ReportingService2010();
rsClient.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;
CatalogItem[] items = null;
items = rsClient.ListChildren("/", false);
foreach (var item in items)
{
tr.ErrorMessage += (item.Path + " " + item.CreatedBy);
}
Worked on the first try. Web.config file wasn't touched.