-1

I am currently trying to get my server (C#) running on an Ubuntu server. The Ubuntu server is hosted with Amazon EC2. I have developed the server on my Windows PC. Here everything works without problems. I have now proceeded as follows:

  • Visual Studio right click on my project
  • Clicked on Publish
  • Target runtime: Linux-x64
  • copied everything with WinScp to the Ubuntu server.

If I now want to start the file in the publish folder with "sudo ./ProgramName" I only get an error message: "command not found".

Can someone help me with this?

Camilo Terevinto
  • 31,141
  • 6
  • 88
  • 120

1 Answers1

0

Use:

chmod u+x "ProgramName"

:)