NAV 2009 R2 Webservice - strange error 500.
mihail_kolev
Member Posts: 379
Hello,
I have realy strange issue. I have a webservice, all delegations are set up and it works like charm
BUT
for some reason it just start to say The login failed when connecting to SQL Server when use the webservice methods from .NET (using generated network credentials) and it says Error 500 when I try to open it in Internet Explorer. This happens only when I use the full url - http://server.company.local:7047/Dynami ... S/Services
Now, the funny part - when I go to the server and type this url http://localhost:7047/DynamicsNAV/WS/Services
in Internet Explorer it works, and magically this url http://server.company.local:7047/DynamicsNAV/WS/Services also start working without anything else done.
Can anybody tell me why this is happening, maybe how to prevent it and how opening the localhost url fixes the problem.
I have realy strange issue. I have a webservice, all delegations are set up and it works like charm
BUT
for some reason it just start to say The login failed when connecting to SQL Server when use the webservice methods from .NET (using generated network credentials) and it says Error 500 when I try to open it in Internet Explorer. This happens only when I use the full url - http://server.company.local:7047/Dynami ... S/Services
Now, the funny part - when I go to the server and type this url http://localhost:7047/DynamicsNAV/WS/Services
in Internet Explorer it works, and magically this url http://server.company.local:7047/DynamicsNAV/WS/Services also start working without anything else done.
Can anybody tell me why this is happening, maybe how to prevent it and how opening the localhost url fixes the problem.
-Mihail- [MCTS]
0
Answers
-
Update: there is big time of inactivity of the service (no requests) and also no logins to NAV client... Can this be related to the problem?-Mihail- [MCTS]0
-
have you solved it?
i've the same problem trying to access webservices from "internet".
-error 500: <faultcode xmlns:a="urn:microsoft-dynamics-schemas/error">a:Microsoft.Dynamics.Nav.Types.NavDatabasePasswordException</faultcode>
<faultstring xml:lang="en-US">The login failed when connecting to SQL Server noscls01\nav01.</faultstring>
when i try from the localserver everything starts and then i'm able to access from the internet, too.
:-k0 -
Please check if the login which is using to run Web Services service has permission to the database.0
-
In my case it was the problem with the SPN to the MSSQLSvc. It was not added to the trusted delegation list for the user dsa.msc -> properties for the service user->Delegation->"Services to which this account can present delegated credentials:". After adding the correct SPN to that list, the problem is gone.-Mihail- [MCTS]0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions