Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 526
  • Last Modified:

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
0
zzzxtreme
Asked:
zzzxtreme
  • 3
  • 3
  • 2
1 Solution
 
crescendoCommented:
Use CSCRIPT not WSCRIPT. The latter tries to interact with desktop, and you don't have one.
0
 
zzzxtremeAuthor Commented:
its the same problem with csript. i run from cmd no problem, but run from asp.net, it freezes, just like wscript.
0
 
tovvenkiCommented:
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
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
zzzxtremeAuthor Commented:
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.
0
 
crescendoCommented:
Windows 2003 - the asp.net user is NT AUTHORITY\NETWORK SERVICE

Give permission to that user.
0
 
crescendoCommented:
Also, does this VBS program expect any sort of input? If it were displaying a message box and waiting for you to click OK, it would appear to hang.
0
 
tovvenkiCommented:
Hi,
I agree to crescendo. what does that script do? I might be doing something that freezes the system.

regards,
venki
0
 
zzzxtremeAuthor Commented:
thanks cresendo, venki

setting network service permission did the trick!! thanks !!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now