This error applies to many situations and can take some troubleshooting to target the cause.

50138 is telling you that the Noah Client service cannot connect to the Noah server service. This can be the Noah Server across the network or on the local machine.

It can also mean that the Noah database is not reachable, possibly indicating corruption.

Try the solutions outlined below that apply to your situation. If not able to resolve the 50138 error, see information linked here on how to collect log files for your Noah Distributor’s support technician.

Solution 1

Restart the NOAH Server Service on the machine where the Noah database is located. You can do this in two ways:

  • Reboot your PC
  • Restart the Noah Server service manually in the Microsoft Management Console

Solution 2

Antivirus software can sometimes be the culprit for 50138. Look to the History, Event log, or the Virus chest in your antivirus software to see if a Noah process has been blocked. If possible, temporarily disable the antivirus and try to launch Noah again.

Solution 3

Is it possible that the Noah Server has been upgraded to a newer version than the Noah clients?

In most versions of Noah, a specific error message is given if the server and client versions do not match, but in some cases a 50138 is given.

  • Check the version of Noah on the server
  • Launch the Noah Console to check the Noah version on the workstation
  • Noah server and client versions need to match, update workstations if necessary

Solution 4

If you are receiving 50138 after an upgrade to Noah 4.12 or higher, it is possible the machine is not fully up to date with Windows Updates. Noah requires enhanced Microsoft security features to be present, these security enhancements are delivered thru Windows Updates. HIMSA has developed a tool to check for the required registry keys, see the to the right.

  • Download SHA512Update to the machine or machines displaying the 50138 error and unzip.
  • Right click and Run as Administrator on SHA512Update.exe
  • The tool will either report that ‘No keys are missing’ or it will install missing keys
  • Reboot as directed if the keys were missing and have been installed.
  • Launch Noah

Solution 5

If you are trying to connect a Noah workstation to a Noah Server across the network and receive 50138, try a basic PING network test to see if server is reachable. Note that Windows Firewall can block the ping command.

  • Open the Command Prompt.
  • Type “ping” in the black box and hit the space bar
  • Type the name of the server and enter, should receive a series of 4 ‘Reply’
  • If no reply with server name, try to ping with server IP address

If the Noah server machine is not reachable with a PING then Noah application cannot connect either, this can indicate a networking issue that needs to be explored.

Solution 6

50138 can be caused by corruption in the Noah patient database. The steps below will create a clean, empty patient database.

IMPORTANT: You will need to Restore from a Backup to recover the Noah patient database. Check for a valid Noah backup at C:\ProgramData\HIMSA\Noah\Backup\Database, or C:\Program Files (x86)\HIMSA\Noah 4\backup, or your custom backup location:

  1. Navigate to Services and stop both the Noah Server and Noah Client services. Then minimize the Services window. 
  2. Navigate to the NOAHDatabaseCoreSqlCompact.sdf file located at C:/Program Files (x86)/Common Files/HIMSA Shared and rename the file to NOAHDatabaseCoreSqlCompact.old
  3. Restart the Noah Server and then the Noah Client services. 
  4. Launch Noah. 

Noah will create a new, blank, patient database file when it launches. You will need to Restore a recent Noah Backup to recover the patient database.

Solution 7

50138 can be caused by corruption in the Noah configuration database. The steps below will create a clean configuration database:

  1. Navigate to Services and stop both the Noah Server and Noah Client services. Then minimize the Services window.
  2. Navigate to the NoahCfgDatabase.sdf file located at C:/Program Files (x86)/Common Files/HIMSA Shared and rename the file to NoahCfgDatabase.old.
  3. Restart the Noah Server and then the Noah Client services.
  4. Launch Noah.

Noah will create a new configuration file when it launches. Any preference settings made in Noah will need to be reset, for example module order and customized fields.

Solution 8

If this machine has been configured as a client but now is attempting to look at the local database a license file needs to be installed.

Check to be sure the Noah 4 license file, noah4.lf, is installed at C:\Program Files (x86)\Common Files\HIMSA Shared

Solution 9

Check to be sure that the Noah Server machine and the Noah Client machine are in the same time zone. Check in Windows Setting under Date and Time, Time zone.

If the time zone mismatch is the problem you will see the error below in the NoahGUI.log:

2021-09-07 13:26:54,982 ERROR [1]: UserLoginControlViewModel.OnOkCommandNonOpenIDConnect: Exception: System.ArgumentException: ‘-2170501.7854′ is not a valid value for ‘Interval’. ‘Interval’ must be greater than 0.

Solution 10

Error 50138 after an upgrade to 4.12 or higher can be caused by a blocked port. For Noah 4.10 and higher, Port 8206 must be available in addition to Port 8200. See the WAN requirements information.

HIMSA has a simple tool available to check if required Noah ports are open. 

NOTE: The tool is not able to check the port status before Noah is installed, it is for use after Noah is installed.

  • Download and unzip the Port Accessibility Test on the right sidebar.
  • Right click and Run as Administrator on the Port Accessibility Test.exe
  • Type in the IP address or host name of the Noah Server
  • Hit enter.
  • The tool will show that it tests ports 8200 and 8206 and reports open or closed
  • Hit enter again to close the Port Accessibility Test

It is possible but unlikely that something other than Noah may be using Noah ports. If the test returns that one or more of the ports are closed, follow these steps to release the ports.

Note: Only perform these steps after making sure that exceptions for the port have been made in firewall and antivirus.

  • End Noah Server Service in task manager.
  • Open an elevated command prompt.
  • Run these commands to find out if the ports are occupied:
    netstat -aon | findstr 8200 
    netstat -aon | findstr 8206 

If these commands return anything, the ports are in use and Noah cannot access them. If nothing is returned the ports are open.

  • If any of the ports are in use, use the corresponding command to open the blocked ports.
    netsh http delete urlacl url=https://+:8200/ 
    netsh http delete urlacl url=https://+:8206/ 
  • Reuse the netstat – aon | findstr **** command to verify that the ports are now open, using the port number instead of ****.
  • Start Noah Service Service in task manager.
  • Confirm that Noah is working as intended.

Solution 11

Check if the computer’s name or the profile name has been changed:

  1. From the login screen select ‘Connect to New Server’.
  2. Name the New Profile and select Browse.
  3. Choose Refresh – this will check for any available Noah 4 Server computers:
  4. Choose the correct server for the new profile, click Select.
  5. Click OK on the Add/Edit Server Profile box.
  6. At the Noah login choose the new profile:
  7. Once you are successfully in Noah, go to Setup, Administration, Noah Server Setup, Server Profiles and delete the profile to the old computer name.

Solution 12

Manually register Noah components using the following directions.

  1. Open a Command prompt
  2. Navigate to C:\Program Files (x86)\HIMSA\Noah 4
  3. Type noahappsregister fregister
  4. When the command is complete, the last line should read ‘Applications registered’