After updating the NuGet Package of StackExchange.Redis latest 2.6.96

error CS1545: Property, indexer, or event 
'ConfigurationOptions.EndPoints' is not supported by the language; 
try directly calling accessor methods 
'ConfigurationOptions.get_EndPoints()' or 
  • 2
    Is there any specific reason you updated this package? It is usually not recommended to overwrite packages that Sitecore is using. For example 10.3 is using version 2.5.43 of StackExchange.Redis. You can refer to Sitecore Assembly List for specific version dev.sitecore.net/Downloads/Sitecore_Experience_Platform/103/….
    – Kamil C
    Commented Mar 14, 2023 at 19:26
  • Also see this answer for reasons why you should not update StackExchange.Redis library sitecore.stackexchange.com/questions/34238/…
    – Anna Gevel
    Commented Mar 14, 2023 at 22:42
  • Can you update your question with some more details like which version you are using for Sitecore to update? Commented Mar 17, 2023 at 13:00

1 Answer 1


Workarround of the issue is using reflection like this:

var cofigurationOptions = new ConfigurationOptions();
var property = typeof(ConfigurationOtions).GetProperty("EndPoints"); // use only literal for property name, otherwise you will get the same error
var endPoints = property.GetValues(cofigurationOptions);

// manupulate with endPoints

In my case the reson of this issue is 'init' modificator for property ConfigurationOptions.EndPoint. I suppose that will be the reason of other issues with CS1545 compilation error.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.