So, I upgraded a Sitecore solution from 7.2 to 8.2. All works well, except for the site. I keep on getting the error in my views like the one below:
The model item passed into the dictionary is of type 'Sitecore.Mvc.Presentation.RenderingModel', but this dictionary requires a model item of type 'Web.ViewModels.XXXViewModel'.
I did update all my Glass Cast references to
sitecoreService.Cast<>(). But still no luck. Did anyone run into this issue?
We are using Glass Mapper (Version 22.214.171.124).