Line 141 causing a null exception when our CastleWindsor IDependencyResolver returns null for GetService() resolution of _ViewStart, and _AreaLayout et al.
Adding a null-coalescing operator to the DependencyResolver.Current.GetService(type) call can avoid the issue:
return DependencyResolver.Current.GetService(type) ?? Activator.CreateInstance(type);
Comments: Thanks odinserj for making this change!
Adding a null-coalescing operator to the DependencyResolver.Current.GetService(type) call can avoid the issue:
return DependencyResolver.Current.GetService(type) ?? Activator.CreateInstance(type);
Comments: Thanks odinserj for making this change!