title: Running a REST server within Unity3d
body: <p>I'm trying to build a REST server within a Unity project and thought initially that Nancy seemed like the obvious choice. Many headaches later however and I'm still having trouble getting Nancy to run within the Unity Mono runtime - I can compile and run from Xamarin but Unity gives me rather unhelpful output whne I attempt to use the asset:</p>
  
  <pre><code>Internal compiler error. See the console log for more information. output was:
  Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
    at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
    at System.Reflection.Assembly.GetTypes () [0x00000] in &lt;filename unknown&gt;:0 
    at Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly, System.Type extensionType) [0x00000] in &lt;filename unknown&gt;:0 
    at Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in &lt;filename unknown&gt;:0 
    at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) [0x00000] in &lt;filename unknown&gt;:0 
    at Mono.CSharp.Driver.LoadReferences () [0x00000] in &lt;filename unknown&gt;:0 
    at Mono.CSharp.Driver.Compile () [0x00000] in &lt;filename unknown&gt;:0 
    at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in &lt;filename unknown&gt;:0 
  </code></pre>
  
  <p>I can't be the only person who has tried something like this, and am looking to use this across several projects, so having something re-usable is of high priority - has anyone successfully implemented anything like this, and if so can you give me any pointers?</p>
  
  <p>I'd really like to get Nancy working, but another way of easily embedding a REST server would be just as valuable.</p>