Tuesday, September 11, 2018

Sitecore - A read lock may not be acquired with the write lock held in this mode

After making some changes to services I was registering for dependency injection (using the standard Sitecore implementation). I began getting the following error:
A read lock may not be acquired with the write lock held in this mode.
Sitecore dependency injection error
This was occurring as I was trying to access a Sitecore setting (configuration file) and this would error because you can't access this Sitecore resource whilst the container is being initialized. I was able to use a web.config app setting instead.

No comments:

Post a Comment