[Solved] ValidationCallHandler and Tag attribute

Topics: Policy Injection Application Block, Validation Application Block
Feb 13, 2009 at 10:11 AM

I'm using Policy Injection Application Block and Validation Application Block. Unfurtunately it seems like I can't use ValidationCallHandler and Tag Attribute Matching Rule. The attribute Tag simple doesn't exists (I have referenced Policy Injection and Validation Application Block) and the ValidationCallHandler says:
icrosoft.Practices.EnterpriseLibrary.PolicyInjection.CallHandlers.ValidationCallHandler is not an attribute class

Here is a code snippet:
    public partial interface IMunicipalityRepository
        void InsertMunicipality(Municipality municipality);


The object is created with PolicyInjection:
this.MunicipalityRepository = PolicyInjection.Create<MunicipalityRepository, IMunicipalityRepository>(Connections.NSTARConnection);
I use Enterprise Library 4.1.

I don't understand what is going on, am I missing something?
Feb 13, 2009 at 10:37 AM
Edited Feb 13, 2009 at 10:46 AM

The TagAttribute in Entlib 4.1 is now in, Microsoft.Practices.Unity.InterceptionExtension namespace, Just add a reference to the Microsoft.Practices.Unity.Interception.dll. Also add reference to the Microsoft.Practices.EnterpriseLibrary.PolicyInjection.CallHandlers.dll.

Valiant Dudan
Global Technology and Solutions
Avanade, Inc.
Feb 13, 2009 at 11:57 AM
Thanks! Now it works perfectly :)