Service installed does not Working correctly

I made a service on c# Visual Studio 2015, the service working perfect on debug or release mode, but when i installed it on windows , it is not working correctly. There is some recommendation about it. i am using the last version 9.2.103.1311.

Hello

Please elaborate what exactly doesnt work for you.

Thanks in advance

source.rar (1.3 MB)
Error.docx (960.0 KB)

Hello

Please check the account you use to run your Windows Service. It is quite possible it isnot allowed to talk to the remote SQL server so it pauses its execution for indefinite amount of time.

Also please once the service hangs attach Visual Studio to it and check whick code line it is paused at.

If that won’t help then please provide proper testcase (ie w/o the need to access some MS SQL database or other remote services) and provide its sources, not compiled assemblies. You can send it to support@ to avoid sharing the code here

Thanks in advance