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 4797
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.com> wrote in message
news:10**********************@msnews.microsoft.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.com> wrote in message
news:10**********************@msnews.microsoft.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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
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
|
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...
|
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,...
|
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,...
|
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...
| |