I built a C# script that uses ClientAutomationTools on a dedicated server to generate pages in a repository. Everything is running with perfect stability so far, except it is very slow due to the sheer size of some of the documents and that it has to handle one document at a time. I attempted to run two instances of my application at the same time on different folders, which worked at first, but ran into issues where after a certain point every attempt to generate pages on a document errored out.
The error in question: "The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)"
The resources on the server this is running from are barely being utilized, but it doesn't appear that we can take advantage of that by running this page generation in a multithreaded approach. Is there any way that we can handle more than one document simultaneously with this programmatic approach other than involving more than one machine?