To create a second service
1. In Control Panel, click Administrative Tools, and then click Services to open the Services.
2. In the list of services, right-click Microsoft Dynamics NAV Server, and then click Stop.
3. Navigate to the Microsoft Dynamics NAV Service directory. This directory is typically located at C:\Program Files\Microsoft Dynamics NAV\60\.
4. Copy the service directory and paste it into the same directory. Rename the copy from Copy of Service to Service2.
5. At the command prompt, type the sc command to create a new service. Copy the following command and paste it at the command prompt. Replace <computername> with the actual computer name.
sc \\<computername> create MicrosoftDynamicsNAVServer$NAV2 binpath= "C:\Program Files\Microsoft Dynamics NAV\60\Service2\Microsoft.Dynamics.Nav.Server.exe $NAV2" DisplayName= "Microsoft Dynamics NAV Server Instance 2" start= auto type= own depend= NetTcpPortSharing obj= "NT Authority\NetworkService"
To create a name for the server instance
1. Use Notepad or another text editor and open the CustomSettings.config file in the Service2 directory. The default path for this file is C:\Program Files\Microsoft Dynamics NAV\60\Service2\Custom.Settings.config.
2. Locate the following line:
<add key="ServerInstance" value="DynamicsNAV" />
3. Replace DynamicsNAV with DynamicsNAV2, which is the name for your new server instance.
4. Save your changes, and then close the editor.
To activate port sharing
1. Return to the Services.
2. Right-click Net.Tcp Port Sharing Service, and then click Properties.
3. On the General tab, set Startup type to Manual.
4. Click OK to close the Properties window.
5. Right-click Net.Tcp Port Sharing, and then click Start.
You have now activated port sharing over the TCP/IP protocol.
To recreate the original Microsoft Dynamics NAV Server service
1. At the command prompt, type the following command to delete the Microsoft Dynamics NAV Server service:
sc delete MicrosoftDynamicsNavServer
2. At the command prompt, recreate the original Microsoft Dynamics NAV Server service with the option for TCP port sharing:
sc \\<computername> create MicrosoftDynamicsNAVServer binpath= "C:\Program Files\Microsoft Dynamics NAV\60\Service\Microsoft.Dynamics.Nav.Server.exe" DisplayName= "Microsoft Dynamics NAV Server" start= auto type= own depend= NetTcpPortSharing obj= "NT Authority\NetworkService"
3. If the service has been created successfully, then you receive the following message:
[SC] CreateService SUCCESS
4. Please Make sure you have added the same user in the Database Login of the Configured Database.
To connect the RoleTailored client to a second service.
1. Open the RoleTailored client that you have installed on a separate computer.
2. In the Role Center menu bar, click Microsoft Dynamics NAV, and then click Select Server.
3. In Server Name, add the number 2 to the DynamicsNAV value so that it is DynamicsNAV2.
4. Click Connect.
5. Select CRONUS International Ltd. from the Companies list.
6. Unless you have already installed additional databases, the demo database is the only one available and is automatically selected.
7. Click Connect, and then start working with your database.
When you use the SC command line command to create a new NAV 2009 Service, how does the new service know whether it is a middle tier for RTC to connect to, or whether it is supposed to handle web service calls?
In other words, what decides whether the new service will be "Microsoft Dynamics NAV Server" or "Microsoft Dynamics NAV Business Web Services"?
It depends on the name. If it starts with "MicrosoftDynamicsNavWS", then it will be for Web Services. If the name starts with anything else, then it will be for middle tier for RTC clients.
Create the service for Web Services:
1. At the command prompt, type the sc command to create a new service. Copy the following command and paste it at the command prompt. Replace <computername> with the actual computer name.
sc \\<computername> create MicrosoftDynamicsNavWS$NAV2 binpath= "C:\Program Files\Microsoft Dynamics NAV\60\Service2\Microsoft.Dynamics.Nav.Server.exe $NAV2" DisplayName= "Microsoft Dynamics NAV Business Web Services Instance 2" start= auto type= share depend= HTTP obj= "NT Authority\NetworkService"
1. In Control Panel, click Administrative Tools, and then click Services to open the Services.
2. In the list of services, right-click Microsoft Dynamics NAV Server, and then click Stop.
3. Navigate to the Microsoft Dynamics NAV Service directory. This directory is typically located at C:\Program Files\Microsoft Dynamics NAV\60\.
4. Copy the service directory and paste it into the same directory. Rename the copy from Copy of Service to Service2.
5. At the command prompt, type the sc command to create a new service. Copy the following command and paste it at the command prompt. Replace <computername> with the actual computer name.
sc \\<computername> create MicrosoftDynamicsNAVServer$NAV2 binpath= "C:\Program Files\Microsoft Dynamics NAV\60\Service2\Microsoft.Dynamics.Nav.Server.exe $NAV2" DisplayName= "Microsoft Dynamics NAV Server Instance 2" start= auto type= own depend= NetTcpPortSharing obj= "NT Authority\NetworkService"
To create a name for the server instance
1. Use Notepad or another text editor and open the CustomSettings.config file in the Service2 directory. The default path for this file is C:\Program Files\Microsoft Dynamics NAV\60\Service2\Custom.Settings.config.
2. Locate the following line:
<add key="ServerInstance" value="DynamicsNAV" />
3. Replace DynamicsNAV with DynamicsNAV2, which is the name for your new server instance.
4. Save your changes, and then close the editor.
To activate port sharing
1. Return to the Services.
2. Right-click Net.Tcp Port Sharing Service, and then click Properties.
3. On the General tab, set Startup type to Manual.
4. Click OK to close the Properties window.
5. Right-click Net.Tcp Port Sharing, and then click Start.
You have now activated port sharing over the TCP/IP protocol.
To recreate the original Microsoft Dynamics NAV Server service
1. At the command prompt, type the following command to delete the Microsoft Dynamics NAV Server service:
sc delete MicrosoftDynamicsNavServer
2. At the command prompt, recreate the original Microsoft Dynamics NAV Server service with the option for TCP port sharing:
sc \\<computername> create MicrosoftDynamicsNAVServer binpath= "C:\Program Files\Microsoft Dynamics NAV\60\Service\Microsoft.Dynamics.Nav.Server.exe" DisplayName= "Microsoft Dynamics NAV Server" start= auto type= own depend= NetTcpPortSharing obj= "NT Authority\NetworkService"
3. If the service has been created successfully, then you receive the following message:
[SC] CreateService SUCCESS
4. Please Make sure you have added the same user in the Database Login of the Configured Database.
To connect the RoleTailored client to a second service.
1. Open the RoleTailored client that you have installed on a separate computer.
2. In the Role Center menu bar, click Microsoft Dynamics NAV, and then click Select Server.
3. In Server Name, add the number 2 to the DynamicsNAV value so that it is DynamicsNAV2.
4. Click Connect.
5. Select CRONUS International Ltd. from the Companies list.
6. Unless you have already installed additional databases, the demo database is the only one available and is automatically selected.
7. Click Connect, and then start working with your database.
When you use the SC command line command to create a new NAV 2009 Service, how does the new service know whether it is a middle tier for RTC to connect to, or whether it is supposed to handle web service calls?
In other words, what decides whether the new service will be "Microsoft Dynamics NAV Server" or "Microsoft Dynamics NAV Business Web Services"?
It depends on the name. If it starts with "MicrosoftDynamicsNavWS", then it will be for Web Services. If the name starts with anything else, then it will be for middle tier for RTC clients.
Create the service for Web Services:
1. At the command prompt, type the sc command to create a new service. Copy the following command and paste it at the command prompt. Replace <computername> with the actual computer name.
sc \\<computername> create MicrosoftDynamicsNavWS$NAV2 binpath= "C:\Program Files\Microsoft Dynamics NAV\60\Service2\Microsoft.Dynamics.Nav.Server.exe $NAV2" DisplayName= "Microsoft Dynamics NAV Business Web Services Instance 2" start= auto type= share depend= HTTP obj= "NT Authority\NetworkService"
No comments:
Post a Comment