-
Notifications
You must be signed in to change notification settings - Fork 121
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
Model rendering error while using Glass.Mapper.sc.100 with Sitecore 10 #431
Comments
Can you show use the content of the <mvc.getModel> pipleine? |
Hi Mike,
Please find the screenshot of <mvc.getModel> pipeline page below
[cid:[email protected]]
Regards,
Arti Shahi
Lead Software Engineer
Huron Eurasia India Private Limited
Primeco Towers, 3rd Floor
Bannerughatta Main Road, Arekere, MICO Layout Main Road
Panduranga Nagar, Bengaluru, Karnataka 560076
[email protected]<mailto:[email protected]>
www.huronconsultinggroup.com<http://www.huronconsultinggroup.com>
From: Mike Edwards <[email protected]>
Sent: Monday, December 21, 2020 6:43 PM
To: mikeedwards83/Glass.Mapper <[email protected]>
Cc: Arti Shahi <[email protected]>; Author <[email protected]>
Subject: [External] Re: [mikeedwards83/Glass.Mapper] Model rendering error while using Glass.Mapper.sc.100 with Sitecore 10 (#431)
CAUTION: This email originated from an external system. Do not click links, open attachments or forward unless you recognize the sender and know the content is safe.
Can you show use the content of the <mvc.getModel> pipleine?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#431 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ASG2SVU5UK3SOMZ3ORAJIIDSV5CWTANCNFSM4VDBAL6Q>.
DISCLAIMER:
The information transmitted in this e-mail message and attachments, if any, may be attorney-client information, including privileged and confidential matter, and is intended only for the use of the individual or entity named above. Distribution to, or review by, unauthorized persons is strictly prohibited. All personal messages express views solely of the sender, which are not to be attributed to any organization. If you have received this transmission in error, immediately notify the sender and permanently delete this transmission including attachments.
|
Arti My message was from the github issue. so your response went to the github issue. You will need to upload it somewhere and then add a link to the github issue. |
Mike, Please find the codes below :
|
Hi Mike, |
Hi I wanted to the see the final pipeline configuration for mvc.getModel as shown in /sitecore/admin/showconfig.aspx. Could you copy it from that page an upload it to github? Cheers |
Hi Mike, Please find them below : |
Hi guys I have the same problem after upgrading my solution from Sitecore 9.0.2 to Sitecore 10.2 and Glass Mapper to v5 for Sitecore 10.2. I found the problem and the solution for this: In GetModelFromView there's a "new" check if model is assignable to a Sitecore RenderingModel. If so, then the model get not resolved and for this you get this error. To fix this, it should not check if current model is assignable from RenderingModel, but only if it's this exact type. Means the following code change: Current line 67: I did a custom implementation of Best regards, |
We have upgraded our Sitecore application from 8.1 to 10.0 and with that upgrade, we also upgraded Glass mapper from Glass.Mapper.Sc.81 to Glass.Mapper.Sc.100 but when we run the website some of the pages gives us unhandled exception and we are clueless why this exceptions are being raised. The application was working fine when we were using Sitecore 8.1 with Glass.Mapper.Sc.81 and it broke when we upgraded the Sitecore version with glass mapper.
This is the exception that is raised in one of the page, other pages have similar exception but with different models.
The model item passed into the dictionary is of type 'Sitecore.Mvc.Presentation.RenderingModel', but this dictionary requires a model item of type 'HuronConsultingGroup.Common.Models.StaticImageCarousel'.
We verified our application and respective models if these models exist in the application and to look if things are fine and everything looked in place.
We are clueless why we are getting this exception, any help would be appreciated.
Model_rerendering_error.pdf
The text was updated successfully, but these errors were encountered: