Windows Forms Integration for Validation Block not adding ValidationProvider to toolbox

Topics: Validation Application Block
Jul 7, 2014 at 10:04 AM
I've tried dragging/dropping the DLL and loading from the dialog box.

The former just pings, presumably an error, the dialog box gives and error message saying there are no components in the DLL.

ILSpy begs to differ which also means its not a corrupt download.

Anyone else actually have this working?

Cheers, S.
Jul 7, 2014 at 8:47 PM
You need to ensure that both required validation assemblies are in the same directory. If you are using NuGet and adding from the packages directory they will not be together. So either copy them to a common location or you could use the bin\debug (release) folder (after compiling) to add the appropriate assemblies to the toolbox.

To be explicit: Microsoft.Practices.EnterpriseLibrary.Validation.dll needs to be in the same directory as the Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WinForms.dll which is being added to the toolbox.

You can take a look at the Hands-On Labs for Microsoft Enterprise Library 6 which has a lab on Integrating Windows Forms.

Randy Levy
Enterprise Library support engineer
Support How-to
Jul 8, 2014 at 6:58 AM
Ah thanks.

And I got it in the first sentence :) I had this issue with something else 10 years ago. Must be going senile...
Jul 8, 2014 at 7:01 AM
OK, good to hear. Not trying to be patronizing -- just trying to be clear. :)
Jul 8, 2014 at 9:44 AM
I didn't take it negatively - as clear as possible is the way to go :D