Options

NAV 2009 Webservice - 401 unauthorized from C# application

tbladetblade Member Posts: 4
edited 2015-05-27 in NAV Three Tier
Hi

I have this situation when call a NAV 2009 Webservice from a C# application if i used "request.UseDefaultCredentials = true;" calling NAV Webservice in C# Code works fine if i used "request.Credentials = new NetworkCredential(username, password, domain);" gives 401 error unauthorized. The user that i connect in windows it's the same that i put in call o NetworkCredential and if i put the URL of Webservice NAV in Browser and put the username and password above works fine. Also RTC works fine in 3 tiers. I used a domain user in NAV services that have the delegations created.

Does anyone have a idea why this happen and how to solve that?


Plataform: Windows Server 2008 R2, NAV 2009 R2, SQL Server 2008

Thanks
Tblade
Sign In or Register to comment.