Kentico Version Upgrade (11 to 12) Error: Searchcontext does not exist in current context

Bharat Manwani asked on October 1, 2019 14:48

I've upgraded Kentico version 11 to 12..After upgrade, Ecommerce CMS Module returns error "SearchContext does not exist in current context" due to following statement "SearchContext.CurrentSearchResults"

It looks like Kentico removed SearchContext class from version 12. so please let me know the way to fix this issue.

Correct Answer

Brenden Kehren answered on October 1, 2019 15:26

It was removed. Check out the documentation on the API changes from v11 to v12.

2 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.