Hi,
I am having a problem starting a process from within a web service. My code
works in a console program but not from the web service. Looks like the
process starts, I can see it in Taskmanager, but I connot see the window!
Any help appreciated.
Thanks
Dominique 6 4823
Dde wrote: I am having a problem starting a process from within a web service. My code works in a console program but not from the web service. Looks like the process starts, I can see it in Taskmanager, but I connot see the window!
I'm assuming you're hosting your web service in IIS...? IIS runs as a service
process which does not interact with the same windows station as the logged
on user. You cannot start a process from IIS and expect it to show up on
the logged in desktop. Can it be done? Yes, but there's security considerations
and overall design considerations to doing it. Maybe if you could tell us
a little more about what you're trying to achieve we can suggest some alternate
solutions.
HTH,
Dre
Hi,
thanks for you answer.
Actually my web service interacts with an Oracle Database, then it starts a
proprietary application wich makes some treatment on the new records, and I
would like this application to log performed oprerations in a window on the
system console. I know we could log them to a text file or whatever, but the
console window is a requirement.
Thanks,
Dominique
"Drew Marsh" <dr****@hotmail .no.spamming.co m> wrote in message
news:10******** **************@ msnews.microsof t.com... Dde wrote:
I am having a problem starting a process from within a web service. My code works in a console program but not from the web service. Looks like the process starts, I can see it in Taskmanager, but I connot see the window! I'm assuming you're hosting your web service in IIS...? IIS runs as a
service process which does not interact with the same windows station as the
logged on user. You cannot start a process from IIS and expect it to show up on the logged in desktop. Can it be done? Yes, but there's security
considerations and overall design considerations to doing it. Maybe if you could tell us a little more about what you're trying to achieve we can suggest some
alternate solutions.
HTH, Drew
Dde wrote: thanks for you answer. Actually my web service interacts with an Oracle Database, then it starts a proprietary application wich makes some treatment on the new records, and I would like this application to log performed oprerations in a window on the system console. I know we could log them to a text file or whatever, but the console window is a requirement.
Well why not log them somewhere (like a table in a DB) and then just have
a separate application that reads the log? Then a separate application can
be started by the logged on user and access the logged data. This opens a
lot more scenarios beyond real time logging to the screen too.
Just some thoughts,
Dre
Totaly agree. It is what I implemented in the meantime.
thanks again.
Dominique
"Drew Marsh" <dr****@hotmail .no.spamming.co m> wrote in message
news:10******** **************@ msnews.microsof t.com... Dde wrote:
thanks for you answer. Actually my web service interacts with an Oracle Database, then it starts a proprietary application wich makes some treatment on the new records, and I would like this application to log performed oprerations in a window on the system console. I know we could log them to a text file or whatever, but the console window is a requirement.
Well why not log them somewhere (like a table in a DB) and then just have a separate application that reads the log? Then a separate application can be started by the logged on user and access the logged data. This opens a lot more scenarios beyond real time logging to the screen too.
Just some thoughts, Drew
Drew,
I'm interested in the details on how you would have the IIS process show up
on the logged in desktop.
I am invoking an EXE with process.start() and require the standard output for
application processing.
"Drew Marsh" wrote: Dde wrote:
I am having a problem starting a process from within a web service. My code works in a console program but not from the web service. Looks like the process starts, I can see it in Taskmanager, but I connot see the window!
I'm assuming you're hosting your web service in IIS...? IIS runs as a service process which does not interact with the same windows station as the logged on user. You cannot start a process from IIS and expect it to show up on the logged in desktop. Can it be done? Yes, but there's security considerations and overall design considerations to doing it. Maybe if you could tell us a little more about what you're trying to achieve we can suggest some alternate solutions.
HTH, Drew
Drew,
I am interested in having the windows station available to the calling
program.
I invoke a EXE from a web service and require the standard output.
thanks,
Garry
"Drew Marsh" wrote: Dde wrote:
I am having a problem starting a process from within a web service. My code works in a console program but not from the web service. Looks like the process starts, I can see it in Taskmanager, but I connot see the window!
I'm assuming you're hosting your web service in IIS...? IIS runs as a service process which does not interact with the same windows station as the logged on user. You cannot start a process from IIS and expect it to show up on the logged in desktop. Can it be done? Yes, but there's security considerations and overall design considerations to doing it. Maybe if you could tell us a little more about what you're trying to achieve we can suggest some alternate solutions.
HTH, Drew
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Doug Wyatt |
last post by:
So I'll preface this with the fact that I'm a UNIX developer by training and
have just recently gotten in to C# development on Windows. I'm basically
running in to a problem whereby I suspect something to do with process
groups or threads and closeOnExec semantics (to speak in POSIX terms) is
causing me a problem. I've got a windows service (let's call it
"myService") that, among other things, does :
onStart
creates a TcpListener on a...
|
by: hangten |
last post by:
Does anyone know of an alternate command to invoke an executable other
than Process.Start ? I have a service that invokes an executabe. But
the service has minimal privs. and I'm getting an access denied error
when I run the command Process.Start(executable). It works fine when the
service has admin privs. but this can't be the case.. I need a command
that doesn't need admin. privs.
Thanks.
Carol
|
by: Tobias Johansson |
last post by:
Hello,
I'm having what I believe a security problem
to execute an executable file from a windows service
in windows server 2003.
It works fine in WIN XP SP2
The program(the service) itself just continues as if nothing where wrong
after process.Start is executed and I get an Exit code from the process
|
by: brian.gabriel |
last post by:
I am trying to kick of a DOS program from a VB.Net service. The
program works fine when called from a batch file, and from a Windows
form, but it has problems when called from a service. The program runs
successfully but does not give control back to the service.
After the Process.Start statement no code will execute. The program
has exited and is not shown in process monitor. I am running the
service under an admin account.
See...
|
by: Kirk |
last post by:
The following C# web service works fine until you uncomment the lines
setting UserName and Password. Then, Process.Start throws an
Access is Denied Exception. This is with .NET 2.0, of
course (1.1 does not support running a process as a different user).
I'm running everything on Windows Server 2003. I have impersonation
enabled
in my web.config, and I'm using Integrated authentication on the IIS
virtual
directory that this aspx is in....
| |
by: Daniel |
last post by:
what permissions does a windows service need to execute another process?
System.Diagnostics.Process process = System.Diagnostics.Process.Start(info);
just local administrator? any specific permitions?
|
by: Daniel |
last post by:
C# windows service freezes on System.Diagnostics.Process.Start(info)
When I launch PSCP from a C# windows service and launch pscp 0.53 there are
no issues. but when I use C# windows service to launch pscp 0.58 C# freezes
in System.Diagnostics.Process.Start(info)? pscp 0.58 works fine at command
line, but causes C# to freeze on ystem.Diagnostics.Process.Start(info) also
i noticed that the pscp process does not show in taske manager while...
|
by: uuyytt |
last post by:
I have a Windows service from which I want to start Internet Explorer with a
particular URL as an argument. I don't know why my code (shown below)
doesn't work. I know that IExplore.exe starts as I can see it in my task
manager, but it is not visible. Can anyone explain what is happening?
My code:
Process p = Process.Start("IExplore.exe", m_strURL);
|
by: Reddy |
last post by:
I am running process.sart to run gpg.exe to encrypt files. It's working fine
with console application. When i use same code in windows service. It's not
working. It's not even throwing error.Follwoing is the code i am using.
Please somebody help me.
Process p = new Process();
p.StartInfo.WorkingDirectory = Path;
p.StartInfo.FileName = fileName;
p.StartInfo.Arguments =arguments;
p.Start();
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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: 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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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...
| |