Note that there are some explanatory texts on larger screens.

plurals
  1. POIIS7 does not start my Exe file by Process Start
    primarykey
    data
    text
    <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 wich 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, "ClientBin\ConvertAudio.exe")) Dim SI As New ProcessStartInfo(fiExe.FullName, args) SI.Verb = "runas" 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 "clientaccesspolicy.xml" in same directory like <code>ClientBin</code></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;access-policy&gt; &lt;cross-domain-access&gt; &lt;policy&gt; &lt;allow-from http-request-headers="*"&gt; &lt;domain uri="*"/&gt; &lt;/allow-from&gt; &lt;grant-to&gt; &lt;resource path="/" include-subpaths="true"/&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><strong>* new info - verb *</strong> When using this function</p> <pre><code>Dim startInfo As New ProcessStartInfo(fiExe.FullName) Dim V As String = "" For Each verb As String In startInfo.Verbs V &amp;= V &amp; ", " Next Throw New Exception("Verbs=" &amp; V) </code></pre> <p>I receive this result:</p> <blockquote> <p>Verbs=, , , , , , ,</p> </blockquote> <p><strong>* Solution found *</strong> I've found the solution while using <a href="http://www.fiddler2.com" rel="noreferrer">http://www.fiddler2.com</a> and <a href="http://technet.microsoft.com/en-us/sysinternals/bb896653" rel="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>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload