jemigossaye
asked on
Configuration Error
Hi all I am getting this error when trying to log to a database using Logging application Block.
Server Error in '/WebParts' Application.
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: An error occurred creating the configuration section handler for loggingConfiguration: Could not load file or assembly 'Microsoft.Practices.Enter priseLibra ry.Logging , Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Source Error:
Line 2: <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
Line 3: <configSections>
Line 4: <section name="loggingConfiguration " type="Microsoft.Practices. Enterprise Library.Lo gging.Conf iguration. LoggingSet tings, Microsoft.Practices.Enterp riseLibrar y.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null" />
Line 5: <section name="dataConfiguration" type="Microsoft.Practices. Enterprise Library.Da ta.Configu ration.Dat abaseSetti ngs, Microsoft.Practices.Enterp riseLibrar y.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null" />
Line 6: <sectionGroup name="system.web.extension s" type="System.Web.Configura tion.Syste mWebExtens ionsSectio nGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3 64e35">
Server Error in '/WebParts' Application.
--------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: An error occurred creating the configuration section handler for loggingConfiguration: Could not load file or assembly 'Microsoft.Practices.Enter
Source Error:
Line 2: <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
Line 3: <configSections>
Line 4: <section name="loggingConfiguration
Line 5: <section name="dataConfiguration" type="Microsoft.Practices.
Line 6: <sectionGroup name="system.web.extension
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
HERE IS THE Assembly Load Trace:
The following information can be helpful to determine why the assembly 'Microsoft.Practices.Enter
=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Practices.Enterp
(Fully-specified)
LOG: Appbase = file:///C:/VSS/AtSidleyInt
LOG: Initial PrivatePath = C:\VSS\AtSidleyIntranet\We
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\VSS\AtSidleyIntranet\We
LOG: Using host configuration file: C:\WINDOWS\Microsoft.NET\F
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\F
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/Microso
LOG: Attempting download of new URL file:///C:/WINDOWS/Microso
LOG: Attempting download of new URL file:///C:/VSS/AtSidleyInt
WRN: Comparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.