无法从服务器运行exe [英] Can not run exe from server

查看:237
本文介绍了无法从服务器运行exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我有一个将covnert .up2音频文件转换为.wav文件的exe文件.我已经使用process.start()完成了一些代码.在本地工作正常.但是,当我从iis从它运行它时,它不运行exe文件.我不知道为什么会这样.

请帮帮我.

我在Windows 7中的操作系统

Hi!

I am having an exe file which covnert .up2 audio file to .wav file. I have done some code for it using process.start(). It is working fine in local. But when I run it from it from iis, It do not run the exe file. I don''t know why this is happening.

Please help me .

My OS in windows 7

推荐答案

引用:

当您要运行时IIS中的exe文件,您需要在Web服务器中提供完整权限.然后它就会运行.

When you are going to run the exe from IIS you need to provide the full permission in your webserver. then only it will run.


如果您具有完全权限,请在运行时在iis中检查exe文件路径并尝试捕获异常.这可以解决您的问题.
If you have full permission then check your exe filepath in iis at runtime and try to catch exception.This may solve your problem.


ASP.NET网页和服务器控制代码在Web服务器上的ASP.NET工作进程的上下文中执行.如果在ASP.NET网页或服务器控件中使用Start方法,则新进程将在具有受限权限的Web服务器上执行.该过程不会在与客户端浏览器相同的上下文中启动,并且无法访问用户桌面. http://msdn.microsoft.com/en-us/library/0w4h05yb.aspx -

授予ASP.NET工作进程帐户的权限
与桌面交互或允许ASP.NET辅助进程在SYSTEM帐户中运行.

•要了解如何允许工作进程在SYSTEM帐户中运行并知道ASPNET帐户的默认权限,请查看本文信息:ASP.NET中的进程和请求标识": •d.停止并重新启动IIS Admin Service.
ASP.NET Web page and server control code executes in the context of the ASP.NET worker process on the Web server. If you use the Start method in an ASP.NET Web page or server control, the new process executes on the Web server with restricted permissions. The process does not start in the same context as the client browser, and does not have access to the user desktop. http://msdn.microsoft.com/en-us/library/0w4h05yb.aspx-

Give permission for ASP.NET worker process account
to interact with desktop or allow ASP.NET worker process to run in SYSTEM account.

•To know how to allow worker process to run in SYSTEM account and to know the default permissions of ASPNET account, check this article INFO: Process and Request Identity in ASP.NET: http://support.microsoft.com/default.aspx?scid=kb;en-us;317012

- Enable IIS Admin Service to interact with desktop
To configure this, follow this steps.

•a. Open Control Panel and follow these steps: For Windows NT: click Services. For Windows 2000, Windows XP, and .NET Server: click Administrative Tools, and then click Services.

•b. Double-click IIS Admin Service.

•c. On the Log On tab, select the Allow Service to Interact with Desktop check box. Remember to run IIS Admin Service as a local system.
•d. Stop and restart the IIS Admin Service.


这篇关于无法从服务器运行exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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