Using MailKit in a ASP.Net Web API backend to send out emails from the server. Using MailKit and MimeKit 3.6.0 (latest version).
I can get it working just fine in my dev environment (VS 2019 Pro). However, when I 'publish' the API to a dev server, I get the following message:
Could not load file or assembly 'System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
The references in the app to System.Buffers are to 4.0.3.0, which is what is published to the web server. I can find no reference anywhere to 4.0.2.0. Any ideas where to look next? Is there an explicit reference (possibly) in MailKit or one of its dependencies to a specific version of System.Buffers?