zzzxtreme
asked on
executing external programs
hello i tried to execute a VBS file from asp.net serverside, using Shell or System.Diagnostics.Process , but the file process (wscript.exe) seem to freeze. I have to terminate it thru task manager.I think it kind of stop without running the vbs file script. What is wrong there?i am using VB.Net
Use CSCRIPT not WSCRIPT. The latter tries to interact with desktop, and you don't have one.
ASKER
its the same problem with csript. i run from cmd no problem, but run from asp.net, it freezes, just like wscript.
Hi,
I can't test this now but did you tried placing the call to cscript within a batch file and run the batch file from asp.net using the Process class.
regards,
Venki
I can't test this now but did you tried placing the call to cscript within a batch file and run the batch file from asp.net using the Process class.
regards,
Venki
ASKER
tovvenki, i tried to put the call to csript within a batch file (.bat) like u suggested. same problem also !it kind of freeze. i am using windows 2003 and i gave full access rights of the files/folders to asp.net and iusr_machine accounts.
Windows 2003 - the asp.net user is NT AUTHORITY\NETWORK SERVICE
Give permission to that user.
Give permission to that user.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi,
I agree to crescendo. what does that script do? I might be doing something that freezes the system.
regards,
venki
I agree to crescendo. what does that script do? I might be doing something that freezes the system.
regards,
venki
ASKER
thanks cresendo, venki
setting network service permission did the trick!! thanks !!
setting network service permission did the trick!! thanks !!