Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have WCF service which launches the remote process from Process.Start successfully on stand alone machine where this WCF service is hosted/deployed and developed.

I deployed this as whole service on another machine, and run the service on that machine as well, execute the service on the same code area which launches the process remotely, here it failed, Strange behavior.

I checked the process state stand alone , and launched the process normally, it executed fine and shown the message box inside that process which was written there.

BUT when this process launched via WCF call from code, process didn't launched in interactive manner, Task Manager shown the launched process, but its console not shown, nor any message box shown . ANY IDEA ? or WAY AROUND?

Note : This behavior is observed when WCF service deployed completely with all binaries on another machine.


Regards
Usman
Posted

Put a try/catch block around the wcf code that launches the app, and have the wcf service method return the exception that's occurring.

I think that's the only way you're going to find out what's going on.

You can also check the system logs on the server in question, but I doubt that's going to be helpful.
 
Share this answer
 
It's not strange at all if you think about it. It would be a HUGE security risk to be able to launch an interactive process remotely. So, Windows does not allow you to do that. It's that simple.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900