Multiple Web Services - same Server using different TCP Port

bbenderbbender Member Posts: 28
edited 2009-08-07 in NAV Three Tier
We are running multiple customers on the same server. I don't have any problems with the RTCs, they work using different TCP ports - I just change the Custom config file. I am having trouble creating multiple Web Services.
This is the command I use to create the Web Service:
sc \\sql-dev create MicrosoftDynamicsNAVWS$NAVCommerceInsight2009DevWS binpath= "C:\Program Files\Microsoft Dynamics NAV\60\Service CommerceInsight2009Dev\Microsoft.Dynamics.Nav.Server.exe $NAVCommerceInsight2009Dev" DisplayName= "Microsoft Dynamics NAV Web Server Instance CommerceInsight2009Dev" start= auto type= own obj= "NT Authority\NetworkService" depend= HTTP

This is for the RTC:
sc \\sql-dev create MicrosoftDynamicsNAVServer$NAVCommerceInsight2009Dev binpath= "C:\Program Files\Microsoft Dynamics NAV\60\Service CommerceInsight2009Dev\Microsoft.Dynamics.Nav.Server.exe $NAVCommerceInsight2009Dev" DisplayName= "Microsoft Dynamics NAV Server Instance CommerceInsight2009Dev" start= auto type= own obj= "NT Authority\NetworkService

CommerceInsight2009Dev would be the Service for both.
Serivce port is 7062 and web service is 7063.

I can not get them both running at the same time.
Also, the web service does not seem to work at all. the RTC works fine.

We do have the standard Demo with the WS running on the same server and they both are working.

Any help would be great.

I find using different TCP ports easier - just changing the Config file to the correct port.

Thanks,
Bruce Bender
iCepts Technology Group, Inc.
phone: 717-704-1000 x 3014
email: bbender@icepts.com
Thank you,

Bruce Bender
Solution Developer
BruceB@SolutionDynamics.net

Solution Dynamics, Inc.

Answers

  • freddy.dkfreddy.dk Member, Microsoft Employee Posts: 360
    They cannot run both - that is probably because both of them thinks that it is a ServiceTier (and no one wants to be a Web Service Listener)
    Try to set type= share instead of own.
    Freddy Kristiansen
    Group Program Manager, Client
    Microsoft Dynamics NAV
    http://blogs.msdn.com/freddyk

    The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
  • bbenderbbender Member Posts: 28
    I got further, but I'm getting this message:

    The service MicrosoftDynamicsNavWS$NAVCommerceInsight2009Dev failed to start. This could be caused by a configuration error. Detailed error information:HTTP could not register URL http://+:7063/DynamicsNAVCommerceInsight2009Dev/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details)..


    Attached is the config file for the Service CommerceInsight2009Dev.

    Server is sql-dev.

    http://sql-server:7047:/DynamicsNAV/WS/Services works with the Demo database.

    Thanks,
    Bruce
    Thank you,

    Bruce Bender
    Solution Developer
    BruceB@SolutionDynamics.net

    Solution Dynamics, Inc.
  • freddy.dkfreddy.dk Member, Microsoft Employee Posts: 360
    Have you looked at http://go.microsoft.com/fwlink/?LinkId=70353

    I haven't tried to use different ports myself - I always use the same ports, just different instance names (I think it is easier to associate a name with a certain customer/database than a number) + it seems like firewall and HTTP configuration needs to be setup if you use different ports.
    Freddy Kristiansen
    Group Program Manager, Client
    Microsoft Dynamics NAV
    http://blogs.msdn.com/freddyk

    The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
  • bbenderbbender Member Posts: 28
    Thanks for your help!
    We got it to work by adding the urlacl http://+:7063/ :lol:

    Bruce
    Thank you,

    Bruce Bender
    Solution Developer
    BruceB@SolutionDynamics.net

    Solution Dynamics, Inc.
Sign In or Register to comment.