title: Deploying and Executing code on a remote machine via Remoting/WCF
body: <p>We're building a C# application that allows loading custom plugin DLLs and executing them.</p>
  
  <p>Each DLL contains some task, and we'd like that task to be transparently executed either locally or on some remote server.</p>
  
  <p>I have examined various solutions for this, and so far the best solution that was proposed was to use WCF.</p>
  
  <p>I'd like to understand, since i'm currently only through basic tutorials of WCF, if it is at all possible to dynamically deploy new code using WCF to be executed remotely?</p>
  
  <p>The way i see it, i have 2 different scenarios:</p>
  
  <ol>
  <li>Remote machine has a base "execution" library deployed.</li>
  <li>Remote machine has no WCF service installed on it currently.</li>
  </ol>
  
  <p>With option #1, i guess i could have some functionality to send across the DLL or something, and execute it remotely, since the execution library knows how to do that already.</p>
  
  <p>With option #2, i would need to basically deploy everything (somehow) from scratch, and then send a command to run it.</p>
  
  <p>Is this scenario possible at all? do you have any tips to perform this kind of task?</p>
  
  <p>Also, if you have any good WCF tutorials (i'm currently reading up on MSDN).</p>
  
  <p>Thanks!</p>