无法在asp.net应用程序中运行exe文件 [英] cannot run exe files in asp.net application

查看:122
本文介绍了无法在asp.net应用程序中运行exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作了一个asp.net应用程序,并且在我的asp.net应用程序的按钮单击事件上添加了两个(我的Windows应用程序的)exe文件.当我在本地运行时,它运行良好,但是当我托管该网站时,它没有显示exe文件,而是在我的任务管理器中显示了这些exe文件.

I made an asp.net application and two exe files (of my windows application) are added on button click event of my asp.net application. It works fine when i run locally but when i host this website, its not showing me exe files instead these exe files are showing in my task manager.

推荐答案

意味着您正在后面的服务器端代码中运行两个exe文件,并且它在本地可以正常运行,但是在远程托管时会失败,那么是的,这就是我所期望的.

服务器端执行在服务器而不是客户端上运行应用程序.当您在本地托管它时,它似乎可以工作,因为客户端和服务器在同一台计算机上.但是,如果正确托管,它会失败",因为该应用程序正在服务器上运行,而客户端看不到它. Web服务器管理员可能可以-并且可能开始对您发誓...

您无法使应用程序在客户端上运行-这被归类为可能的病毒活动",几乎所有内容都阻止了它!
If you mean that you are running two exe files in the server side code behind and it works fine locally but fails when hosted remotely, then yes, that is what I would expect.

A server side execution runs the application on the server, not the client. It appears to work when you host it locally, because the client and server are on the same machine. But when hosted properly, it "fails" because the application is running at the server, and the client cannot see it. The web server administrator probably can though - and is likely to start swearing at you...

You cannot get applications to run on the client - that is classed as "probable virus activity" and is prevented by just about everything!


这篇关于无法在asp.net应用程序中运行exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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