0
votes

After installing latest Glass Mapper I am seeing this issue: Could not load type 'Glass.Mapper.IDependencyResolver' from assembly 'Glass.Mapper, Version=4.2.1.188, Culture=neutral, PublicKeyToken=null'.

Sitecore Version : Sitecore.NET 8.1 (rev. 160519) Glass Mapper : Glass.Mapper.Sc

Yes before installation the project had references to Sitecore.Kernel and Sitecore.Mvc dlls.

Did anyone encounter this issue before?

1
When you are seeing this issue after installation and at the timing of running site or solution building error?Yogesh Sharma
I am seeing this issue when running the site.... Solution builds and publishes successfully..Vamshi
Are your Glass Mapper dll's published to the website?Gatogordo
I did some research on it and found that IDependencyResolver referenced in Glass.Mapper.Sc.IoC.IDependencyResolver with the newer version and I think something is wrongly referenced do check files under app_start folder and check what reference they have.Yogesh Sharma
Thanks Yogesh and Gatogordo for response...Vamshi

1 Answers

0
votes

After banging my head finally I found out the reason... In the project there was an old glass mapper v3 or below was installed & uninstalled which didn't complete all the way through. It deleted all the references from the project but it didn't delete all the config files. It left glass.config in the app config folder and the include folder. After deleting these two files it started working as expected.