Hi,
I develop a webSite which using Nav 2009 WebServices.
When i'm using the web server provided by Visual Studio my web web site works. But When i published this Website on a IIS Server, i got the following error : "The request failed with HTTP status 401: Unauthorized".
The configuration is
- Windows XP fr
- IIS 6.0
- Nav 2009
I use the following code :
NavWSAchat.WSAchat_Service service = new NavWSAchat.WSAchat_Service();
service.Url = WS_URL;
service.UseDefaultCredentials = false;
//service.Credentials = new System.Net.NetworkCredential("Administrateur", "password", "XP-NAV2009");
service.Credentials = new System.Net.NetworkCredential("Administrateur", "password");
Authentification Method for IIS is Anonymous.
Administrateur is the loggued user who gets SUPER rights in Nav2009.
I've tried to put Windows authentification in IIS Authentifcation method and "service.UseDefaultCredentials = false;" but it does not work either.
Thanks,
Yann
Comments
A couple of questions
Is the IIS Server on a different box than your Service Tier?
Is SQL Server on a third box?
Have you tried opening the Web Service URL in a browser from the IIS Server?
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
All is on the same machine.
How you can do that?
- I have opened the web service Url in IE on the Server and it works.
Thx a lot.
Which assigns the datasource, but I have no idea on how to display my datalist?
Ewald Venter