exe没有在C#中运行 [英] exe is not running in c#

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

问题描述

你好,
我在文本文件中制作了一个Web应用程序,然后将其转换为pdf,然后将其转换为图像,我的代码在本地主机上运行良好,但是当我将其上传到主机上时,它正在生成pdf,但是在pdf之后却没有响应.
我认为问题是那条线

Hello,
I made a web application in text file converts in pdf and then it will be convert in an image my code is running good at local host but when i upload it on host it is making pdfs but after pdf it is not responding.
i think problem is that line

Process.Start(Server.MapPath("Bin\\ppmtojpg.exe") , "ppmtojpg.exe");


请帮助解决该问题.


please help for resolve this problem.

推荐答案

这很可能是安全问题.该代码可能已在您的本地计算机上运行,​​因为您是该计算机的管理员.在主机上运行该代码所使用的用户帐户不是.您也不希望在主机服务器上执行此类操作. ASP.NET和IIS在服务器上具有有限权限的安全沙箱中运行,IIS_USR帐户无权启动这样的进程.
It is a most likely a security issue. This code may have worked on your local machine because you are an admin on that machine. The user account under which this code is running on the host is not. Nor would you want anything like this to be executed on a host server. ASP.NET, and IIS, is running within a security sandbox with limited rights on the server, the IIS_USR account doesn''t have the rights to start a process like this.


这篇关于exe没有在C#中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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