Try our conversational search powered by Generative AI!

Thread safety in DefaultPropertyValueConverterFactory

Fixed in

EPiServer.CMS.Core 9.7.2

(Or a related package)

Created

Feb 24, 2016

Updated

Jun 27, 2018

Area

CMS Core

State

Closed, Fixed and tested


Description

Problem:
Intermittent failure upon startup in solutions that use PropertyList. The error is a "IndexOutOfRangeException: Index was outside the bounds of the array" from the DefaultPropertyValueConverterFactory.

Cause:
While difficult to consistently reproduce the error, it is probably caused by the use of a standard dictionary inside a singleton.

Solution:
Changed to a Concurrent Dictionary.