Validation Framework v5 and SmartClient factory not mixing

Topics: Validation Application Block
Sep 18, 2010 at 1:36 AM

Environment: .NET 4 WinForms application referencing libraries from VS2010 + WinForms + Validation v5 + SCSF...

Get the following message when I attempt to run Ent. Lib. validation using attributes and the ValidationProvider along with WinForms data binding and the ErrorProvider:

Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Sep 18, 2010 at 2:06 AM

Resolved by overwriting all of the Ent. Lib 5.0 assemblies that SCSF includes. I can now use both as expected, though I am certain there would be more issues since it looks like SCSF was not compiled with the signed version of Ent. Lib. Ah well... fix them when I get to them...