ASP.Net与外部进程的通信 [英] ASP.Net communication with an external process

查看:111
本文介绍了ASP.Net与外部进程的通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我们从那里开始一个过程(过程A)的ASP.Net应用程序.标准过程与另一个应用程序通信(过程B).进程B从进程A开始.所有进程都在同一台计算机上运行.Net framework 3.5 IIS 7,进程A和B不是.Net应用程序.

从本地服务器上的VS IDE运行这些文件时,所有这些工作正常.到那时,进程A,进程B作为本地用户帐户运行.但是,当在IIS中发布项目时,进程A最初是系统",然后无法与进程B通讯并出现错误.我们尝试将所有权限授予exe文件所在的文件夹.

我们已经使用本地用户的用户名在计算机配置中编辑了流程模型.我们已经尝试模拟本地用户,该本地用户在IIS外部仍然无法使用.感谢您的帮助.

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.

推荐答案

模拟无效的原因是因为您模拟了本地用户帐户,但不是系统帐户.

将运行Aspnet_wp.exe进程的帐户更改为Machine.config文件的< processmodel>配置部分中的系统帐户."
http://support.microsoft.com/kb/306158 [
祝你好运!
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!


这篇关于ASP.Net与外部进程的通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆