0 votes

I can get the samples provided in the trial to connect to my company's mail server and can read the emails in the Inbox.

When I reference the same dll in the ASP.NET MVC server side, it compiles without any errors.

However when the serverside method is called it gives the following error:

Could not load file or assembly 'Mail, Version=3.0.14139.1153, Culture=neutral, PublicKeyToken=6dc438ab78a525b3' or one of its dependencies. The system cannot find the file specified.

by

1 Answer

0 votes
 
Best answer

Have you remembered to deploy Mail.dll assembly to your web server?

It must be copied to the bin folder of your ASP.NET application.

by (297k points)
...