system.diagnostics.process.start在iis中不起作用 [英] system.diagnostics.process.start not working in iis

查看:68
本文介绍了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.


Actually i want to open one folder on button click,
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运行在与开发计算机上运行的Web服务器不同的桌面上.

该代码将仅在服务器而非客户端上启动资源管理器窗口.该窗口将在没有用户看到的不可见桌面上.
It won''t work at all. IIS runs under a different desktop than the web server you were running on your dev machine.

That code will only launch an explorer window on the server, not the client. That window will be on an invisible desktop that no user will ever see.


System.diagnostics.process,通常在发布后无法使用.
System.diagnostics.process , Generally it is not worked after publish.


您要问多少次相同的问题?这至少是第三次.

IIS作为WINDOWS服务运行.您无法通过WINDOWS服务中的GUI运行应用程序.时期.结束.

这是我第二次告诉你.
How many times are uyou going to ask the same question? This makes at LEAST the third time.

IIS RUNS AS A WINDOWS SERVICE. YOU CAN''T RUN AN APPLICATION WITH A GUI FROM A WINDOWS SERVICE. PERIOD. THE END.

This is the SECOND time I''ve told you this.


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

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