title: IIS7 does not start my Exe file by Process Start
body: <p>I've read a lot of articles. But as far as I know I've done all.
  On local computer VS2010 all works fine. The problem occurs only when working on IIS7 Server.</p>
  <p>I want to start a exe file which works great on server if I start it manually from Windows Explorer.</p>
  <pre><code> Dim fiExe As New IO.FileInfo(IO.Path.Combine(diBase.FullName, &quot;ClientBin\ConvertAudio.exe&quot;))
      Dim SI As New ProcessStartInfo(fiExe.FullName, args)
      SI.Verb = &quot;runas&quot;
      SI.UseShellExecute = True
      SI.WorkingDirectory = fiExe.Directory.FullName
      Dim P As Process = Process.Start(SI)
      P.PriorityClass = ProcessPriorityClass.Idle
  </code></pre>
  <p>I've converted the directory <code>ClientBin</code> in an Application in IIS.</p>
  <p>But when using the service I receive this error (callback in Silverlight application):</p>
  <pre><code>{System.Security.SecurityException ---&gt; System.Security.SecurityException: Sicherheitsfehler
     bei System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
     bei System.Net.Browser.BrowserHttpWebRequest.&lt;&gt;c__DisplayClass5.&lt;EndGetResponse&gt;b__4(Object sendState)
     bei System.Net.Browser.AsyncHelper.&lt;&gt;c__DisplayClass4.&lt;BeginOnUI&gt;b__0(Object sendState)
     --- Ende der internen Ausnahmestapelüberwachung ---
     bei System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
     bei System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
     bei System.Net.WebClient.WebClientWriteStream.&lt;Dispose&gt;b__3(IAsyncResult ar)}
  </code></pre>
  <p>I've tried to store the file &quot;clientaccesspolicy.xml&quot;
  in same directory like <code>ClientBin</code></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;access-policy&gt;
      &lt;cross-domain-access&gt;
          &lt;policy&gt;
              &lt;allow-from http-request-headers=&quot;*&quot;&gt;
                  &lt;domain uri=&quot;*&quot;/&gt;
              &lt;/allow-from&gt;
              &lt;grant-to&gt;
                  &lt;resource path=&quot;/&quot; include-subpaths=&quot;true&quot;/&gt;
              &lt;/grant-to&gt;
          &lt;/policy&gt;
      &lt;/cross-domain-access&gt;
  &lt;/access-policy&gt; 
  </code></pre>
  <p>Still the same message.
  Any idea?</p>
  <p><img src="https://i.stack.imgur.com/C6cmB.jpg" alt="ISS7 Commandline configuration" /></p>
  <p><img src="https://i.stack.imgur.com/kNBgG.jpg" alt="permission in Windows Explorer" /></p>
  <p>*** new info - verb ***
  When using this function</p>
  <pre><code>Dim startInfo As New ProcessStartInfo(fiExe.FullName)
              Dim V As String = &quot;&quot;
              For Each verb As String In startInfo.Verbs
                  V &amp;= V &amp; &quot;, &quot;
              Next
              Throw New Exception(&quot;Verbs=&quot; &amp; V)
  </code></pre>
  <p>I receive this result:</p>
  <blockquote>
  <p>Verbs=, , , , , , ,</p>
  </blockquote>
  <p>*** Solution found ***
  I've found the solution while using <a href="http://www.fiddler2.com" rel="nofollow noreferrer">http://www.fiddler2.com</a> and <a href="http://technet.microsoft.com/en-us/sysinternals/bb896653" rel="nofollow noreferrer">http://technet.microsoft.com/en-us/sysinternals/bb896653</a>
  Problem was while using x86 application on a x64 IIS in combination with <code>verb=runas</code> flag. Now application is set to anycpu (Perhaps that does not matter) and <code>verb</code> on ProcessStartInfo is not set to anything.</p>