Nevron Gauge for SharePoint
Skip Navigation Links
Home
Forum Home
Latest 50
Unanswered
Win Prizes
All Time Leaders
Jump to CategoryExpand Jump to Category
Login 
    Welcome Guest!
 Search Forum For :  
X
 Login
Please login to submit a new post, reply and edit exiting posts, see user profiles, and access more features. If you are not a registered member, Register here.
User Id / Email:
Password:  
Forgot Password | Forgot UserName
   Home » Reporting » SSReportingServices 2008 Error The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM'.
       
Author Reply
ales_pac
posted 2 posts
since Oct 22, 2004 
from

SSReportingServices 2008 Error The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM'.

  Posted on: 14 Nov 2011       
Hi....

I try to use

Reporting services 2008 with aspnet and have this exception

The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM'.

this is the code

----------------------------

ReportExec.ReportExecutionServiceSoapClient rsc = new ReportExec.ReportExecutionServiceSoapClient();
//rsc.Credentials = System.Net.CredentialCache.DefaultCredentials;
//rsc.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;
System.Net.NetworkCredential NCCred = new System.Net.NetworkCredential(username, accesspwd);
//rsc.ClientCredentials.Windows.ClientCredential = NCCred;
rsc.ClientCredentials.UserName.UserName = username;
rsc.ClientCredentials.UserName.Password = accesspwd;
rsc.ClientCredentials.HttpDigest.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;
//rsc.Url = "http://MySqlServer.MyDomain.com/reportserver/ReportExecution2005.asmx";

// Render arguments
byte[] result = null;

// Make sure you use your correct org database name of the following line
string reportPath = "/" + reportFolder + "/" + reportName;
//string format = "PDF";
string historyID = null;
string devInfo = null;
// Prepare report parameter.

ParameterValue[] param = new ParameterValue[par.Length];
for (int i = 0; i < par.Length; i++)
{
param[i] = new ParameterValue();
param[i].Name = par[i].Key;
param[i].Value = par[i].Value;
}
string encoding;
string mimeType;
string extension;
ReportExec.Warning[] warnings = null;
//ReportExec.ParameterValue[] reportHistoryParameters = null;
string[] streamIDs = null;
ReportExec.ExecutionInfo execInfo = new ReportExec.ExecutionInfo();
ReportExec.ExecutionHeader execHeader = new ReportExec.ExecutionHeader();
//rsc.ExecutionHeaderValue = execHeader;
ReportExec.ServerInfoHeader SIHheader = null; // new ReportExec.ServerInfoHeader();
ReportExec.TrustedUserHeader TUHheader = null; // new ReportExec.TrustedUserHeader(); //null;//
//TUHheader.UserName = username;
//rsc.SetExecutionCredentials(execHeader, TUHheader, null, out execInfo);
rsc.LoadReport(TUHheader, reportPath, historyID, out SIHheader, out execInfo);

//rs.SetExecutionParameters(parameters, "en-us");
//String SessionId = SIHheader.ExecutionID;
//Console.WriteLine("SessionID: {0}", rs.ExecutionHeaderValue.ExecutionID);

rsc.Render(execHeader, TUHheader, format, devInfo, out result, out extension, out mimeType, out encoding, out warnings, out streamIDs);
return result;

----------------------------

this is the web.config

----------------------------

  <system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="ReportExecutionServiceSoap" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<!-- error The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'NTLM'.
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
-->
<!-- error The HTTP request is unauthorized with client authentication scheme 'Basic'. The authentication header received from the server was 'NTLM'.
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Basic" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
-->
<!-- error The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'NTLM'
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Windows" proxyCredentialType="Windows" realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
-->
<!-- ask Https
<security mode="Transport">
<transport clientCredentialType="Ntlm" proxyCredentialType="Ntlm" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
-->

<!-- error The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM'.
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Ntlm" proxyCredentialType="Windows" realm="" />
<message clientCredentialType="UserName"/>
</security>
-->
<!-- error The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM'.
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Ntlm" proxyCredentialType="Ntlm" realm="" />
<message clientCredentialType="UserName"/>
</security>
-->

<!-- error The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM'.  
           -->
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Ntlm" proxyCredentialType="None" realm="" />
<message clientCredentialType="UserName"/>
</security>


</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://MyIp:8080/ReportServer/ReportExecution2005.asmx"
binding="basicHttpBinding" bindingConfiguration="ReportExecutionServiceSoap"
contract="ReportExec.ReportExecutionServiceSoap" name="ReportExecutionServiceSoap" />
</client>
</system.serviceModel>

----------------------------

please help me

It runs on Windows XP SP3...

VisualStudio 2010


TIA

Alessandro

Javeed M Shaikh
posted  795 posts
since  Dec 29, 2010 
from 

 Re: SSReportingServices 2008 Error The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM'.
  Posted on: 14 Nov 2011        0  
try to use this...

rsc.ClientCredentials.Windows.AllowedImpersonationLevel = TokenImpersonationLevel.Identification;

also you config should look like this:

<security mode="TransportCredentialOnly">
<transport clientCredentialType="Ntlm" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
ales_pac
posted  2 posts
since  Oct 22, 2004 
from 

 Re: SSReportingServices 2008 Error The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM'.
  Posted on: 14 Nov 2011        0  
Sob :( Same error!
Javeed M Shaikh
posted  795 posts
since  Dec 29, 2010 
from 

 Re: SSReportingServices 2008 Error The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM'.
  Posted on: 14 Nov 2011        0  
take a look at the workaround section in this article:

http://support.microsoft.com/kb/896861
       
Top Articles
View all »
Nevron Gauge for SharePoint
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites – Click Here!

 Hosted by MaximumASP  |  Found a broken link?  |  Contact Us  |  Terms & conditions  |  Privacy Policy  |  Site Map  |  Advertise with us
Current Version: 5.2011.3.12
 © 1999 - 2012  Mindcracker LLC. All Rights Reserved