Enterprise 4.1 Library.

Topics: Logging Application Block
Jul 17, 2009 at 8:43 PM

{"An error occurred creating the configuration section handler for loggingConfiguration: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.0.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: 0x80131040) (C:\\Inetpub\\wwwroot\\EmailSystem\\EmailSystem\\web.config line 27)"}

<code>

 

<

<

<

 

<font size="2" color="#0000ff"><font size="2" color="#0000ff">

 

</font></font>
<font size="2" color="#0000ff">

 

</font>

 

<font size="2" color="#0000ff">

 

</font>

 

 

 

 

 

 

section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />section name="exceptionHandling" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

</code>

 

 

 

Jul 20, 2009 at 5:48 AM

Hi,

This exception usually happens when you are referencing the ent lib assemblies that is unsigned assemblies (the ones in the sourcecode) and the config tool you used is the one in the installation folder (which uses the signed assemblies) or vice versa. That's why you are getting a The located assembly's manifest definition does not match the assembly reference. There are more detailed answer you can find here : http://entlib.codeplex.com/Wiki/View.aspx?title=Why%20am%20I%20getting%20the%20messages%2c%20%22Could%20not%20load%20file%20or%20assembly%22&referringTitle=Home

Valiant Dudan
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com