CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2000
    Location
    India
    Posts
    78

    Question 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");
    }

  2. #2
    Join Date
    Feb 2005
    Location
    "The Capital"
    Posts
    5,306

    Re: Microsoft Reporting Service webservice throwing an exception

    Is this related to databases?

    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.
    Last edited by exterminator; February 24th, 2006 at 02:16 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured