Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HttpBinding HttpClientCredentialType.Windows IIS10 - Core 2.0 #24189

Closed
cgountanis opened this issue Nov 20, 2017 · 5 comments
Closed

HttpBinding HttpClientCredentialType.Windows IIS10 - Core 2.0 #24189

cgountanis opened this issue Nov 20, 2017 · 5 comments
Milestone

Comments

@cgountanis
Copy link

Trying to connect to SSRS Execution. Works fine on my development machine, soon as I move to IIS I get errors with the same exact remote SSRS server. Any tips tricks, most of the help from Google is the old way of doing it with XML file configurations. What really gets me is that it works from my development machine using IISExpress, why not on a TEST Server using IIS?

AppPool No Managed Code

The rest of the Core 2.0 MVC application works perfectly. Why would it work remote on my machine via VPN then throw error like that on TEST server which is on same network? I really think this has something to do with IIS.

basicHttpBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows;

var serviceSoapClient = new ReportExecutionServiceSoapClient(basicHttpBinding, new EndpointAddress($"{model.ReportServerUrl}/ReportExecution2005.asmx"));

serviceSoapClient.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;

serviceSoapClient.ClientCredentials.Windows.ClientCredential = (NetworkCredential)(new NetworkCredential() { UserName = model.Username, Password = model.Password, Domain = model.Domain });

Error:

System.AggregateException: One or more errors occurred. (The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was ''.) ---> System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was ''.

aspnet/Hosting#1276

@karelz
Copy link
Member

karelz commented Nov 20, 2017

Looks like problem with IIS configuration - if it is specific to ASP.NET Core 2.0, I would recommend to ask them. Or dig deeper into IIS.
Does not seem to be related to BCL in .NET Core 2.0, closing.

@karelz karelz closed this as completed Nov 20, 2017
@karelz
Copy link
Member

karelz commented Nov 20, 2017

OK, looking at @Tratcher's comment aspnet/Hosting#1276 (comment) - WCF lives in https://github.com/dotnet/wcf, not in CoreFX.

@cgountanis
Copy link
Author

I still feel this is a hosting issue personally. Works locally, works connecting remote with IISExpress, no worky in IIS 10 with the Core Hosting installed. I will move to that forum I guess :)

@cgountanis
Copy link
Author

Moved to dotnet/wcf#2398

@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 2.1.0 milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants