Impossible de charger le fichier ou l'assembly " Microsoft.Les pratiques.EnterpriseLibrary.ExceptionHandling

J'obtiens cette erreur ci-dessous lorsque j'ajoute Enterprise library 5.0 fichier MS.Practices.EnterpriseLibrary.ExceptionHandling.dll pour mon application wcf.

Une erreur s'est produite de la création du gestionnaire de section de configuration pour exceptionHandling: impossible de charger le fichier ou l'assembly " Microsoft.Les pratiques.EnterpriseLibrary.ExceptionHandling, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' ou une de ses dépendances. L'assemblée manifeste définition ne correspond pas à la référence d'assembly.

 <exceptionHandling>
<exceptionPolicies>
  <add name="Global Policy">
    <exceptionTypes>
      <add name="Exception" type="System.Exception, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" postHandlingAction="None">
        <exceptionHandlers>
          <add name="Wrap Handler" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.WrapHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling" exceptionMessage="Global Message." wrapExceptionType="ExceptionHandlingQuickStart.BusinessLayer.BusinessLayerException, ExceptionHandlingQuickStart.BusinessLayer" /> 
          <add name="Custom Handler" type="AppMessageExceptionHandler, ExceptionLibraryForWCF"/>
        </exceptionHandlers>
      </add>
    </exceptionTypes>
  </add>
  <add name="Handle and Resume Policy">
    <exceptionTypes>
      <add name="Exception" type="System.Exception, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" postHandlingAction="None">
        <exceptionHandlers/>
      </add>
    </exceptionTypes>
  </add>
  <add name="Propagate Policy">
    <exceptionTypes>
      <add name="Exception" type="System.Exception, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" postHandlingAction="NotifyRethrow">
        <exceptionHandlers/>
      </add>
    </exceptionTypes>
  </add>
  <add name="Replace Policy">
    <exceptionTypes>
      <add name="SecurityException" type="System.Security.SecurityException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" postHandlingAction="ThrowNewException">
        <exceptionHandlers>
          <add name="Replace Handler" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ReplaceHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" exceptionMessage="Replaced Exception: User is not authorized to peform the requested action." replaceExceptionType="System.ApplicationException, mscorlib"/>
        </exceptionHandlers>
      </add>
    </exceptionTypes>
  </add>
  <add name="Wrap Policy">
    <exceptionTypes>
      <add name="DBConcurrencyException" type="System.Data.DBConcurrencyException, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" postHandlingAction="ThrowNewException">
        <exceptionHandlers>
          <!--<add name="Wrap Handler" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.WrapHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling" exceptionMessage="Wrapped Exception: A recoverable error occurred while attempting to access the database." wrapExceptionType="ExceptionHandlingQuickStart.BusinessLayer.BusinessLayerException, ExceptionHandlingQuickStart.BusinessLayer" /> -->
        </exceptionHandlers>
      </add>
    </exceptionTypes>
  </add>
</exceptionPolicies>

Ci-dessous mon web.config déclaration pour ma gestion des exceptions

-->

OriginalL'auteur user583754 | 2011-01-20