NAV 2009 R2 Web Service, URL works only if it is launched in NAV Server first?

  • NAV 2009 R2 Web Service, URL works only if it is launched in NAV Server first?

    Posted by DSC Communities on November 28, 2017 at 11:31 am
    • Simon Lee

      Member

      November 28, 2017 at 11:31 AM

      ?We recently upgraded from 2009 SP1 to 2009 R2.

      After NAV Server and Web Services are installed and configured in a 3-tier environment, we registered SPN using a Domain user account – stb4navwebsrvs.

      C:Userssilee>setspn -L stb4navwebsrvs
      Registered ServicePrincipalNames for CN=stb4navwebsrvs,OU=Service Accounts,OU=IT
      ,OU=Locations,DC=stb,DC=com:
      Ā Ā Ā Ā Ā Ā Ā  mssqlsvc/STBVMDEVNAVDB.stb.com:1433
      Ā Ā Ā Ā Ā Ā Ā  mssqlsvc/STBVMDEVNAVDB:1433
      Ā Ā Ā Ā Ā Ā Ā  MicrosoftDynamicsNavServer/STBVMDEVWEBSRVS.stb.com:7046
      Ā Ā Ā Ā Ā Ā Ā  http/STBVMDEVWEBSRVS.stb.com:7047
      Ā Ā Ā Ā Ā Ā Ā  http/stbvmdevwebsrvs
      Ā Ā Ā Ā Ā Ā Ā  http/stbvmdevwebsrvs.stb.com

      We also usingĀ “httpcfg set urlacl -u http://+:7047/DynamicsNAV/ -a D:^(A;^;GX^;^;^;…” command to add stb4navwebsvrs to URLACL,

      We made stb4navwebsrvs the Local Administrator to both the SQL Server and the NAV Server.

      We alsoĀ grant SUPER right toĀ stb4navwebsrvs

      But still, when I test this URL http://stbvmdevwebsrvs:7047/DynamicsNAV/WS/1481STB/services any where, I am getting this page back

      <s:Body>
      <s:Fault>
      Ā  <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 STBVMDEVNAVDB.</faultstring>
      <detail>
      Ā  <string xmlns=”http://schemas.microsoft.com/2003/10/Serialization/>The login failed when connecting to SQL Server STBVMDEVNAVDB.</string>
      Ā  </detail>
      Ā  </s:Fault>
      Ā  </s:Body>
      Ā  </s:Envelope>

      But if I run this command in stbvmdevwebsrvs, it returns the correct result, only then, any other PC’s logged on with my name is returning the same result, if I run this URL.

      Could anyone advise, what seems to be the issue?

      Incidentally, I also make computer account stbstbvmdevwebsrvs$ the owner of the Database and assign it with SUPER permission.

      ——————————
      Simon Lee
      Starboard Cruise Services
      Miami FL
      ——————————

    • Paul Turner

      Member

      November 29, 2017 at 7:48 AM

      It sounds like a delegation issue.Ā  Check whether stb4navwebsvrs is the assigned “log on as” user for both the [Microsoft Dynamics NAV Server] and the [Microsoft Dynamics NAV Business Web Services] services on the NAV server (stbvmdevwebsrvs).Ā  Delegation from the Service Tier to the DB may fail if these are running under different accounts.Ā  Try restarting both those services.

      Hope this helps.Ā  Delegation issues can be a pain.Ā  I think we ended up making that service user a full domain admin.

      ——————————
      Paul Turner
      Liberty Mountain
      Sandy UT
      ——————————
      ——————————————-

    • Simon Lee

      Member

      November 29, 2017 at 9:19 AM

      ?Hi, Paul, Thanks a lot for pointing us to the right direction.

      I just checked and these 2 Services in the NAV Server do have the same “Log on As” – stb4navwebsrvs setup.


      To be on the safe side, I also went to the SQL Server.Ā  And the Server has the same “Log on As”.


      As to the assignment of Domain Admin to the Deligation Account, we got turned down by the Domain Administrator, but they did assign Read and Write permission of the ServicePrincipalName to this Domain User.Ā 

      May be we will seek upper management approval to temporarily assignment of theĀ Domain Admin access to prove a point.

      ——————————
      Simon Lee
      Starboard Cruise Services
      Miami FL
      ——————————
      ——————————————-

    • Mark Miranda

      Member

      November 29, 2017 at 11:40 PM

      Make sure that the user account running the SQL service has an SPN for MSSQLSvc and then set the delgation between the two accounts as follows:

      1. On any domain controller computer in the domain, clickĀ Start, and then clickĀ Run.

      2. In theĀ OpenĀ field, typeĀ dsa.msc.

        This opens the Active Directory Users and Computers utility.

      3. To configure delegation, the functional level for the domain must be Windows Server 2003 or higher. To verify the domain functional level, right-click the node for the domain where you have installed Microsoft Dynamics NAV, and then clickĀ Raise Domain Functional Level. If the level is not at least Windows Server 2003, then raise it to that level.

      4. Right-click the node for the domain where you have installed Microsoft Dynamics NAV, and then clickĀ Find.

      5. In theĀ Find Users, Contacts, and GroupĀ dialog box, type the name of the domain user in theĀ NameĀ field, and then press ENTER.

      6. In theĀ Search resultsĀ area, right-click the domain user, and then clickĀ Properties.

      7. On theĀ DelegationĀ tab, clickĀ Trust this user for delegation to specified services only, and then clickĀ Use Kerberos only.

      8. ClickĀ AddĀ to open theĀ Add ServicesĀ dialog box.

      9. In theĀ Add ServicesĀ window, clickĀ Users or Computers, and then type the name of the domain user.

      10. In the list of services for the domain user, clickĀ MSSQLSvc, which is the name of the SQL Server service.

      11. ClickĀ OKĀ to exit theĀ Add ServicesĀ dialog box.

      12. ClickĀ OKĀ to close all open dialog boxes.

      ——————————
      Mark Miranda
      Director of Information Technology
      Western Computer
      ——————————
      ——————————————-

    DSC Communities replied 7 years, 9 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘NAV 2009 R2 Web Service, URL works only if it is launched in NAV Server first?’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!