title: Site stops working after few seconds with IIS Express
body: <p>I have to start the IIS Express from a WPF Application. I can start IISExpress, and browser on the website for a few seconds. Then when I click any link it doesn't load. Then If I close the WPF Application the webpage responds immediately. My code:</p>
  
  <pre><code>private void MainWindow_Loaded(object sender, RoutedEventArgs e)
  {
     StartSite();
  }
  
  public void StartSite()
  {
      string path = @"C:\Program Files\IIS Express\iisexpress.exe";
      string args = @"/path:C:\Sites /port:9090 /systray:true";
  
     if (!File.Exists(path))
        throw new FileNotFoundException();
  
     var process = Process.Start(new ProcessStartInfo()
     {
       FileName = path,
       Arguments = args,
       RedirectStandardOutput = true,
       UseShellExecute = false,
       CreateNoWindow = true
     });
  }
  </code></pre>
  
  <p>Any guesses why the website works for just few seconds and will work again after closing the application that launched iisexpress?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I notice that when I build in "Debug" it happens, but when I build in "Release" the problem doesn't occur.</p>