Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Håvard Rustad Olsen 6 posts 36 karma points
    Feb 03, 2016 @ 11:06
    Håvard Rustad Olsen

    LeBlender Controller not called


    My LeBlender controllers are not beeing called in my Umbraco 7.2.8 site. The grid properties are however working so I can just write the same logic from the controller directly in my view and everything si working, but it would be nice to get everything working. I'm following the naming conventions as shown below:

    Property: CategoryGridBox View: CategoryGridBox.cshtml (inside Grid/editors) Controller : CategoryGridBoxController

    The log shows the following error message:

    2016-02-03 11:29:38,545 [5] ERROR Lecoati.LeBlender.Extension.Helper - [P19036/T1/D3] Could not load LeBlender controllers System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. ved System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) ved System.Reflection.Assembly.GetTypes() ved Lecoati.LeBlender.Extension.Helper.<>cDisplayClass60.1(Assembly a) ved System.Linq.Enumerable.

    Infortunately i'm unable to retrieve the LoaderExceptions for more information.

    Any help is appreciated :)

    Cheers, Håvard

  • Cristhian Amaya 52 posts 423 karma points
    Feb 23, 2016 @ 16:25
    Cristhian Amaya

    Hey Håvard

    Can you please post your controller and model code and tell us which properties have your editor? I've just created a similar example and it works perfectly. I created a new editor with the same name but only with one text property, then I created the controller and a model with the title property and a test property.

    My model:

    public class CategoryGridBoxModel : LeBlenderModel
        public string Foo { get; set; }
        public string Title { get; set; }

    My controller:

    public class CategoryGridBoxController : LeBlenderController
        public ActionResult CategoryGridBox(LeBlenderModel model)
            var gridBoxModel = new CategoryGridBoxModel();
            gridBoxModel.Foo = "Bar";
            gridBoxModel.Title = model.Items.First().GetValue<string>("title");
            return View(gridBoxModel);

    And my view (inside grid/editors):

    @inherits UmbracoViewPage<Auth74.Models.CategoryGridBoxModel>

    I made this test using Umbraco 7.4.1 and LeBlender


Please Sign in or register to post replies

Write your reply to: