So I'm doing a project where I use a sql-server container and my own container with my api. I user docker-compose to run those at the same time and specify the ports etc. This works fine on my local machine and on the local machines of my team mates. This also works on VM's that we run on our local machine.
But now when trying to deploy our api to google-cloud we run in several errors. We think that the easiest way to deploy is on a VM instance and user docker-compose build and docker-compose run. Docker-compose workss but we get the error down below.
System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=220.127.116.11, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. The located assembly's manifest definition does not match the assembly reference. (0x80131040) File name: 'Newtonsoft.Json, Version=18.104.22.168, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
In our .csproj file the version is declared as 3.0.0 and when we change it to 12.0.0 or 22.214.171.124 the docker-compose build won't even run. So docker-compose works.
Any ideas on what the problem is? Keep in mind I'm still a newbie in deploying to google.
User contributions licensed under CC BY-SA 3.0