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.Start Info.UseShellEx ecute = false;
myProcess.Start Info.RedirectSt andardOutput = true;
myProcess.Start Info.RedirectSt andardError = true;
myProcess.Start Info.WorkingDir ectory = "C:\\Inetpub\\w wwroot\\NetGuar d";
myProcess.Start Info.FileName =
"C:\\Inetpub\\w wwroot\\NetGuar d\\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\syst em32\ping cronos > C:\Inetpub\wwwr oot\NetGuard\cr onos.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_machinena me" and so one in "Administrators " group (just for
testing...) but nothing is executed !
Here is my web.config parameters :
<authenticati on mode="Windows" />
<identity impersonate="tr ue"/>
And my machine.config parameters:
<processModel enable="true" timeout="Infini te" idleTimeout="In finite"
shutdownTimeout ="0:00:05" requestLimit="I nfinite" requestQueueLim it="5000"
restartQueueLim it="10" memoryLimit="60 " webGarden="fals e"
cpuMask="0xffff ffff" userName="SYSTE M" password="AutoG enerate"
logLevel="Error s" clientConnected Check="0:00:05"
comAuthenticati onLevel="Connec t" comImpersonatio nLevel="Imperso nate"
responseDeadloc kInterval="00:0 3:00" maxWorkerThread s="20"
maxIoThreads="2 0"/>
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 1 1129
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**********@e iaj.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.Start Info.UseShellEx ecute = false;
myProcess.Start Info.RedirectSt andardOutput = true;
myProcess.Start Info.RedirectSt andardError = true;
myProcess.Start Info.WorkingDir ectory = "C:\\Inetpub\\w wwroot\\NetGuar d";
myProcess.Start Info.FileName = "C:\\Inetpub\\w wwroot\\NetGuar d\\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\syst em32\ping cronos > C:\Inetpub\wwwr oot\NetGuard\cr onos.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_machinena me" and so one in "Administrators " group (just for testing...) but nothing is executed !
Here is my web.config parameters : <authenticati on mode="Windows" />
<identity impersonate="tr ue"/>
And my machine.config parameters:
<processModel enable="true" timeout="Infini te" idleTimeout="In finite" shutdownTimeout ="0:00:05" requestLimit="I nfinite" requestQueueLim it="5000" restartQueueLim it="10" memoryLimit="60 " webGarden="fals e" cpuMask="0xffff ffff" userName="SYSTE M" password="AutoG enerate" logLevel="Error s" clientConnected Check="0:00:05" comAuthenticati onLevel="Connec t" comImpersonatio nLevel="Imperso nate" responseDeadloc kInterval="00:0 3:00" maxWorkerThread s="20" maxIoThreads="2 0"/>
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 written in Console Application.
Module Module1
Sub Main()
Call Testing()
|
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 thing it does is just opens up the bat file and shows
my bat code in the browser. How can I execute the batch file instead
of opening it and viewing it in the browser?
|
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();
.... and then call the virtual method, why is it that the base class's method
is called instead of the overridden method? How do I fix this if I don't
know at runtime what the child class is? I'm using
Activator.CreateInstance() to load the...
|
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. Each task is processed in a separate thread. Each of the executer threads is an STA thread, and it goes ahead and executes the task.
No problems are encountered when tasks are executed one at a time, but when multiple tasks are executed...
|
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 subs and function (some are
shown below). I have a page based on that new class and in my code where a
user clicks on a Save button (saves data to my DB) I want to display an
alert message. I get the error indicated below when I run the page - I...
| |
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 it up as
C:\domains\appA. Locally, my IIS root points to C:\domains. I don't
point it to C:\domains\appA since if I have an appB under C:\domains I
wouldn't be able to get to it. So to access it via my browser I go to
localhost/appA.
|
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 never to send
if-modified-since. But the strange thing is that Opera sends
if-modified-since but when I reply with "HTTP/1.0 304 Not Modified" it
is not refreshing the screen from its cache, it is leaving the screen
blank.
|
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 same query at the CLI.
I am having trouble executing a large query through my PHP script. It
takes about 7-11 seconds on
average to execute, whereas the same query only takes 0.01 seconds to
execute through the CLI.
|
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, we're looking for a way to display
the page with a "please wait..." message while the process is running, and
then, when the process is done, update the page with the actual results/page
content.
We have a page that opens another browser/page...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |