|
-
February 20th, 2006, 01:47 AM
#1
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");
}
-
February 24th, 2006, 02:10 AM
#2
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.
Can you help me with my homework assignment?, Before you post!, Use code tags, How to post!, Codeguru technical FAQs, C++ FAQ Lite, Stroustrup: C++ Style and Technique FAQ, Guru of the Week, Comeau C and C++ FAQs, Comeau C++ Templates FAQs, CUJ @ DDJ, Spam threshold
My Blogs : Learning C++ is fun | Abnegator's reflections
Open Threads : C++ Aha! Moments | Nature of work in C++?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|