System.IO.FileNotFoundException: Could not load file or assembly 'MimeKit

Imran Jalali 101 Reputation points
2023-06-14T14:06:40.7933333+00:00

Greetings Folks,

I am having problem sending email using the NETCore.MailKit nugget package. I installed the package into my project successfully developed my code to send email. Now the problem is when I published my website. I am getting this runtime error in the windows event viewer.

System.IO.FileNotFoundException: Could not load file or assembly 'MimeKit, Version=3.2.0.0, Culture=neutral, PublicKeyToken=bede1c8a46c66814'. The system cannot find the file specified. File name: 'MimeKit, Version=3.2.0.0, Culture=neutral, PublicKeyToken=bede1c8a46c66814

I crossed check the all related .DLL files, they are all in the folder I cross checked the version it is the same..

I don't know Why the runtime could able to find ? Anybody help me please?

MailKit

Mail

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,779 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.