Connecting to different Dynamics Nav Server

OttoOtto Member Posts: 17
edited 2008-12-02 in NAV Three Tier
Hi All,

i have created two Dynamics Nav Server , for the second Service I use port : 7047.

But when i try to connect to the second service, i receive an error net.tcp.7046/localhost/DynamicsNav2 not found.

Is it possible that the RTC can connect to different Dynamics Nav Server that using different port ?

Thanks

Answers

  • Jens_TidemannJens_Tidemann Member, Microsoft Employee Posts: 14
    Can you please attach the two CustomSettings.xml files that you use? (They are in the folder where the service is installed.)

    Also you might want to take a look at the section "Walkthrough: Accessing Multiple NAV Databases from a Single NAV Server Computer" in the installation guide (NAV_install.chm). It describes how to configure a second NAV server on a box where there is allready one NAV server running.
    Jens Tidemann
    Microsoft, Dynamics NAV

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Tom_CorneliusTom_Cornelius Member, Microsoft Employee Posts: 18
    Also note that by default the Business Web Services service uses 7047. So if this service is running you may potentially have a conflict.

    The ClientUserSettings.config file on the client machine is where you can tell the client which service tier and port to connect to.
    Tom Cornelius
    Test Lead
    Microsoft Dynamics NAV

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • OttoOtto Member Posts: 17
    This is my first service config :
    <?xml version="1.0" encoding="UTF-8"?>
    <appSettings>
    <!--
    The network protocol used to access the database.
    Valid options: Default, NamedPipes, Sockets
    -->
    <add key="NetType" value="Default"></add>
    <!--
    Name of the database server to connect to.
    -->
    <add key="DatabaseServer" value="IDJKT-AXO5021NB"></add>
    <!--
    Name of the database to connect to.
    -->
    <add key="DatabaseName" value="Demo Database NAV (6-0)"></add>
    <!--
    Name of the Microsoft Dynamics NAV Server instance to connect
    to (for client) or listen on (for server).
    -->
    <add key="ServerInstance" value="DynamicsNAV"></add>
    <!--
    The listening TCP port for the Microsoft Dynamics NAV Server.
    This is part of the server's URL.
    Valid range: 1-65535
    -->
    <add key="ServerPort" value="7046"></add>
    <!--
    The listening HTTP port for the Microsoft Dynamics NAV
    Business Web Services.
    This is part of the web service's URL.
    Valid range: 1-65535
    -->
    <add key="WebServicePort" value="7046"></add>


    This is my second service config :
    g="UTF-8"?>
    <appSettings>
    <!--
    The network protocol used to access the database.
    Valid options: Default, NamedPipes, Sockets
    -->
    <add key="NetType" value="Default"/>
    <!--
    Name of the database server to connect to.
    -->
    <add key="DatabaseServer" value="IDJKT-AXO5021NB\SQL2008"/>
    <!--
    Name of the database to connect to.
    -->
    <add key="DatabaseName" value="NAV2009"/>
    <!--
    Name of the Microsoft Dynamics NAV Server instance to connect
    to (for client) or listen on (for server).
    -->
    <add key="ServerInstance" value="DynamicsNAV2"/>
    <!--
    The listening TCP port for the Microsoft Dynamics NAV Server.
    This is part of the server's URL.
    Valid range: 1-65535
    -->
    <add key="ServerPort" value="7047"/>

    Also i notice in my local setting -> application data - > Microsoft -> ... i found client user Setting.config :
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    <appSettings>
    <add key="Server" value="localhost" />
    <add key="ServerInstance" value="DynamicsNAV" />
    <add key="ServerPort" value="7046" />
    <add key="UrlHistory" value="localhost/DynamicsNAV" />
    </appSettings>
    </configuration>

    In this configuration, it always use port 7046 when trying to connect to the service
  • OttoOtto Member Posts: 17
    I also follow the walk through to install multiple services in one computer, but it seems that my net.tcp.port.sharing service always restart each time i try to connect to Nav services.

    Is it possible in the Client User setting to specify 2 or more server port ?


    Thanks :D
  • Tom_CorneliusTom_Cornelius Member, Microsoft Employee Posts: 18
    I think I know what you're asking - can you have 2 separate instances of RTC on the same machine connecting to 2 separate service tiers?

    The answer is yes. When you start the RTC you can specify which user config file you want to use (there is a command line option that lets you do this). So you can have 2 different config files with 2 different server names/ports specified.
    Tom Cornelius
    Test Lead
    Microsoft Dynamics NAV

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • OttoOtto Member Posts: 17
    yes, you're correct. =D> :D

    Is there any documentation about this command line option ?

    Thanks
  • Tom_CorneliusTom_Cornelius Member, Microsoft Employee Posts: 18
    I'm not sure where it is in the documentation, but if you just type:
    C:\>"C:\Program Files\Microsoft Dynamics NAV\60\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe" /?
    

    You'll get a list of commandline options:

    options.jpg?t=1228147340
    Tom Cornelius
    Test Lead
    Microsoft Dynamics NAV

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • freddy.dkfreddy.dk Member, Microsoft Employee Posts: 360
    You can find a lot of information about multiple service tiers on my blog.
    The preferred way of adding additional service tiers is my specifying a different instance.
    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.
  • OttoOtto Member Posts: 17
    Thanks for your help, now i can connect to another instance.

    definitely i will check your blog . :D

    Thanks
Sign In or Register to comment.