Accounting 2.0 - Login Issue: Login Error – The underlying connection was closed: The connection was closed unexpectedly

From AutoCount Resource Center

Question: When I login to AutoCount Ver 2.0, the system prompts an error message “The underlying connection was closed: The connection was closed unexpectedly”. The AutoCount Server cannot start, error “Time out has expired..”. Why?

Underlying conn1.png


Possible Reason :

AutoCount Server port is occupied by other application.
You may check at Resources Manager > Network > Listening port, to find out port 19500 (default port for AutoCount Server) is occupied by which application.
From the example shown, it’s occupied by SQL Server.

Underlying conn2.png


Solution (1):

Change the SQL server port number. Then start the service for AutoCount Server and you should be able to login AutoCount.

Please refer to the below link for the guide how to change the port number in SQL.

Troubleshooting: SUnable to start SQL Server Service due to TCP Port is already being used


Solution (2):

Change the port number for AutoCount Server, from 19500 to other port (example= 19501).

1) (from the taskbar, click on Show hidden icons) Right click on the brown camera icon, and select AutoCount Server Setting.

Underlying conn3.png


2) Change the port number to 19501, click on Save & Apply.

Underlying conn4.png


3) Click on OK and the service is started.

Underlying conn5.png


4) Now you should be able to login AutoCount.


By : Zhi Xuan 201116, Lay Swan 201126, P201130



Go to menu

IconAcc20.PNG AutoCount Accounting 2.0 & 2.1


IconAcc188.PNG AutoCount Accounting 1.8 / 1.9
Wiki-Payroll.png AutoCount Payroll
Wiki-POS.PNG AutoCount POS


Wiki-AOTG.PNG AutoCount On The Go
Wiki-Accounting-Plugin.png AutoCount Accounting Plug-In Documentations