Process.Start()未启动... [英] Process.Start() not started...

查看:114
本文介绍了Process.Start()未启动...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的asp.net应用程序中,我正在使用System.Diagnostic中的类 Process . 例如:客户端单击网页后,在服务器端启动方法

In my asp.net application i am using class Process from System.Diagnostic...
For example: After client click on web page, on server side starting method

Process.Start("applic.exe", arg);

,但applic.exe尚未启动:(
我尝试使用 arg 从命令行(cmd)启动它...一切正常...
IUSR_COMP帐户或w3wp进程的安全性可能有问题吗?

感谢您的建议...

, but applic.exe NOT YET Starting :(
I trying start it from command-line (cmd) with arg... all working fine...
May be problem with security with IUSR_COMP account or w3wp process ?

Thanks for advice...

推荐答案

您是否尝试过将完整路径传递给exe?

Process.Start是否抛出异常?如果是,那是什么?

如果是权限问题,请尝试在exe上设置权限,或使用带有域,用户名和密码的重载.

Nick
Have you tried passing the full path to your exe?

Is Process.Start throwing an exception? If so, what is it?

If it is a permissions problem, try setting the permissions on the exe, or using the overload that takes a domain, username and password.

Nick


您是否曾经在单击网页后检查服务器的任务管理器以查看该过程是否已开始;)?希望您可以从以下链接中找到解决方案.

http://support.microsoft.com/kb/555134
Have you ever checked your server''s task manager after clicking your web page to see whether or not the process have started ;) ? I hope you will find your solution from the following link.

http://support.microsoft.com/kb/555134



1)我尝试.exe的完整路径-找到文件...
2)我尝试引发异常...什么都没发生
3)exe文件放置在所有用户的共享文件夹中. 4)我尝试重载用户名,密码和域...什么都没发生

谢谢尼克...

P.S.我尝试将其启动并实际加载到内存中,并且当前正在运行该文件,但是我需要在运行时从命令行执行命令...
Yes
1) I try full path to .exe - file is found...
2) I try throwing exception... nothing happend
3) exe file placed in shared folder for all users..
4) I try overloaded with username, pass, and domain... nothing happend

Thanks Nick...

P.S. This file, which I try to start actually loaded into memory and is currently working, but I need that when run it executes the commands from the command line...


这篇关于Process.Start()未启动...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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