C
C#2w ago
Manuel

The generated C# executable does not run on empty computers.

I have a project that is based on: * A backend, generated with c# with the .net6.0 SDK. * A frontend, generated with angular. The frontend requests information to the backend and the backend returns it all through apis. In turn the backend uses sockets to connect to a GPS device. The backend publishes it with the following instruction dotnet publish -c release -r win10-x64 -p:PublishSingleFile=true --self-contained -o c:backend This executable works correctly on the machine where it was generated, but if I try to run it on another machine where donet6.0 is previously installed, it does not work. I launch queries to the backend with Postman and the answer is Error: connect ECONNREFUSED 127.0.0.1:5001 For this executable to work on this or any other computer, I can only get it to work if I install the Visual Studio IDE. Can anyone help me or tell me what could be wrong or what other packages I should install to make it work?
5 Replies
canton7
canton72w ago
Why don't you look at why the backend fails to start? You almost certainly get an error message / code of some kind
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Manuel
Manuel2w ago
Researching and performing more tests. The problem is that the backend doesn't accept https requests as if some kind of certificate needs to be installed or added to the project when publishing. Since ... if I force the http requests, at least, in the equipment that I have been able to test if it accepts it and it works correctly.
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Manuel
Manuel2w ago
-o c:backend it was a transcription error
Want results from more Discord servers?
Add your server
More Posts