-
Most Common Issues
- Inactivity Timeout During Rebuild
- Coveo Sort Components Are Stacked in an MVC Search Page
- Security Provider Error Something Went Wrong on the Server
- Problem Accessing the Coveo Admin Service
- Problem Loading the Ninject Assembly
- Empty Strings are not Allowed Exception Occurring When Specifying Creator-Owner Permissions
- Internal Server Error When Querying the REST Service
- Editing the Properties of a Coveo Search MVC Component Freezes the Page Editor in IE11
- Error with ID NO\_DOCUMENT\_INDEXED
- Error or Document Not Found Page After Rebuilding the Indexes
- Problem Registering Search Page Events in Sitecore Analytics Database
- Sitecore Items Do Not Get Automatically Indexed
- Sitecore 8.0 Session is not Initialized Exception
- The Indexing Manager Is Reporting an Error
- Configuration Wizard error - Unable to add the certificate to the Root store. Access is denied.
- Slow Queries in a Coveo-Powered Search Page
- Issue in IE During Admin Service Configuration with the Configuration Wizard
- High Memory Usage While Rebuilding Indexes
- Root Element of a Crawler for a Coveo Index is Invalid
- 404 Errors on Coveo Usage Analytics Search Events
- HTML Version of Indexed Items Are Showing an Error Page
- Coveo-Powered Search Page Fails to Load After Upgrade
- Diagnostic Page Error - Invalid cast from System.String to Coveo.Framework.Configuration.SecurityConfiguration
- Including a Search Box with OmniboxResultList Results in Cannot read property addEventListener of null Error
- Timeout While Expanding Sitecore Security Provider
- NullReferenceException on Tracking.Current When Executing a Request for a Quick View
- Coveo for Sitecore Security Cache Refresh Issues
- How to Modify the Coveo for Sitecore Security Provider Refreshing Parameters
- 403 Forbidden Error When Calling YourSitecoreSite/coveo/rest
- Getting log4net Errors When Attempting to Browse Sitecore Pages
- The Sitecore Security Provider ABC has encountered a fatal exception class CSP FatalException Unable to connect to Sitecore
- No User has been Provided for the Search Request
- Opening Sitecore Indexing Manager Returns a 405 (Method Not Allowed) Error
- Secured Admin Service - Could Not Establish Trust Relationship for the SSL/TLS Secure Channel with Authority Localhost
- Hive Components - Inserting an Example Search Page Results in No Renderings
Getting log4net Errors When Attempting to Browse Sitecore Pages
Description
The log4net.dll
file in the <SITECORE_INSTANCE_ROOT>\website\bin
folder was changed and you’re now seeing errors like the following when attempting to browse your Sitecore pages:
Could not load file or assembly ‘log4net, Version=1.2.11.0, culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a or one of its dependencies. The located assembly's manifest definition doesn't match the assembly reference…
Explanation
Coveo for Sitecore uses its own version of log4net.dll
. This custom version of log4net.dll
is 1.2.11.0.
The Coveo for Sitecore version of the log4net.dll
needs to be in the bin
folder of your website in order for it to work properly.
Whenever you’re installing a Coveo for Sitecore package, it will automatically overwrite any version of log4net.dll
in [YourSitecoreInstance\website\bin
.
Environment
-
Coveo for Sitecore 863+
-
Error Message
-
Log4Net
Resolution
If you’re planning on using a log4net.dll
file other than the Coveo for Sitecore custom version, you need to install that dll in a folder other than bin
.
Therefore, you need to create a separate folder for your version of log4net.dll
and explicitly tell Sitecore where to get it:
-
In the
<SITECORE_INSTANCE_ROOT>\website
directory, create a folder namedlog4netCustom
. So the path to this folder will be<SITECORE_INSTANCE_ROOT>\website\log4netCustom
. -
Move your
log4net.dll
(1.2.XX.0) file into thelog4netCustom
folder. -
Open the Sitecore
web.config
file. -
Locate the
assemblyBinding
element. -
Insert the following XML snippet inside the
assemblyBinding
element.<dependentAssembly> <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" /> <codeBase version="1.2.XX.0" href="log4netCustom\log4net.dll" /> </dependentAssembly>