title: How can I launch an executable from an IIS-hosted WCF service?
body: <p>We have a WCF service that we recently switched from self-hosting to IIS-hosted.  It needs to launch an executable using Process.Start().  This works fine when it's self-hosted, but when hosted in IIS, we get the error:</p>
  
  <p>System.ComponentModel.Win32Exception: The system cannot find the file specified</p>
  
  <p>We have the exe in both the bin directory and in the application root (next to the .svc file.)  But, it can't seem to find the exe.  </p>
  
  <p>Any help would be appreciated.  Thanks!</p>
  
  <p>EDIT: I forgot to mention that we're launching using the following code:
  Process.Start("LeakingWrapper.exe");</p>
  
  <p>FURTHER INFO: Unfortunately, we don't have the option to switch the exe to a dll, because it is wrapping a third-party library that leaks memory.  So, we have to put it into its own process to ensure our long-running WCF service doesn't leak!</p>