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?


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.


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.


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


3) Click on OK and the service is started.


4) Now you should be able to login AutoCount.


By : Zhi Xuan 201116, Lay Swan 201126, P201130



Go to menu

AutoCount Accounting 2.0 & 2.1


AutoCount Accounting 1.8 / 1.9
AutoCount Payroll
AutoCount POS


AutoCount On The Go
AutoCount Accounting Plug-In Documentations