title: Process.Start Launches EXE but with error... But if i launch exe myself it runs fine
body: <p>the error says it errored on the line that starts with <code>gr.Copy</code>:</p>
  <pre><code>        Bitmap bmp = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
          Graphics gr = Graphics.FromImage(bmp);
          gr.CopyFromScreen(0, 0, 0, 0, bmp.Size);
          bmp.Save(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + @&quot;\Pictures\RSB\&quot; + System.Environment.MachineName + &quot;.png&quot;, System.Drawing.Imaging.ImageFormat.Png);
  </code></pre>
  <p>Also it works in visual studio debug on the os or on a normal windows 10 os. The one it errors on is Windows Server 2019 Datacenter</p>
  <p>Error Picture:</p>
  <p><a href="https://i.stack.imgur.com/rWVKF.png" rel="nofollow noreferrer">Picture of error</a></p>
  <p>Code of Process.Start():</p>
  <pre><code>                    Process process = new Process()
                      {
                          StartInfo = new ProcessStartInfo(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + @&quot;\Desktop\RSB\RSB.exe&quot;)
                          {
                              WindowStyle = ProcessWindowStyle.Normal,
                              WorkingDirectory = Path.GetDirectoryName(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + @&quot;\Desktop\RSB\RSB.exe&quot;)
                          }
                      };
  
                      process.Start();
  </code></pre>