I tried to add an executable to my Azure worker role and call it from the code. But I'm not 100% sure how the path has to look like. I added the executable in Visual Studio to my worker role project, set to content and copy always. In my worker role, I call
Process.Start(Path.Combine(Environment.GetEnvironmentVariable("RoleRoot"), "Executable.exe"));
Which results in
AppDomain Unhandled Exception Exception: The system cannot find the file specified at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) [...] at System.Threading.ThreadHelper.ThreadStart()
The name of my azure project is "AzureProject", the name of my worker role is "QueueWorker", the executable "Executable.exe". I suppose the path is wrong.