here is an update in case anyone faced a similar issue
after I reinstalled another windows server 2016 VM I had the same issue with the new installation only for my application was not working but the demo was working fine,
I tracked the issue by making a new project and finally, I found out that the UnimainModule was the reason for this issue
I compared all settings in both modules but I found nothing different in the settings
finally, I copied all code and components from the original uniMainModule to the new one and then replaced the files in the original project and now is working fine.
regards