Questions tagged [glass-mapper]

Questions relating to the Glass.Mapper.Sc ORM framework. More information about the framework is available here: http://www.glass.lu/

Filter by
Sorted by
Tagged with
11
votes
3answers
3k views

Attempt by method 'Glass.Mapper.Sc.Utilities.get_IsPageEditor()' to access method 'Sitecore.Context+PageMode.get_IsPageEditor()' failed

Just updated a simple instance of Sitecore 8.1 to 8.2, the actual solution contains a simple demo, some templates, items, nothing too complex. All went fine as I followed all the steps from the ...
12
votes
1answer
3k views

What are the options for Glass Mapper model attributes?

I have looked through the documentation and tutorials on the Glass Mapper site, but I can't find a list of the different attributes that are available and what they do.
6
votes
2answers
459 views

Glass Cast issues after upgrading from Sitecore 7.2 to 8.2

So, I upgraded a Sitecore solution from 7.2 to 8.2. All works well, except for the site. I keep on getting the error in my views like the one below: The model item passed into the dictionary is of ...
5
votes
1answer
2k views

After upgrading to Glass Mapper 5, unable to globally enable lazy loading

In the implementation using Glass Mapper 4.3.x, I was enabling Lazy Loading in GlassMapperScCustom: public static IDependencyResolver CreateResolver(){ var config = new Glass.Mapper.Sc....
7
votes
2answers
2k views

Using Unicorn to Generate Glass Mapper Models

How can I use Unicorn to generate Glass Mapper models for my Sitecore items?
15
votes
1answer
5k views

Editable Sitecore fields with Glass

Folks I'm trying to do something basic here which is have a general link and an image field as editable in experience editor on my view using Glass. my end goal is to have two editable fields which ...
3
votes
0answers
123 views

SitecoreRequestScopeModule holding many objects leading to memory leak

We are seeing a steady memory growth on our Sitecore 8.2 update 1 application. We had AUTOFAC DI previously and have been completely replaced with Sitecore OOB MS DI. We followed some guidance from ...
7
votes
1answer
813 views

Item not found when saving page in Experience Editor

I have a strange situation where I get a 'Item not found' on postback in Experience Editor when I edit an page. The culprit is a controller rendering which has a line of code in to get the current ...
3
votes
1answer
2k views

How to use Glass Mapper's BeginEditFrame(string buttons, string dataSource, string title)

I've created my own custom experience button to edit some responsive images for a logo in my header and I added the button to the rendering. It works as expected and I am not having any problems with ...
3
votes
1answer
476 views

Disabling the Glass lambda cache

I believe an issue we're running into might be related to the lambda cache in Glass - I'm also concerned about the performance ramifications if we were to disable it. Has anyone done this and ...
2
votes
2answers
485 views

Trouble creating content item using Glass Mapper on a CD server

I have a Sitecore 8.1 CD server. I have a page where a user can create a new shipping address and save it back to the Master database. I am using Glass Mapper for this. Here is my code: Models....
2
votes
1answer
258 views

Too much item reads in Debug Mode

I am facing the following issue that I have a simple Controller Rendering with which is using the Demo template with 1 field (Label) and if I switch to Debug Mode in Experience Editor then I can see ...
2
votes
1answer
676 views

Sitecore 8.1 to 8.2 Glass Mapper Related Error?

I am attempting an update from Sitecore 8.1 Update 1 to 8.2 Update 2 and after running the update package and and showing now errors on the update, I am getting the below error after logging in. I ...
0
votes
1answer
371 views

The model item passed into the dictionary is of type 'Sitecore.Mvc.Presentation.RenderingModel'

We recently upgraded to 9.1 and updated our glassmapper to 5.4.1. After doing the upgrade and running our application I am getting this error. We dont have any model definition in siteocre and this is ...