4

Install-Package Glass.Mapper.Sc -Version 4.4.0.199

I tried to install glass.mapper.sc (4.4.0.199) using the command above but I encounter an error.

enter image description here

Glass Mapper SC File

I haven't done anything yet to the files. This is the default.

I also noticed that the reference being added is only castle.core and glass.mapper while in the previous version specifically the version 4.3.4.197 the added references are castle.core, glass.mapper, glass.mapper.sc and glass.mapper.sc.mvc.

I think the issue is caused by the missing references glass.mapper.sc and glass.mapper.sc.mvc.

Does anyone know how to make it work? Specially how to migrate from version 4.3.4.197 to version 4.4.0.199.

  • Did you get any error messages when installing? – Richard Seal Oct 12 '17 at 11:49
  • No error message when installing. – Pinoy2015 Oct 13 '17 at 2:22
3

Most likely this is related to following:

  • Does your project contain a reference to Glass.Mapper.Sc.dll? If this reference is missing Glass was unable to find the Sitecore.Kernel.dll reference in your project. Add a reference to Sitecore.Kernel.dll and re-install the Glass.Mapper.Sc nuget package.
  • Does your project contain a reference to Glass.Mapper.Sc.Mvc.dll? If this reference is missing Glass was unable to find the System.Web.Mvc.dll reference in your project. Add a reference to System.Web.Mvc.dll and re-install the Glass.Mapper.Sc nuget package. You only need to do this if you want MVC support with Glass.*
| improve this answer | |
  • It has reference to it. – Pinoy2015 Oct 16 '17 at 10:11
  • 1
    same issue - installing from nuget didn't reference those dlls in the solution so manually added it and fixed the issue. seems odd – nologo Dec 13 '17 at 5:46
  • After changing project target framework to be 4.8 had to install System.Web.Mvc.dll. Thanks – Sergejs Aug 29 '19 at 15:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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