Click here to Skip to main content
15,917,059 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
An error occurred creating the configuration section handler for loggingConfiguration: could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Logging, version=6.0.1304.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

What I have tried:

I have created a section for loggingConfiguration in Web.Config in MVC Project and WCF Service Application as well.

<section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=6.0.1304.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />


for which i created block for loggingConfiguration
<loggingconfiguration>

What i am doing wrong please let me know
Posted
Updated 10-Oct-17 19:33pm
Comments
F-ES Sitecore 6-Oct-17 8:41am    
Are you referencing the appropriate version of the Enterprise Logging assembly? Is the right version of Microsoft.Practices.EnterpriseLibrary.Logging.dll in the bin folder?
Member 8583441 11-Oct-17 1:31am    
Sorry for the late reply..... The problem has been solved. It is because EnterpriseLibrary 6 cannot accept the direct initialization but it has the configuration tool based on that field the error has been reduced

I installed configuration and later on it automatically takes care all the things and reduced the errors.
Jayendra varma 8-Nov-23 12:09pm    
What configuration did u add can u please suggest us
ZurdoDev 6-Oct-17 10:48am    
The rest of the error should tell you why it cannot load the file.

1 solution

I was initialized the configuration tool and finally the output occurs as described.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900