简体   繁体   中英

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM