Hi,
I am getting below error while loading RDL report through report execution service
The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM'.
C# code-
ReportExecutionServiceSoapClient rsExec = new ReportExecutionServiceSoapClient();
rsExec.ClientCredentials.Windows.AllowNtlm = true;
rsExec.ClientCredentials.Windows.ClientCredential.Domain = "domain";
rsExec.ClientCredentials.UserName.UserName = "user";
rsExec.ClientCredentials.UserName.Password = "password";
rsExec.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;
rsExec.LoadReport(trusteduserHeader, reportPath, historyID, out serviceInfo, out execInfo); --getting error at this line
client side configuration-
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="ReportExecutionServiceSoap">
<security mode="Transport">
<transport clientCredentialType="Ntlm" proxyCredentialType="None" realm="" />
</security>
</binding>
<binding name="ReportExecutionServiceSoap1" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address=https://server/ReportServer/ReportExecution2005.asmx
binding="basicHttpBinding" bindingConfiguration="ReportExecutionServiceSoap"
contract="ServiceReference1.ReportExecutionServiceSoap" name="ReportExecutionServiceSoap" />
</client>
</system.serviceModel>
Please note that the same code works fine if we use it on same server where reporting service is installed.
Thanks for your help in advance.