httpcfg - probelm

WojtekmWojtekm Posts: 123Member
edited 2012-07-04 in NAV Three Tier

I try to make my NAV WS run properly. I follow this msdn instruction:
How to: Configure Web Services with Delegation

in point 4 i used this command:

httpcfg delete urlacl –u [url=http://+:7047/DynamicsNAV/]http://+:7047/DynamicsNAV/[/url]
httpcfg set urlacl -u [url=http://+:7047/DynamicsNAV/]http://+:7047/DynamicsNAV/[/url] -a D:^(A;^;GX^;^;^;<security identifier>)

i use my computer AD SID account in <security identifier> becouse my services working on Network Service account.
Propably here is the problem.
I can see than i creat entry like this:
URL : [url=http://+:7047/DynamicsNAV/]http://+:7047/DynamicsNAV/[/url]
ACL : D:(A;;GX;;;S-1-5-21-1357823422-3124244093-3103455471-1105)

naw i can not start my WS service becouse of following error:
The service MicrosoftDynamicsNavWS failed to start. This could be caused by a configuration error. Detailed error information:System.ServiceModel.AddressAccessDeniedException: HTTP could not register URL [url=http://+:7047/DynamicsNAV/]http://+:7047/DynamicsNAV/[/url]. Your process does not have access rights to this namespace (see for details). ---> System.Net.HttpListenerException: Access is denied
at System.Net.HttpListener.AddAll()
at System.Net.HttpListener.Start()
at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
--- End of inner exception stack trace ---
at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
at System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
at System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
at System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.HttpChannelListener.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open()
at Microsoft.Dynamics.Nav.WindowsServices.NavServiceBase.OnStart(String[] args).

How should i set up ACL to make my WS back to life.



  • WojtekmWojtekm Posts: 123Member
    Done :)
    By deleting my previous entry using this command:
    C:\Program Files (x86)\Microsoft Dynamics NAV\60\Service&gt;httpcfg delete urlacl -
    u http://+:7047/DynamicsNAV/ -a D:^(A;^;GX^;^;^;S-1-5-21-1357823422-3124244093-3

    ROARGH! what a syntax! :thumbsdown:
  • kinekine Posts: 12,549Member
    There is much better command for that on windows 2008 and newer... ;-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • BubaBuba Posts: 24Member
    kine wrote:
    There is much better command for that on windows 2008 and newer... ;-)
    I've been using the httpcfg command on win2008, so what is the newer and better command tools for this?
Sign In or Register to comment.