Using libsodium-net for all of its security goodness in an Azure Service Fabric Reliable Service, on my local dev cluster everything is working fine (although I did have to set the libsodium-64.dll to copy to the output directory).
Unfortunately, when deployed to a real cluster in Azure it throws the following error:
Unable to load DLL 'libsodium-64.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
I've checked by Remote Desktop-ing into one of the nodes and the DLL is copied across into the same directory as the service, exactly as it is in my dev cluster. Can't work out why it can't be found in production.
I've tried setting the PATH environment variable as suggested in this answer, and verified that it does actually get set - unfortunately that doesn't help.
Is there anything special I need to do to get ASF to pick up the DLL?
Edit: also tried adding the DLL to System32 on all the nodes, didn't solve it either.