开发者

Process.Start(object) not working

I am developing one application which creates PDF. I am using Process开发者_开发知识库.Start(startInfo) to create PDF. Now when I run this application locally, it is working fine and creates PDF but when I deploy it on Development server it is not creating PDF.

I made it very simple to Process.Start("IExplore.exe"), however still it not working on Development server.

Please let me know if any other thing that I have to do it so start working?


You're probably having this issue because on your local machine you're running under your account, which has permissions to run the executable. When deployed to the dev server, it's probably running under the NETWORK SERVICE account, which probably doesn't have permissions to run the executable. You need to look into using impersonation.

I gave a detailed answer on this here:

Invoke or call C# console app from C# web service?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜