Unable to load SSRS report(RDL) through Report Execution Service from different domain

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.

August 21st, 2015 8:41am

http://stackoverflow.com/questions/15570108/the-http-request-is-unauthorized-with-client-authentication-scheme-negotiate
Free Windows Admin Tool Kit Click here and download it now
August 21st, 2015 9:26pm

Hi,

It works only in same domain, it doesn't work in different domain machine.

August 23rd, 2015 11:16pm

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

Other recent topics Other recent topics