System.Web.Services.Protocols.SoapException: The item '/foldername' cannot be found

I am trying to figure out how to correctly reference the directory to my subscriptions:

Dim subsAs Subscription() = rs.ListSubscriptions("/SSS",Nothing)

System.Web.Services.Protocols.SoapException: The item '/Hedi' cannot be found. >

FYI: I replaced sss for privacy purposes only here

[536 byte] By [FavorFlave] at [2007-12-19]
# 1

Does /SSS exist in the catalog?

For ListSubscriptions() to work, the item must exist in the catalog and either be a report or a linked report.

If /SSS exists, but is not a report, then you should see a WrongItemType exception.

JohnGallardo-MSFT at 2007-9-8 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...
# 2

Here's the actual report URL

http://servername/Reports/Pages/Report.aspx?ItemPath=%2fHedi%2fProcessingSummaryReport

the subscription URL I see when I go to the subscription is:

http://servername/Reports/Pages/Report.aspx?ItemPath=%2fHedi%2fProcessingSummaryReport&SelectedTabId=SubscriptionsTab

I tried putting "/Hedi/ProcessingSummaryReport/" but it cannot find it

FavorFlave at 2007-9-8 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...
# 3

so this errors out:

Error: System.Web.Services.Protocols.SoapException: The item '/Hedi/ProcessingSummaryReport' cannot be found. >

Public Sub RunSummaryReport()

Dim rs As New ReportingService2005()

rs.Credentials = System.Net.CredentialCache.DefaultCredentials

' Get the subscriptions

Dim subs As Subscription() = rs.ListSubscriptions("/Hedi/ProcessingSummaryReport", Nothing)

Try

If Not (subs Is Nothing) Then

' Fire the first subscription in the list

rs.FireEvent("TimedSubscription", subs(0).SubscriptionID)

Console.WriteLine("Event fired.")

End If

Catch ex As Exception

Console.WriteLine(ex.Message)

End Try

End Sub

FavorFlave at 2007-9-8 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...
# 4

Just saw your recent post. let me have a look.

JohnGallardo-MSFT at 2007-9-8 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...
# 5

here's a print screen of my app:

http://www.webfound.net/subscription_error.jpg

FavorFlave at 2007-9-8 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...
# 6

Can you call other APIs on it (LoadReport(), GetProperties())?

Also, are you executing against the same instance that you originally created the web reference against? You can check this by checking the .Url property of the web service proxy.

JohnGallardo-MSFT at 2007-9-8 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...
# 7

Ok, no I was not using the same instance. However I changed it to do that but not I'm not sure what method to use

Dim rs As New HEDI2.ReportService2005.Event()

should I use .job(), .even().....there are others also

FavorFlave at 2007-9-8 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...
# 8

>> .Url property of the web service proxy.

can you elaborate

FavorFlave at 2007-9-8 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...
# 9

it actually recommended for me to change it back to just old

ReportingService2005()

http://www.webfound.net/options.jpg

FavorFlave at 2007-9-8 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...
# 10
why am I getting %2f in the URLs on my Report Server?
FavorFlave at 2007-9-8 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...
# 11

because the "/" character is being escaped. You don't need to do this when using the SOAP API.

In your code, check "rs.Url", and confirm that is pointing the the server and instance that you have actually created the item on. If it is, then confirm that you have appropriate permissions to actually see the item. You can try calling rs.ListChildren("/", true) in order to get everything in the catalog.

JohnGallardo-MSFT at 2007-9-8 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...
# 12

ok, the URL shows http://localhost/reportserver/reportservice2005.asmx

FavorFlave at 2007-9-8 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...
# 13
I put in rs.ListChildren("/", true), it had no effect
FavorFlave at 2007-9-8 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...
# 14
If It's using localhost, since this vb.net code is on the server, I am hopeing it's using the servername and not my local PC name
FavorFlave at 2007-9-8 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...

SQL Server

Site Classified