'How to run .net core web api 32 bit application from windows service?

I am hosting a target runtime win-x86 .net core api application on windows service. It is throwing below error

No connection could be made because the target machine actively refused it.

Can anyone suggest me a fix.

Note: If I change the build to target runtime win-x64 bit and hosting it on windows service it is running fine.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source