Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Problem in executing a script on the server side ! Script found but nothing executed !

Reply
Thread Tools

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

 
 
Cédric Rossé
Guest
Posts: n/a
 
      11-09-2004
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


 
Reply With Quote
 
 
 
 
Cédric Rossé
Guest
Posts: n/a
 
      11-09-2004
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é" <> a écrit dans le message de news:
...
> 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
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
re module: Nothing to repeat, but no sre_constants.error: nothing torepeat ? Devin Jeanpierre Python 2 02-14-2012 01:33 PM
Server-side script with input parameter from Client-side script Magnus Blomberg ASP .Net 3 04-14-2005 12:21 PM
Run Server-side Function *immediately after* executing client-side JavaScript. Guadala Harry ASP .Net 4 06-15-2004 07:04 AM
Executing client *and* server side script with one call Burak ASP .Net Web Controls 3 06-03-2004 03:55 PM
Server-side script executed on page load or event, but not SSI Henry Perl Misc 7 12-12-2003 03:08 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57