Patrick
Wed Jan 04 08:46:09 CST 2006
I found the answer finally. The program was a module and did not create a
window of any kind. The answer was in dcom config. The identity had to be
set to "interactive user" for that exe. Took me forever to locate that one.
Starnge that the only symptom was it would not terminate.
"T Lavedas <tglbatch@cox_DOT_net>" <tglbatch@cox.net> wrote in message
news:1136383643.573810.14470@z14g2000cwz.googlegroups.com...
>I am no expert, but if the program creates a window (console or GUI)
> that could be your problem. The ASP host does not generally have
> access to a console.
>
> I would search www.aspfaq.com to see if that expert site has more
> insight into your problem. In particular, start here:
>
http://www.aspfaq.com/show.asp?id=2059.
>
> Tom Lavedas
> ============
>
http://members.cox.net/tglbatch (new URL - old content)
>
> Patrick Dugan wrote:
>> I have an ASP web page that uses vbscript to start a program. The code
>> looks like this:
>>
>> Set shell = CreateObject("WScript.Shell")
>> shell.Run "MyProgram.exe", 1, false
>>
>>
>> The exe program was written in VB6
>> The program runs fine and completes however it does not terminate. It
>> does
>> correctly die however if simply run from a DOS prompt.
>> I have tried adding "end" and "Unload Me" to no avail.
>>
>> What would cause the program to hang when run from the script via an ASP
>> page?
>