Calling same window service simultaneously at run time

Posted by ashsep18-21378 under Visual Studio on 4/9/2013 | Points: 10 | Views : 1651 | Status : [Member] | Replies : 2
Hi All,

The tool that I am working creates an MPP using window service. The window service to create an MPP will be called through the main application code and an MPP will be generated successfully. But if two or more people try to generate the MPP at the same time, the application throws error that Service is used by another.

I have read in few places that it is a restriction of windows and multiple window services cannot run simultaneously. We have also tried using multithreading approach, but is of no use.

Kindly any one let me know is there an alternate approach for this problem.How to run multiple window services simultaneously.

Ashwini


Responses

Posted by: Jitendrasoft09 on: 4/10/2013 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi,
Plz refer below link that would be helpful.
http://stackoverflow.com/questions/556801/how-do-i-start-multiple-windows-services-at-once-with-one-command.

Jitendra Kumar
If my post helps you, plz mark as an answer.

ashsep18-21378, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: ashsep18-21378 on: 4/18/2013 [Member] Starter | Points: 25

Up
0
Down
Hi,

Thanks for the reply.
I did refer to the link. But I do not want to use either a batch file or a DOS command to make the service run. In our application, we call the window service from the application code through a VB.Net code.
When users are interacting with the application, only the first user will be able to create the MPP successfully. If any other user tries to generate at the same time, error would be thrown and this is because multiple window services cannot be run.


Ashwini

ashsep18-21378, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response