Credentials for calling ReportingService web service with machine local user?
I have a few reports I'm showing in a ASP.NET 3.5 application in PDF format. I get these reports by using the SSRS web service On my local development machine it all worked using my domain name/pswd but now that I'm setting this up on the test servers I need a different setup. This web page will be "public" and there won't be username/pswds on a domain. The idea I have is to add a user to the server machine and give that user permissions to view/generate reports in SSRS. In other words all reports generated by the app will be generated under the same user account. Is this possible? I created a user on the server machine (not the domain) and gave that user permissions in SSRS. I can hit the report manager in a browser and log in with this name/pswd and view reports. Now I'm trying to get this to work calling the ReportingService web service call ReportingService rs = new ReportingService(); rs.Credentials = new NetworkCredential("name", "password", "phclbrlcwebid01"); In the end I get a 401 error when trying to call Render but even before that, when the Credentials are set the rs.Credentials object holds an error saying the domain threw and Exception of type SecurityException. Obviously my user is NOT on the domain how do I setup a call to SSRS so there is a fixed user on the local machine that are the credentials for the application to Render reports? Or is there a different way to do this? thanks mike
April 11th, 2011 6:53pm

does getting this to work involve setting up Basic authentication for <AuthenticationTypes> in RSReportServer.configor changing the </WebServiceAccount> in RSReportServer.config?thanks mike
Free Windows Admin Tool Kit Click here and download it now
April 11th, 2011 7:07pm

Hi Mike, It seems that we are getting (401) Unauthorized error message after running the code that you provided, right? First of all, I would sugest you check the third parameter, make sure it exactly mathes to the server name rather than the domain name. Next, I think you can try following code, ReportingService rs = new ReportingService(); NetworkCredential myCred = new NetworkCredential("username", "password", "computername"); CredentialCache myCache = new CredentialCache(); myCache.Add(new Uri("http://REPORTINGURL/"), "NTLM", myCred); rs.Credentials = myCache; If you have any questions, please feel free to ask. Thanks. Eileen
April 15th, 2011 4:29am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics