Microsoft Reporting Service webservice throwing an exception
I am trying out the following code to fetch list of items under specified path, but ListChildren()
is throwing System.InvalidOperationException exception.
What are the steps to avoid getting this exception, & how do I resolve this after I get it?
// Code snippet
string path = "/";
ReportingService rs = new ReportingService();
rs.Url = "http://localhost/ReportServer/ReportService.asmx";
rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
CatalogItem[] items = null;
try
{
items = rs.ListChildren(path, true);
}
catch(System.InvalidOperationException)
{
Console.WriteLine("ListChildren() caused an exception");
}
Re: Microsoft Reporting Service webservice throwing an exception
Is this related to databases? :rolleyes:
Try using the debugger to see if it helps reach to the cause of the exception. There must be some message to explain the exception - what does it say?
See if this helps. Do you have the required access rights to do the operation on the server? Regards.