1

I´ve built a simple REST server with Grapevine 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:

FROM mono:latest
COPY . /boerse
RUN output="$(curl http://169.254.169.254/latest/meta-data/public-hostname)"
CMD [ "mono", "/boerse/Boerse.exe", "$output" ]

When the Docker container starts, following error message occurs:

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 <407ced228a394aa7b9fc2fa883a239a9>: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:<none>
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:<none>

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?

Strizzi
  • 59
  • 9
  • 1
    It looks like you are running into the same problem as [this question here](http://stackoverflow.com/questions/41087072/cannot-load-type-httplistener-in-simple-grapevine-server-example). I'm working on a fix for it, but it will be January before it gets released. – Scott Offen Dec 21 '16 at 21:20
  • I've logged an issue for this [here](https://github.com/sukona/Grapevine/issues/157) – Scott Offen Dec 22 '16 at 01:52
  • Please try this again using the latest version (4.1.0-alpha0) and let me know if that resolves the issue. – Scott Offen Mar 27 '17 at 17:07

0 Answers0