-2

Hi i'm creating an application in which i have to call the exe file as a process from mvc.I was able to achieve it but the problem is when multiple request to the exe file comes how to handle it.If the exe file starts executing it may take 1 hour to complete its task.Meanwhile how to handle the other request to the exe?

1 Answers1

0

Check the below two links it should solve your problem. Also you can queue the requests (might require implematation) so that launch the processes in queue later on.

Ensuring only one application instance

How to run one instance of a c# WinForm application?

Community
  • 1
  • 1
The Shooter
  • 733
  • 3
  • 9
  • My problem is i have use the exe process between multiple request simultaneously. – Andrew Rayan Jul 22 '16 at 03:39
  • Every web request would be processed seperately and thus the exe will be launched for every web request. Unless the exe accesses some resource which it will lock there shouldn't be any problem. – The Shooter Jul 22 '16 at 05:51