I'm executing orchard.exe with a @repsonse-file parameter, so that orchard executes a script of commands, all the commands are identical, because I'm working around my inability to do longrunning commands with custom transaction management.
After 5 mins of running, about 10 commands have run, an Error is raised:
Error:
Object '/82fcec8d_d87a_478f_bbd5_a093fcb80c59/6bug3evr+ebltq+tvlxjsg+t_22.rem' has been disconnected or does not exist at the server.
I've looked for it and found:
http://blogs.microsoft.co.il/blogs/sasha/archive/2008/07/19/appdomains-and-remoting-life-time-service.aspx
This was too complex for me, specifically because I don't have log files. The log files in App_Data only have logs from the web application, and I couldn't find out how to log to a different file based on the fact that code is running in the CommandHost.