Hi all ,
I am using rs.fireevent () class for firing an event but I a getting an
error
My script code is
Sub Main
Dim rs As New ReportingService()
rs.Credentials = System.Net.CredentialCache.DefaultCredentials
Dim subs As Subscription() = rs.ListSubscriptions("/Reports/Report1", Nothing)
try
rs.FireEvent("TimedSubscription", subs(0).SubscriptionID)
Catch ex As Exception
Console.WriteLine(ex.Message)
End Try
End Sub
Whenever I run this script using Rs.utility in command prompt Like
"rs -i NewSubscription.rss -s http://mercury/reportserver -e mgmt2000"
I get an error as
"The permissions granted to user 'sb\svaddadi' are insufficient for per
forming this operation."
Even though I have administrator privliges to server I am getting this
error.
Any suggestion will be apprecaible
SonuHi,
Sorry I didn;t see your earlier post and replied that you need to write the
code . Now that you tried writing code in this post. Gr8. Try giving -u and
-p values as well.
Amarnath
"Shrinivas" wrote:
> Hi all ,
> I am using rs.fireevent () class for firing an event but I a getting an
> error
> My script code is
> Sub Main
> Dim rs As New ReportingService()
> rs.Credentials = System.Net.CredentialCache.DefaultCredentials
> Dim subs As Subscription() => rs.ListSubscriptions("/Reports/Report1", Nothing)
> try
> rs.FireEvent("TimedSubscription", subs(0).SubscriptionID)
> Catch ex As Exception
> Console.WriteLine(ex.Message)
> End Try
> End Sub
> Whenever I run this script using Rs.utility in command prompt Like
> "rs -i NewSubscription.rss -s http://mercury/reportserver -e mgmt2000"
> I get an error as
> "The permissions granted to user 'sb\svaddadi' are insufficient for per
> forming this operation."
> Even though I have administrator privliges to server I am getting this
> error.
> Any suggestion will be apprecaible
> Sonu
>
No comments:
Post a Comment