0 votes
by (8.4k points)

I want to switch to a newer version of Rebex dll's in my project. When I drop the components in place I am getting following error:

System.IO.FileLoadException: Could not load file or assembly 'Rebex.Common, Version=2.0.4700.0, Culture=neutral, PublicKeyToken=1c4638788972655d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Rebex.Common, Version=2.0.4700.0, Culture=neutral, PublicKeyToken=1c4638788972655d'
   at Rebex.Mail.MailMessage..ctor()

What am I doing wrong?

1 Answer

0 votes
by (58.9k points)
Best answer

You have to remove all Rebex assemblies from the project, reference all assemblies from the newer version you downloaded and recompile whole project.

The exception says the project is trying to load 'Rebex.Common, Version=2.0.4700.0' which is the old version. It means you are still referencing old version assemblies somewhere.