mibuso.com

Microsoft Business Solutions online community
It is currently Thu May 23, 2013 10:21 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: WS Url problem
PostPosted: Wed May 23, 2012 2:01 pm 
Offline

Joined: Wed Apr 20, 2011 6:27 pm
Posts: 166
Country: Tunisia (tn)
Of corse I understand the problem, and I read many article about this.
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.


Top
 Profile E-mail  
 
 Post subject: Re: WS Url problem
PostPosted: Wed May 23, 2012 2:51 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Thu Oct 16, 2003 8:50 am
Posts: 12265
Location: Brno
Country: Czech Republic (cz)
Thus it should work even when called from outside and correct login and password is provided.

_________________
Kamil Sacek
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.


Top
 Profile E-mail WWW  
 
 Post subject: Re: WS Url problem
PostPosted: Thu May 24, 2012 1:05 pm 
Offline

Joined: Thu May 24, 2012 12:59 pm
Posts: 2
Country: Denmark (dk)
Actually, you can really help yourself a lot by doing the following:
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".


Top
 Profile E-mail  
 
 Post subject: Re: WS Url problem
PostPosted: Mon May 28, 2012 1:09 pm 
Offline

Joined: Sat May 31, 2008 11:59 am
Posts: 53
Country: India (in)
Hi Sbilly,

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..


Top
 Profile  
 
 Post subject: Re: WS Url problem
PostPosted: Tue May 29, 2012 3:57 pm 
Offline

Joined: Wed Apr 20, 2011 6:27 pm
Posts: 166
Country: Tunisia (tn)
I checked all SPN. I don't have duplicate one.
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


Top
 Profile E-mail  
 
 Post subject: Re: WS Url problem
PostPosted: Wed May 30, 2012 6:18 am 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Thu Oct 16, 2003 8:50 am
Posts: 12265
Location: Brno
Country: Czech Republic (cz)
Try to switch the WS into NTLM instead NEGO (Kerberos)...

_________________
Kamil Sacek
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.


Top
 Profile E-mail WWW  
 
 Post subject: Re: WS Url problem
PostPosted: Wed May 30, 2012 10:50 am 
Offline

Joined: Wed Apr 20, 2011 6:27 pm
Posts: 166
Country: Tunisia (tn)
Please Kine, how can I do it ?


Top
 Profile E-mail  
 
 Post subject: Re: WS Url problem
PostPosted: Wed May 30, 2012 12:40 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Thu Oct 16, 2003 8:50 am
Posts: 12265
Location: Brno
Country: Czech Republic (cz)
In the customsettings.config of the service tier.

_________________
Kamil Sacek
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.


Top
 Profile E-mail WWW  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: MaierM, mib_usr_vao, thegunzo and 26 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: