Have this in Global.asax using windsor 2.5.1.0
_windsor.Register(
Component.For<IViewEngine>().ImplementedBy<RazorViewEngine>(),
);
When executing this right after:
IViewEngine tt2 = _windsor.Resolve<IViewEngine>();
int count = ((RazorViewEngine) tt2).ViewLocationFormats.Length;
The count variable is 0, but with this:
IViewEngine tt2 = new RazorViewEngine();
int count = ((RazorViewEngine) tt2).ViewLocationFormats.Length;
It is 4, which is the default. I cannot see why the windsor instance is returning zero?
Anyone have a suggestion?
I had before the registers:
Which gave the error. Wo