Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL forum
Unanswered

SL webservices - Issue while invoking the LoginWindow service

Posted on by Microsoft Employee

Hello,

I have written C# to invoke LoginWindows service. as below

 LoginWindowsServiceClient client = new LoginWindowsServiceClient();
           
            LoginWindowsContext context = new LoginWindowsContext();
            context.CompanyID = "0060";
            context.Culture = "en-US";
            context.OnBehalfOf = String.Empty;
            context.RequestedEncoding = Encode.None
            client.LoginWindows(context); 

Web.config  supports Negotiate authentication System and Windows authentication is enabled  with Providers Ntlm and Negotiate on IIS 7.5.

App.config in WCF has Windows Credential  Type.

Which Fails and  Exception is as below

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

 

AS SL service uses transport security with negotiated authentication. This negotiation attempts to use Kerberos, but if that doesn't work, it'll fall back and use the older NTLM protocol. 

Kerberos is not configured at server side Hence I do expect to downgrade it to NTLM. But it doesn't.

Is any configuration missing?

Please help.

Thanks

Sonia

 

 

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SL webservices - Issue while invoking the LoginWindow service

    Sonia - Did you ever resolve this?  I'm having the same exact issue and it's driving me nuts.

    Thanks,

    Anthony

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans