Last post May 19, 2016 07:35 AM by Weibo Zhang
May 19, 2016 02:13 AM|F A|LINK
I have an application in VS 2013
In a nutshell,we are launching an SSRS report from C#, and using the APP Pool identity from IIS to authenticate to the report
However we keep getting 401 unauthorized error
ReportExecutionService rs = new ReportExecutionService();
rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
rs.Url = "http://uat.server/ReportServer/ReportExecution2005.asmx";
In IIS, the application has been setup with 'anonymous authentication'. Also, the APP POOL identity is being used to access the report, 'user1'
In SSRS, the report 'reportx' has two sources:
2.XML setup with 'windows integrated security' (i think this might be the issue)
Also, the same IIS app pool ID has been assigned to the report under 'security', with'content manager' access - 'user1'
We keep getting 401 unauthorized error
NOTE: If we used hardcoded network credentials in C# when launching the report, this works - however, not an option
May 19, 2016 07:35 AM|Weibo Zhang|LINK
Hi F A,
In IIS, the application has been setup with 'anonymous authentication'
You could first check the log to make sure whether there’s an error message “Login failed for User ‘NT Authority\Anonymous’”. if true, it requires the usage of Kerberos. For more things about Kerberos settings, please refer to below thread.
Besides, you should follow below thread to register Service Principal Name (SPN) for the account the Reporting Services is running under.