The model item passed into the dictionary is of type 'Sitecore.Mvc.Presentation.RenderingModel', but this dictionary requires a model item of type

957 views Asked by At

I am using Glass.Mapper.sc ...

@inherits Glass.Mapper.Sc.Web.Mvc.GlassView

in sitecore Layout... Not Controller/View Rendering

Any idea why this is not working?

1

There are 1 answers

1
Jeroen On

More information will be helpful but i have seen this exception when the glass mapper config files (Glass.Mapper.Sc.config and Glass.Mapper.Sc.Start.config) are missing in the App_Config/Include directory