Hi Raju, in your dependency resolver class do you have a line assigning your custom renderer to be used for contentarea renderers? For example in my DependencyResolverInitialisation.cs I have a line where i add this to the container:
private static void ConfigureContainer(ConfigurationExpression container) { container.For<ContentAreaRenderer>().Use<GridGalleryContentAreaRenderer>(); }
with GridGalleryContentAreaRenderer being your custom class (AlloyContentAreaRenderer in your case).
Hi Adam,
Yes, I have that line in DependencyResolverInitialisation.cs class and breakpoint touches the line while debugging.
but doesn't touches the breakpoint set in AlloyContentAreaRenderer constructor.
Am just rewriting the alloy mvc template project for understanding, and stuck here.
Thanks.
No Trace found on the issue. Had to create a new site (MVC4 project), copied files and imported data.
Hello Raju,
We're facing the exact same problem here with the breakpoint touching our dependency resolver class but not touching our implementation of the ContentAreaRenderer. Did you, or anyone else, figure out what caused this problem to appear? Don't want to have to create a new project to get this to work so hope for a better solution to this issue.
Best regards
Martin
Hello again Raju,
I might have found a solution to why this didn't work in our solution. I understand that it's a bit late for your project but take a look at this forum post: http://world.episerver.com/Modules/Forum/Pages/thread.aspx?id=118450
Best regards
Martin
Hi,
I am new to EPiServer, trying to understand it by replicating Alloy MVC template project (v7.5)
I already did replicating Alloy template with web forms (v7.0), where i noticed that to implement Bootstrap layout
SitePropertyContentAreaControl class has been used. With MVC version (AlloyContentAreaRenderer), i see lesser code to implement the same via DisplayOptions.
Right now am facing issue where breakpoint never goes into AlloyContentAreaRenderer class (no styles applying when render) and throws no errors,
i tried with .Net4.0 and .Net4.5 too and tried comparing/updating config files and dll references but its not working, please anyone help me.
am using MVC 4.0 with iisexpress (yes i see breakpoint touch in DependencyResolverInitialization class).
Thanks.