473,387 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Problem in executing a script on the server side ! Script found but nothing executed !

Hello,

I'm currently developping a web application in C# / ASP.net.
On a specific form of my application, I have a simple button which calls the
following code :

Process myProcess;
myProcess = new Process();

myProcess.StartInfo.UseShellExecute = false;

myProcess.StartInfo.RedirectStandardOutput = true;

myProcess.StartInfo.RedirectStandardError = true;

myProcess.StartInfo.WorkingDirectory = "C:\\Inetpub\\wwwroot\\NetGuard";

myProcess.StartInfo.FileName =
"C:\\Inetpub\\wwwroot\\NetGuard\\GoNetSH.cmd";

myProcess.Start();

It is just a call to a simple script (GoNetSH.cmd) running on the server
side (Windows server 2003).

The content of the script is the following :

c:\windows\system32\ping cronos > C:\Inetpub\wwwroot\NetGuard\cronos.txt

As you can see there is no call to any graphical program, just a simple
command line... !

My problem is the following. The script is well called but the code inside
is not executed and I can't find why !
I checked the NTFS security, the IIS parameters, I even put "everyone",
"system", "IUSR_machinename" and so one in "Administrators" group (just for
testing...) but nothing is executed !

Here is my web.config parameters :
<authentication mode="Windows" />

<identity impersonate="true"/>

And my machine.config parameters:

<processModel enable="true" timeout="Infinite" idleTimeout="Infinite"
shutdownTimeout="0:00:05" requestLimit="Infinite" requestQueueLimit="5000"
restartQueueLimit="10" memoryLimit="60" webGarden="false"
cpuMask="0xffffffff" userName="SYSTEM" password="AutoGenerate"
logLevel="Errors" clientConnectedCheck="0:00:05"
comAuthenticationLevel="Connect" comImpersonationLevel="Impersonate"
responseDeadlockInterval="00:03:00" maxWorkerThreads="20"
maxIoThreads="20"/>

The configuration of the framewok is full trust for all the zones !!

Is there something specific with Windows Server 2003 ? Can someone help me ?

Thank you in advance for all your responses !

Cédric
Nov 18 '05 #1
1 1113
For information :

I have to let the IIS service interact with the desktop and then it
works correctly...

Thank you

Cédric

----------------------------------------------------------------------------------
"Cédric Rossé" <ce**********@eiaj.ch> a écrit dans le message de news:
uJ**************@TK2MSFTNGP10.phx.gbl...
Hello,

I'm currently developping a web application in C# / ASP.net.
On a specific form of my application, I have a simple button which calls
the following code :

Process myProcess;
myProcess = new Process();

myProcess.StartInfo.UseShellExecute = false;

myProcess.StartInfo.RedirectStandardOutput = true;

myProcess.StartInfo.RedirectStandardError = true;

myProcess.StartInfo.WorkingDirectory =
"C:\\Inetpub\\wwwroot\\NetGuard";

myProcess.StartInfo.FileName =
"C:\\Inetpub\\wwwroot\\NetGuard\\GoNetSH.cmd";

myProcess.Start();

It is just a call to a simple script (GoNetSH.cmd) running on the server
side (Windows server 2003).

The content of the script is the following :

c:\windows\system32\ping cronos >
C:\Inetpub\wwwroot\NetGuard\cronos.txt

As you can see there is no call to any graphical program, just a simple
command line... !

My problem is the following. The script is well called but the code inside
is not executed and I can't find why !
I checked the NTFS security, the IIS parameters, I even put "everyone",
"system", "IUSR_machinename" and so one in "Administrators" group (just
for testing...) but nothing is executed !

Here is my web.config parameters :
<authentication mode="Windows" />

<identity impersonate="true"/>

And my machine.config parameters:

<processModel enable="true" timeout="Infinite" idleTimeout="Infinite"
shutdownTimeout="0:00:05" requestLimit="Infinite" requestQueueLimit="5000"
restartQueueLimit="10" memoryLimit="60" webGarden="false"
cpuMask="0xffffffff" userName="SYSTEM" password="AutoGenerate"
logLevel="Errors" clientConnectedCheck="0:00:05"
comAuthenticationLevel="Connect" comImpersonationLevel="Impersonate"
responseDeadlockInterval="00:03:00" maxWorkerThreads="20"
maxIoThreads="20"/>

The configuration of the framewok is full trust for all the zones !!

Is there something specific with Windows Server 2003 ? Can someone help me
?

Thank you in advance for all your responses !

Cédric

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Job Lot | last post by:
How can I terminate console application in Try…Catch…Finally…End Try block so that code in Finally gets executed. If I use End statement Finally does not get executed. Following is my code...
5
by: ian.irlandez | last post by:
Hey all, I'm trying to execute a bat file on the server in javascript. The javascript sits on the server as well. I'm currently using: document.location.href='testme.bat'; However the only...
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
4
by: Madhu Gopinathan | last post by:
Hi All, I am faced with a horrible hang problem. I have a COM exe server that executes some tasks. The task execution manager is a thread that manages the pool of threads, which is 4 per processor....
9
by: Wayne Wengert | last post by:
I am attempting to incorporate some techniques I found in an MSDN article into one of my aspx pages. It basically adds a new class that Inherits from the System.Web.UI.Page and includes some new...
8
by: nick | last post by:
I have a problem and I've been using a cheezy work around and was wondering if anyone else out there has a better solution. The problem: Let's say I have a web application appA. Locally, I set...
102
by: hug | last post by:
www.webmaster, was suggested that this ng could be a better place.] I've updated my test server to handle if-modified-since. I've noticed that the (old copies I run of) IE and Netscape seem...
8
by: Daz | last post by:
Hi everyone. I was faced with the choice of whether my problem is indeed a PHP problem or a MySQL. I have decided it's a PHP problem as I don't experience the same problem when I execute the...
14
by: lmttag | last post by:
Hello. We're developing an ASP.NET 2.0 (C#) application and we're trying to AJAX-enable it. We're having problem with a page not showing the page while a long-running process is executing. So,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.