ProjectServiceExtention Stop() Status

ProjectServiceExtention Stop() Status

Hi,

I have created add-in, and try to execute him few times, after pressing button. For first one click, he executs, but for second on he is not starting. When I open window "Manage Service Engine services", against of add-in his status as "Started" (but in fact he executed completly Strart() method). I have tried to use Stop() method in last line of Start() method, but this does not help. I guess, that is becouse status of that add-in is as "Started". Cos when I stop him manualy from window "Manage ...", and start him again from button, add-in normaly executes.

So, do I need/can to change that status in my last line of Start() method? Or are any other causes?


This is a migrated post! Originally posted on 20.10.2021 by user Oleksandr. Please be aware that information can be outdated.