Quantcast
Channel: RazorGenerator Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 525

Commented Issue: CreateInstance DependencyResolver in PrecompiledMvcEngine [64]

$
0
0
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: I think it has been resolved in https://razorgenerator.codeplex.com/workitem/105

Viewing all articles
Browse latest Browse all 525

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>