WCF versioned 'validation behaviorExtension'

Topics: General discussion, Validation Application Block
Sep 20, 2011 at 7:30 PM
 <extensions>
      <!-- wcf extensions: http://blogs.msdn.com/b/carlosfigueira/archive/2011/06/28/wcf-extensibility-behavior-configuration-extensions.aspx -->
      <behaviorExtensions>
        <!-- wcf extension bug: http://connect.microsoft.com/wcf/feedback/details/216431/wcf-fails-to-find-custom-behaviorextensionelement-if-type-attribute-doesnt-match-exactly-->
        <add name="validation"
                   type="Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WCF.ValidationElement, Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WCF"/> <!-- Version=5.0.505.0, Culture=neutral, PublicKeyToken=null" />-->
      </behaviorExtensions>
    </extensions>
I'm having a hard time including the version of the entlib to use... What am I missing ?
Sep 21, 2011 at 4:16 AM

Hi,

Try to also supply a value for the public key token and see if this works?

 

Noel Angelo Bolasoc
Avanade Software
Avanade, Inc.
Contact Us

 

 

Sep 21, 2011 at 3:48 PM

Thanks.

sn.exe -T "C:\Program Files (x86)\Microsoft Enterprise Library 5.0\Bin\Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WCF.dll"

 

Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WCF.ValidationElement, Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WCF, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35