An error occurred creating the configuration section, ‘Microsoft.Practices.EnterpriseLibrary,The located assembly’s manifest definition does not match the assembly reference hatası!!!

23 Eylül 2014

Merhaba,

Enterprise Library uğraşırken böyle ilginç bir hata aldım.

An error occurred creating the configuration section handler for exceptionHandling: Could not load file or assembly ‘Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35′ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0×80131040)

error : 

  • an error occurred creating the configuration section handler for spring/objects: that assembly does not allow partially trusted callers (c:\mastertour9 2 20 55465_ru\master32 exe config line 6)
  • System IO FileLoadException: The located assemblys manifest definition does not match the assembly reference



Msdn’de konu ile alakalı şöyle bir makale mevcut : link

Aslında hatanın sebebi bin dosyasına eklediğiniz Enterprise Library dll’leri ile alakalı.

 

Belgelerde oluşan EntLib50Src dosyasından dll’leri eklerseniz bu hatayı almaktasınız.

Çözüm : 

Program Files\Microsoft Enterprise Library \” içindeki   Bin klasöründen kullanmak istediğiniz dll’leri referans olarak projenize eklemelisiniz sorun çözülecektir.

iyi çalışmalar…