Click here to Skip to main content
15,901,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

We have an ASP.Net application from where we are starting a process (Process A). The standard process communicates with another application (Process B). Process B start by Process A. All are running in the same machine .Net framework 3.5 IIS 7, Process A & B are not .Net applications.

All these working fine when run it from VS IDE’s on a local server. By that time, the process A, process B running as the local user account. But when publish the project in IIS, the process A started as “System” and then can’t communicate with process B and gives errors. We have tried giving all permission to the folders where the exe files resides.

We have edited the process model in the machine config with username of the local user. We have tried impersonating the local user which works external to IIS still no go. Any help is appreciated.
Posted
Updated 26-May-11 2:02am
v2

1 solution

The reason why impersonation didn't work is because you impersonated a local user account but that is not a system account.

"Change the account that the Aspnet_wp.exe process runs under to the System account in the <processmodel> configuration section of the Machine.config file."
http://support.microsoft.com/kb/306158[^]

You could also consider socket based IPC for example. If you cannot change process A and B itself you could create an adapter or wrapper process that is executed as "System". You'll get: .NET application --(IPC:Socket)-> adapter process --(IPC:?)-> Process A

Good luck!
 
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