Hello!
I have created a web site that uses Dynamics Nav 2009 web services. The web site is hosted on a windows 2008 R2 server that is on a seperate server computer. When I start the web site and use a command that needs dialog between Dynamics Nav server and SQL server this error is raised:
The login failed when connecting to SQL Server [servername].
I think the problem here is that the permissions are not properly set for the dynamics server to properly talk with the SQL server when the IIS-User is connecting to it.
Everything else works properly with the Dynamics Nav server. I can connect with RTC and classic with no problems.
Does anyone have any idea of what this can be?
0
Comments
2) The Web app must use some account which have needed permissions in NAV. If it is using the client account, this account must have enough permissions in NAV.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
How can I set the proper user?
I have tried to add the IISUSER to the SQL logins but for some reason the IISUSER doesn't exist for the SQL-Logins, and I am unable to add the user.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Since I haven't heard about spn before I had to look it up.
1. Is it correct that the spn is a tool that makes the client identify an instance of a server?
2. I have been looking around and it seems that the spn tool only has cmd-based interface. Does it have GUI?
3. How do I set it up properly do you have a short command with some explenation?
Thank you for all your help.
There is no GUI for the setspn command. Documentation about the command (examples & syntax) is available at http://technet.microsoft.com/en-us/library/cc773257(WS.10).aspx
The proper command to make the microsoft dynamics nav server to recognize the mssql server would then be:
Is this correct?
Another question, why would I need to set this for the web site and not for the role based client?
http://msdn.microsoft.com/en-us/library/dd301254.aspx
http://blogs.msdn.com/b/nav_developer/a ... -2009.aspx
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MSSQLServer = local system account
DynamicsNavServer = local system account
would the spn commands then be something like this?
setspn -a MSSQLSvc/SERVER2.dycon2.no:1433 SERVER2
setspn -a DynamicsNav/SERVER2.dycon2.no:7046 SERVER2
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Dynamics Nav Server - Network Service
SQL Server - Network Service
The AppPool is also using the identity, network service, as shown in the earlier image.
Is there anything else I can try ?
When I had some problems with SPNs I used this tool:
http://www.iis.net/community/default.as ... g=6&i=1887
see http://blogs.iis.net/bretb/archive/2008 ... onfig.aspx
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
it is not working.
The SPN was what i needed to fix.
+
I had to set anonymous authentication to disabled and then enable windows authentication.
Kine: the tool you gave me is GREAT for setting up SPN. It has a great report that pointed out some errors, and a solution to fix it.
Thank you all for your help!
(Specially Kine)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.