Solved

executing external programs

Posted on 2004-08-12
8
516 Views
Last Modified: 2008-02-01
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
Comment
Question by:zzzxtreme
  • 3
  • 3
  • 2
8 Comments
 
LVL 9

Expert Comment

by:crescendo
ID: 11782190
Use CSCRIPT not WSCRIPT. The latter tries to interact with desktop, and you don't have one.
0
 
LVL 2

Author Comment

by:zzzxtreme
ID: 11782289
its the same problem with csript. i run from cmd no problem, but run from asp.net, it freezes, just like wscript.
0
 
LVL 21

Expert Comment

by:tovvenki
ID: 11782667
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
 
LVL 2

Author Comment

by:zzzxtreme
ID: 11782863
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 9

Expert Comment

by:crescendo
ID: 11782939
Windows 2003 - the asp.net user is NT AUTHORITY\NETWORK SERVICE

Give permission to that user.
0
 
LVL 9

Accepted Solution

by:
crescendo earned 125 total points
ID: 11782972
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
 
LVL 21

Expert Comment

by:tovvenki
ID: 11783100
Hi,
I agree to crescendo. what does that script do? I might be doing something that freezes the system.

regards,
venki
0
 
LVL 2

Author Comment

by:zzzxtreme
ID: 11783182
thanks cresendo, venki

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

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now