Problem replacing Rebex dlls

0 votes
asked Apr 13, 2013 by Rebex KB (8,330 points)
edited Apr 15, 2013

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
answered Apr 13, 2013 by Tomas Knopp (58,890 points)
edited Apr 13, 2013
 
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.

...