System.NullReferenceException: Object reference not set to an instance of an object. at CompiledRazorTemplates.Dynamic.RazorEngine_50d5943e7e67445e9dcb801f3d8f7702.Execute() at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader) at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass23_0.b__0(TextWriter writer) at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter) at CorvusDataServices.Utilities.RazorCompiler.GetView() in d:\a\1\s\CorvusDataServices\Utilities\RazorCompiler.cs:line 56