System.ArgumentException: Object type cannot be converted to target type. at RazorEngine.Compilation.CrossAppDomainCleanUp.CleanupHelper.Init(AppDomain domain, IPrinter printer) at RazorEngine.Compilation.CrossAppDomainCleanUp.InitHelper.CreateHelper() at RazorEngine.Compilation.ExecutionContextLessThread.FuncConv`1.Call(Boolean data) at RazorEngine.Compilation.ExecutionContextLessThread.CallHelperSafeHelper`2.AsAction() at RazorEngine.Compilation.ExecutionContextLessThread.CallHelperSafeHelper`2.AsContextCallback(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at RazorEngine.Compilation.ExecutionContextLessThread.DefaultCallFunc[O](Func`1 f) at RazorEngine.Compilation.CrossAppDomainCleanUp..ctor(AppDomain toWatch, IPrinter printer) at RazorEngine.Compilation.CrossAppDomainCleanUp.CreateInitial() at System.Lazy`1.CreateValue() --- End of stack trace from previous location where exception was thrown --- at System.Lazy`1.get_Value() at RazorEngine.Compilation.CrossAppDomainCleanUp.get_CurrentCleanup() at RazorEngine.Compilation.CrossAppDomainCleanUp.RegisterCleanup(String item, Boolean throwOnDefault) at RazorEngine.Templating.InvalidatingCachingProvider.<>c.<.ctor>b__5_0(String item) at RazorEngine.Templating.InvalidatingCachingProvider.CacheTemplate(ICompiledTemplate template, ITemplateKey templateKey) at RazorEngine.Templating.DefaultCachingProvider.CacheTemplate(ICompiledTemplate template, ITemplateKey templateKey) at RazorEngine.Templating.RazorEngineService.CompileAndCacheInternal(ITemplateKey key, Type modelType) at RazorEngine.Templating.RazorEngineService.GetCompiledTemplate(ITemplateKey key, Type modelType, Boolean compileOnCacheMiss) at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag) at RazorEngine.Templating.DynamicWrapperService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag) at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer) at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter) at RazorEngine.Templating.RazorEngineServiceExtensions.RunCompile(IRazorEngineService service, String name, Type modelType, Object model, DynamicViewBag viewBag) at Nevoweb.DNN.NBrightBuy.Components.NBrightBuyUtils.RazorRender(Object info, String razorTempl, String templateKey, Boolean debugMode)System.ArgumentException: Object type cannot be converted to target type. at RazorEngine.Compilation.CrossAppDomainCleanUp.CleanupHelper.Init(AppDomain domain, IPrinter printer) at RazorEngine.Compilation.CrossAppDomainCleanUp.InitHelper.CreateHelper() at RazorEngine.Compilation.ExecutionContextLessThread.FuncConv`1.Call(Boolean data) at RazorEngine.Compilation.ExecutionContextLessThread.CallHelperSafeHelper`2.AsAction() at RazorEngine.Compilation.ExecutionContextLessThread.CallHelperSafeHelper`2.AsContextCallback(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at RazorEngine.Compilation.ExecutionContextLessThread.DefaultCallFunc[O](Func`1 f) at RazorEngine.Compilation.CrossAppDomainCleanUp..ctor(AppDomain toWatch, IPrinter printer) at RazorEngine.Compilation.CrossAppDomainCleanUp.CreateInitial() at System.Lazy`1.CreateValue() --- End of stack trace from previous location where exception was thrown --- at System.Lazy`1.get_Value() at RazorEngine.Compilation.CrossAppDomainCleanUp.get_CurrentCleanup() at RazorEngine.Compilation.CrossAppDomainCleanUp.RegisterCleanup(String item, Boolean throwOnDefault) at RazorEngine.Templating.InvalidatingCachingProvider.<>c.<.ctor>b__5_0(String item) at RazorEngine.Templating.InvalidatingCachingProvider.CacheTemplate(ICompiledTemplate template, ITemplateKey templateKey) at RazorEngine.Templating.DefaultCachingProvider.CacheTemplate(ICompiledTemplate template, ITemplateKey templateKey) at RazorEngine.Templating.RazorEngineService.CompileAndCacheInternal(ITemplateKey key, Type modelType) at RazorEngine.Templating.RazorEngineService.GetCompiledTemplate(ITemplateKey key, Type modelType, Boolean compileOnCacheMiss) at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag) at RazorEngine.Templating.DynamicWrapperService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag) at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer) at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter) at RazorEngine.Templating.RazorEngineServiceExtensions.RunCompile(IRazorEngineService service, String name, Type modelType, Object model, DynamicViewBag viewBag) at Nevoweb.DNN.NBrightBuy.Components.NBrightBuyUtils.RazorRender(Object info, String razorTempl, String templateKey, Boolean debugMode)
Loading...