I developed a simple F# Suave application hosted in a console, using VS Code.
Target framework is core 2.0 and runs fine locally. The code is built and packaged (with references to System.Runtime 4.3.0
) by VSTS and then deployed to an Azure App Service.
When I call the website it will eventually time out with HTTP 500, meanwhile suave*.log
are written with the exception:
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Does this mean some package still references 4.2.0.0? Is Azure in the wrong?
I solved the error by creating and Self-contained deployment (https://learn.microsoft.com/en-us/dotnet/core/deploying/) although I'm not convinced this the preferable solution.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With