title: Run console application (.exe) from within ASP.NET application (IIS 7,5)
body: <p>I have an ASP.NET application on Windows 2008 R2 (.NET Framework 4.0, IIS 7.5) and I want to run a console application when I click a button on a web page. Here is the code:</p>
  
  <pre><code>protected void btnUpdate_Click(object sender, EventArgs e)
      {
          string fileLocation = @"D:\DTDocs\App_Code\LoadDTDocsXML.exe";
          ProcessStartInfo oStartInfo = new ProcessStartInfo();
          oStartInfo.FileName = fileLocation;
          oStartInfo.UseShellExecute = false;
          Process.Start(oStartInfo);
  }
  </code></pre>
  
  <p>When I run ASP.NET application from within Visual Studio 2010 (with its internal IIS), the console application run Ok. But when I run the ASP.NET application outside the VS 2010, I haven't an error but the console application doesn't make his job (it must create an xml file on the disk). 
  I think the problem is the configuration of IIS 7.5, I don't know exact to which account I must give access rights to the folders involved in my console application.
  In IIS 7.5, I set <em>Physical Path Credential</em> for <em>Specific User</em> = my windows account, but that not solve the problem.
  Thanks.</p>