I configured a 3 Tiers architecture.
I published web services , when I call thios url "
http://localhost:7047/DynamicsNAV/WS/MAGRO_DISTR_REEL/services" on the localhos ( the navserver server) everything is alright, but when I change localhost by the server name "
http://smgwebnavhvb:7047/DynamicsNAV/WS/Services"
It pops up asking for username and password and when I type the domain\user and login ( the same as Logon Account for the Microsoft Dynamics NAV Server Service), when I click Ok I get this error : HTTP 500 internal error
Hepl Please
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thanks very much
My problem is that I want consume this web service from distance.
thanks
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
My problem is when I try to see the published web services using Internet explorer from a computer that's not in the domaine but is connected to the same network as the domaine, I have the error HTTP 500.
Is there any other SPN to add it and to which server.
Thanks and I hpe that I was clear in my description
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I successed to configure 3 tiers architecture (RTC and WS) and I can run them from any computer in my domain without login and password.
I added all neede SPNs for the nav service and sql service domaine account, even HTTP spn.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Use IE
Go to tools->internet options
Then go to advanced and REMOVE the mark in "Show friendly HTTP error messages"
It will give you the true error from the NST and not just "500 Internal server errror".
1. Check if all the SPNs are properly set.
2. Two User accounts should not have SPN with same name. If exists then delete the duplicate ones.
3. Check the event viewer when you run the url in browser. do you get event id 10 or 13? if yes then duplicate SPNs still exists.
4. YOu need to provide delegations properly..
When I call the web services from any computer on the domaine, it works very well.
But When I try to call it from an external computer ( this computer is not on the domaine) It pops up asking for username and password and when I type the domain\user and login ( the same as Logon Account for the Microsoft Dynamics NAV Server Service) nothing happen and that 3 times.
When I consult the event viewer on the nav serv I found this error:
User:
Type: Microsoft.Dynamics.Nav.Types.NavDatabasePasswordException
SuppressMessage: False
FatalityScope: None
Message: The login failed when connecting to SQL Server smgsqlhvb01.
StackTrace:
à Microsoft.Dynamics.Nav.Runtime.NavRuntimeAdapter.ErrorHandler(Int32 errorCode, Int32 errorNumber, Int32 moduleNumber, String errorText)
à Microsoft.Dynamics.Nav.Runtime.NativeMethods.AdapterOpenConnection(IntPtr databaseHandle, String serverName, NetProtocolType netType, String databaseName, Int32 clientConnectionType, DeadConnectionHandler deadConnectionHandler)
à Microsoft.Dynamics.Nav.Runtime.NavConnection.Open()
à Microsoft.Dynamics.Nav.Service.WebServices.ServiceBroker.Invoke(Boolean isSoapMessage, String serviceName, Uri url, XmlReader input, TextWriter output)
à Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.<>c__DisplayClass2.<>c__DisplayClass4.<ProcessMessage>b__1()
à Microsoft.Dynamics.Nav.Service.WebServices.Disposer.Scope(Code code)
à Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.<>c__DisplayClass2.<ProcessMessage>b__0(StreamWriter streamWriter)
à Microsoft.Dynamics.Nav.Service.WebServices.WCFUtil.GetPopulatedMemoryStream(StreamFillingCallback callback)
à Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.ProcessMessage(Message message)
à SyncInvokeProcessMessage(Object , Object[] , Object[] )
à System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
à System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
à System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
à System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
à System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
à System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
à System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)
à System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
Source: Microsoft.Dynamics.Nav.Ncl
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.