470,568 Members | 1,535 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,568 developers. It's quick & easy.

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 4673
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by hangten | last post: by
2 posts views Thread by brian.gabriel | last post: by
6 posts views Thread by uuyytt | last post: by
1 post views Thread by livre | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.