Sunday, 15 February 2015

c# - Process does not start on server -



c# - Process does not start on server -

i have in controller method called print starts print process on local machine. works fine.

however, when set code pc (my server) process not start. within of controller , gets returned. don't 500 error message. method returns 200/ok.

why process not beingness started? (all paths , permissions corrected)

[httppost] public actionresult print(string guid) { system.diagnostics.process proc = new system.diagnostics.process(); proc.startinfo.windowstyle = processwindowstyle.hidden; proc.startinfo.filename = configurationmanager.appsettings["batpath"]; proc.startinfo.useshellexecute = false; proc.start(); response.write(proc.sessionid); proc.waitforexit(); homecoming new jsonresult(); }

i glad if tell me how maybe debug code. (i don't have visual studio on serv. pc)

p.s. also, want add together process not start in background(different display) - can't see in task manager.

c# process

No comments:

Post a Comment