title: Web api cannot start an exe process C#
body: <p>I have a web api hosted in Windows Server 2012 r2. On startup this api starts a third party exe file using the following code snippet:</p>
  
  <pre><code>_service = new Process()
              {
                  StartInfo = new ProcessStartInfo
                  {
                      FileName = "file.exe",
                      Arguments = "-C config.xml",
                      WindowStyle = ProcessWindowStyle.Hidden,
                      LoadUserProfile = true,
                      WorkingDirectory = "C:\TestFolder",
                      CreateNoWindow = true
                  }
              };
  
  _service.Start()
  </code></pre>
  
  <p>It works fine on my local machine, but after I deployed it on server, it hangs. I tried setting Load User Profile = true for the app pool but that didn't help. Also tried setting the app pool for 32 bit but that didn't work either. Any idea?</p>