public void StartClient() { _clientApp = new Process(); ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = "C:\\own stuff\\closeappwithpipe\\server\\Client\\bin\\Debug\\Client.exe"; _clientApp.StartInfo = startInfo; _clientApp.Start(); _pipeServer = new NamedPipeServer((int)_clientApp?.Id); _pipeServer.InformationReady += PipeServerOnInformationReady; _pipeServer.CreatePipe(); }