-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
  • What about calling the exe asynchronously? Commented Jul 30, 2016 at 15:45

1 Answer 1

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?

Sign up to request clarification or add additional context in comments.

2 Comments

My problem is i have use the exe process between multiple request simultaneously.
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.