title: Running Grapevine REST server in Mono Docker container
body: <p>I´ve built a simple REST server with <a href="https://github.com/sukona/Grapevine" rel="nofollow noreferrer">Grapevine</a> which runs perfectly with windows environment.
  Now I want to run the .exe (with the Grapevine.dll) in an Docker Container with mono.
  My Dockerfile looks like this:</p>
  
  <pre><code>FROM mono:latest
  COPY . /boerse
  RUN output="$(curl http://169.254.169.254/latest/meta-data/public-hostname)"
  CMD [ "mono", "/boerse/Boerse.exe", "$output" ]
  </code></pre>
  
  <p>When the Docker container starts, following error message occurs:</p>
  
  <pre><code>Error: System.TypeLoadException: Could not load type 'Grapevine.Interfaces.Server.HttpListener' from assembly 'Grapevine, Version=4.0.0.195, Culture=neutral, PublicKeyToken=null'.
    at Boerse.BoersenApplication.Main (System.String[] args) [0x0002f] in &lt;407ced228a394aa7b9fc2fa883a239a9&gt;:0
  TypeRef ResolutionScope not yet handled (57) for .ExtendedProtectionSelector in image /boerse/Grapevine.dll
  Could not load signature of Grapevine.Interfaces.Server.HttpListener:get_ExtendedProtectionSelectorDelegate due to: Could not resolve type with token 0100003a assembly: type:ExtendedProtectionSelector member:&lt;none&gt;
  TypeRef ResolutionScope not yet handled (57) for .ExtendedProtectionSelector in image /boerse/Grapevine.dll
  Could not load signature of Grapevine.Interfaces.Server.IHttpListener:get_ExtendedProtectionSelectorDelegate due to: Could not resolve type with token 0100003a assembly: type:ExtendedProtectionSelector member:&lt;none&gt;
  </code></pre>
  
  <p>All the needed DLL´s are copied into the container. 
  Anybody knows how to run Grapevine in a Docker container or what I am doing wrong?</p>