如何从ASP.NET应用程序中运行控制台应用程序? [英] How to run Console Application from a ASP.NET Application?

查看:122
本文介绍了如何从ASP.NET应用程序中运行控制台应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能运行ASP.NET应用程序控制台应用程序(.EXE)。

How can I run a console application (.EXE) from ASP.NET Application.

这两个ASP.NET应用程序和放大器;控制台应用程序在同一台服务器上,并在同一目录中,但在不同的文件夹中。

Both ASP.NET Application & Console application are on the same server and in the same directory but in different folders.

ASP.NET应用程序在IIS服务器托管

ASP.NET Application is hosted in IIS Server

我怎样才能从我的asp.net web应用程序运行控制台应用程序?

How can I run the console application from my asp.net web application ?

对不起,问以不正当的方式的问题,现在我已经更新了它按我的确切需求。

Sorry for asking the question in an improper way, now I have updated it as per my exact need.

推荐答案

我的第一个猜测是,由于远程机器拒绝连接这可能是一个防火墙问题。如果code是同一台服务器要运行可执行文件,为什么你输入一个IP地址上运行?请尝试更改IP为 127.0.0.1 LOCALHOST ,看看你得到同样的错误。

My first guess is that it might be a firewall issue since the remote machine is refusing the connection. If the code is running on the same server as the executable you want to run, why are you entering an IP address? Try changing the IP to 127.0.0.1 or LOCALHOST and see if you get the same error.

这篇关于如何从ASP.NET应用程序中运行控制台应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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