ReportingService service = new ReportingService();
service.Credentials = new System.Net.NetworkCredential("username", "password", "domain");
service.CreateSubscription(report, extSettings, description, eventType, matchData, parameters);
This is the exception i get
The current action cannot be completed because the user data source credentials that are required to execute this report are not stored in the report server database. > The current action cannot be completed because the user data source credentials that are required to execute this report are not stored in the report server database.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Services.Protocols.SoapException: The current action cannot be completed because the user data source credentials that are required to execute this report are not stored in the report server database. > The current action cannot be completed because the user data source credentials that are required to execute this report are not stored in the report server database.
Source Error:
Line 3382: [return: System.Xml.Serialization.XmlElementAttribute("SubscriptionID")] |
Tried to solve this and found that its the problem with the datasource I created for the report, tried to use 'sa' user in
data source->credentials->Use a specified user name and password, but did'nt worked.
Onemore thing i am able to access GetExtensionSettings("Report Server Fileshare"); API with
service.Credentials = System.Net.CredentialCache.DefaultCredentials;
Not able to find out what users to create in Report Server database or the database i am connecting to?
Will appreciate any kind of help.
|||
I believe your problem does not lie with a user in a database; I have used RS WS to Create / Fire Subscriptions and to UpdateSnapshots. Whatever user you pass to the Web Service must have Generate Events permission under Site Settings. Give the user those permissions and I think you will find that it will resolve your problem
Please let me know
Thanks
|||Report's data source must use stored credentials.
No comments:
Post a Comment