Posted: 4 Aug 2020 0:59 EDT Last activity: 13 Oct 2020 3:22 EDT
Messaging Host did not connect to the sharing service.
My automation gets this error once in a while. But when i check the pega robotics extension, it is currently enabled in chrome. However, this error gets fixed immediately after killing the runtime and restarting it. Can you help how to avoid this error?
It would seem as though the MessagingHost application is not responding. I would suggest opening a support case to get your specific scenario looked at in-person.
If that is not feasible, a possible resolution could be to terminate Chrome on startup before you start your adapter. You can use the static method GetProcessesByName and pass that result to a ListLoop where you extract a proxy from the loop representing each process. This will have a Kill() method you can call (or you can write a C# script to kill a process).
Hello. Our automation is scheduler to run every hour via task scheduler. We have script to terminate chrome, runtime every run. However, pc seems to get slow after hours of running, which i believe causes the messaging host not to work since pc is really slow. Any ideas?
Rather than terminate Runtime and Chrome, why don't you just use the method within Runtime to have it close gracefully? Perhaps that is why something is hanging around. There's also an executable in the installation directory that you can use to close Runtime (ShutdownRuntime.exe).