System.Web.Services.Protocols.SoapException Invalid ID,PSWD

RawHeat
Member Posts: 63
Hi,
I have exposed a codeunit and calling it from Visual Studio. While debugging i found following error/exception when the webservice is called.
Error
[System.Web.Services.Protocols.SoapException] = {"System.Web.Services.Protocols.SoapException: The user ID and password are invalid. Try again.\n at System.Web.Services.Protocols.
The username is already a member of the A/D and has Super rights in navision.
Does anyone has any clue regarding the same.
I have exposed a codeunit and calling it from Visual Studio. While debugging i found following error/exception when the webservice is called.
Error
[System.Web.Services.Protocols.SoapException] = {"System.Web.Services.Protocols.SoapException: The user ID and password are invalid. Try again.\n at System.Web.Services.Protocols.
The username is already a member of the A/D and has Super rights in navision.
Does anyone has any clue regarding the same.
0
Comments
-
Any solution?0
-
[Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]
How do you give it a username? I also did this kind of work but without giving it a username. It uses the credentials of the current user (which you can change by using the "runas-command").Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
It means that the delegation is not working correctly. You need to check that all SPNs are correctly set and that delegation is allowed for the account under which the NAV Server is running.0
-
Thanks Kriki and Kine for the replies
@Kriki: I dont specify username anywhere. I run it with my userid and it has SUPER rights in Navision.
However I have specified UseDefaultCredentials = True before calling the webservice.
@Kine: Can you please elaborate it as to what exactly do you mean delegation. The Nav server and nav webservice are running with my account and my account has administrator rights in my system.
To be more specific, the scenario is as below
1. I have an application say MyApplication.
2. My application calls a webservice say ParentWS that is a part of IIS web application. (Developed in VB)
3. ParentWS calls my webservice say NavisionWS (NavisionWS is a codeunit published as webservice)
4. At this point i get the error [System.Web.Services.Protocols.SoapException] = {"System.Web.Services.Protocols.SoapException: The user ID and password are invalid. Try again.\n at System.Web.Services.Protocols
5. However if i call NavisionWS webservice directly from MyApplication no error comes and the codeunit runs perfectly.
Please help as this stuff is really freaking me out.0 -
For delegation, check these:
http://msdn.microsoft.com/en-us/library/dd301254.aspx
http://blogs.msdn.com/nav/archive/2009/07/01/spn-name-changes.aspx
http://msdn.microsoft.com/en-us/library/ee414212.aspx
http://blogs.msdn.com/nav/archive/2009/11/05/duplicate-spns-in-a-3-tier-setup-and-how-to-locate-them.aspx
http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd
http://msmvps.com/blogs/kine/archive/2011/05/29/dynamics-nav-2009-and-spns.aspxRegards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
ParentWS calls my webservice say NavisionWS
The user under which ParentWS is running cannot connect. The links should help you.0 -
Thanks friends but still i am not through yet.
Is there any way to find out what credentials the webservices use in C#. Alteast that would help me to know where to change the credentials b4 running the webservice.0 -
NAV WS is using credentials passed by the calling party. Depends on "who" is the calling party. If web application running on IIS, than it could pass some authentication, ot it will be passing the authentication of the browsing user (depends on settings). But to connect this string, all must be set correctly. The "delegation" must be working. And it looks like it is not. It is why you need to understand the delegation and SPN concept to be able to set all correctly.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions