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:
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.
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);
}
}
LeBlender Controller not called
Hi.
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
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:
My controller:
And my view (inside grid/editors):
I made this test using Umbraco 7.4.1 and LeBlender 1.0.8.3
Cheers!
is working on a reply...