New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GlassMapper 4 Sitecore 8.1 #183
Comments
Hi, I ran into the same problem. It seems that 8.1 is not supported yet. The install script is looking for a 8.1 folder which does not exist. If you temporally reference an 8.0 update x Sitecore.Kernel before you install Glass it will install but of-course this is a hack. I am currently finding out if there are other compatibility issues. Regards, |
We have pushed 8.1 support to the nightly build. You can download it from the Glass nightly build server. We will make an official release later this week. |
Downloaded the latest nightly 4.03.60-beta and get the same error when trying to add to an 8.1 sitecore install. |
@pault70 I have just tested with the same version and it worked for me. I am using SC assemblies 8.1.0.5297. |
Not sure where I get those sitecore assemblies from, I have the latest official release and it's v 8.1.0.0 |
Released in 4.0.4 |
When you install Glass.Mapper.Sc.Core the package uses a powershell script to determine which version of System.Web.Mvc your project references. It will then pick the correct version of the Glass.Mapper.Sc.Mvc.dll to add to your project. Normally if the Glass.Mapper.Sc.Mvc.dll is not being referenced after the install then it is normally because the project itself does not reference System.Web.Mvc. To solve add the System.Web.Mvc and then reinstall the Glass.Mapper.Sc.Core nuget package. |
Hi Mike,
Failing to map some of the properties with the new version but works fine with the older glass mapper.... should I need to change something after upgrading? |
Hi This is normally caused by a property of type System.Object on the model. You need to find the property and either change the return type of mark it with SitecoreIgnore. This worked in older versions because we didn't ignore System.Object. However we had to ignore it in later versions because it was found to cause issues with type inferring. |
Hey,
I'm trying to install GlassMapper on a Sitecore 8.1 solution and I'm receiving next errors:
PM> Install-Package Glass.Mapper.Sc
Attempting to resolve dependency 'Castle.Core (= 3.3.3)'.
'Glass.Mapper.Sc 4.0.3.51' already installed.
Adding 'Castle.Core 3.3.3' to SitecoreDemo.Website.
Successfully added 'Castle.Core 3.3.3' to SitecoreDemo.Website.
Adding 'Glass.Mapper.Sc 4.0.3.51' to SitecoreDemo.Website.
Successfully added 'Glass.Mapper.Sc 4.0.3.51' to SitecoreDemo.Website.
Check Version of Sitecore.Kernel
Sitecore.Kernel Path: D:\Dev\CompanyName\TemplateSitecore\Lib\Sitecore.Kernel.dll
Check Sitecore.Kernel File Version is 8.1.0.5297
Adding reference to D:\Dev\CompanyName\TemplateSitecore\SitecoreDemo.Solution\packages\Glass.Mapper.Sc.4.0.3.51\lib\81\Glass.Mapper.Sc.dll
Exception calling "Add" with "1" argument(s): "Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))"
At D:\Dev\CompanyName\TemplateSitecore\SitecoreDemo.Solution\packages\Glass.Mapper.Sc.4.0.3.51\tools\install.ps1:45 char:3
The property 'CopyLocal' cannot be found on this object. Verify that the property exists and can be set.
At D:\Dev\CompanyName\TemplateSitecore\SitecoreDemo.Solution\packages\Glass.Mapper.Sc.4.0.3.51\tools\install.ps1:46 char:3
Check Version of System.Web.Mvc
System.Web.Mvc Path: D:\Dev\CompanyName\TemplateSitecore\Lib\System.Web.Mvc.dll
Check System.Web.Mvc File Version is 5.2.30128.0
Adding reference to D:\Dev\CompanyName\TemplateSitecore\SitecoreDemo.Solution\packages\Glass.Mapper.Sc.4.0.3.51\lib\Mvc5\Glass.Mapper.Sc.Mvc.dll
Installation complete
The text was updated successfully, but these errors were encountered: