473,388 Members | 1,177 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,388 software developers and data experts.

Process.start from web service

Dde
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
Nov 23 '05 #1
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

Nov 23 '05 #2
Dde
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

Nov 23 '05 #3
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

Nov 23 '05 #4
Dde
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

Nov 23 '05 #5
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

Nov 23 '05 #6
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

Nov 23 '05 #7

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

Similar topics

1
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...
3
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...
2
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...
2
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...
0
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
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...
0
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...
6
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...
5
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...
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: 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
marktang
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,...
0
Oralloy
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,...
0
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...

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.