* Introduction to the Issue
I am using a software that uses the .Net framework to perform some tasks.
We are trying to use the Mailkit.dll file but when using it we are faced with the message:
Internal : Could not execute code stage because exception thrown by code stage: Could not load file or assembly 'System.Memory, Version=4.0.1.2, 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)
and from what I have concluded so far the Mailkit.dll depends on Mimekit.dll that depends on System.memory.dll, something like that.
Mailkit.dll > Mimekit.dll > System.Memory.dll
Version details:
- .Net framework installed on machine: 4.7.3190
- .Net framework used by application: 4.7
- Mailkit.dll version: 3.4.1
- Mimekit.dll Version: 3.4.1
- System.Memory.dll in application folder Version:4.6.28619.01
I don't Know what's the issue or why this is happening but I am pretty sure it has to do with version issue so any help is welcomed.