如何从ASP.Net Web应用程序调用远程服务器.EXE? [英] How to call a remote server .EXE from an ASP.Net web application?

查看:140
本文介绍了如何从ASP.Net Web应用程序调用远程服务器.EXE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个网络应用程序。此应用程序从用户收集一些信息,并且需要将详细信息传递给.EXE。它处理参数并将输出作为文本文件提供。

I have a web application. This application collects some information from the user and the details needs to be passed to a .EXE. It processes the parameters and gives the output as a text file.

.EXE托管在另一台服务器(Application Server)中。我需要使用Web服务器中的一组参数调用.EXE。有没有办法通过Web服务调用此.EXE?如果是,如何使用Web服务中的参数调用.EXE?

The .EXE is hosted in another server (Application Server). I need to call the .EXE with the a set of parameters from the Web Server. Is there any way to call this .EXE through an web service? If yes how to call the .EXE with parameters within the web service?

谢谢。

 

推荐答案

使用System.Diagnostics.Process创建一个Web服务(ASMX)来调用该exe,将它放在exe所在的位置  ;并从您的申请中调用该方法。

Create a Web Service (ASMX) using System.Diagnostics.Process to call that exe, place it where the exe reside and call that method from your application.

谢谢


这篇关于如何从ASP.Net Web应用程序调用远程服务器.EXE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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