System.diagnostics.process.start()在IIS中不起作用 [英] System.diagnostics.process.start() not working in iis

查看:469
本文介绍了System.diagnostics.process.start()在IIS中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在Windows2003服务器上的iis6.0中部署了ASP.Net(Framework4). 应用程序中的所有内容都可以正常运行,但以下各项除外:

Hi,
I deployed ASP.Net ( Framework4) in iis6.0 on Windows2003 server.
Every thing in application is working fine except the following:

System.diagnostics.process.start("explorer.exe","D:\path")


在我的本地系统中,它工作正常.
但是部署后,它在iis中不起作用
你能建议我如何解决这个问题吗?

谢谢,
Thirupathi Reddy


In my local system it was working fine.
but after deployment it is not working in iis
Can you please suggest me how to solve this problem?

Thanks,
Thirupathi Reddy

推荐答案

由于IIS作为服务运行,因此您无法运行具有接口的应用程序.为什么要确保尝试从网站运行资源管理器?
Since IIS is running as a service, you can''t run an application that has an interface. Why ware you trying to run Explorer from a web site?


您确定要从Web服务器应用程序启动应用程序吗?
正如我最近所说,关于相似的东西 [ ^ ]:

  • 不要这样做!
  • 甚至都不要考虑这样做!
You are sure that you want to start an application from a web server application?
As I have said recently about something similar[^]:

  • Don''t do it!
  • Don''t even think about doing it!

  1. 使用打开的资源管理器窗口,Web应用程序需要什么?
  2. 如果服务器上没有人登录怎么办?
  3. 您要运行具有所有访问权限的应用程序吗?这项壮举所需的权利?

  1. What would the web application want with an open explorer window?
  2. What if nobody was logged on at the server?
  3. Would you want to run the application with all the access rights needed for such a feat?



最好的问候,

-MRB



Best Regards,

-MRB


这篇关于System.diagnostics.process.start()在IIS中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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