{"action":"closed","issue":{"url":"https://api.github.com/repos/Antaris/RazorEngine/issues/267","labels_url":"https://api.github.com/repos/Antaris/RazorEngine/issues/267/labels{/name}","comments_url":"https://api.github.com/repos/Antaris/RazorEngine/issues/267/comments","events_url":"https://api.github.com/repos/Antaris/RazorEngine/issues/267/events","html_url":"https://github.com/Antaris/RazorEngine/issues/267","id":67580963,"number":267,"title":"Serialization problem","user":{"login":"imperugo","id":758620,"avatar_url":"https://avatars.githubusercontent.com/u/758620?v=3","gravatar_id":"","url":"https://api.github.com/users/imperugo","html_url":"https://github.com/imperugo","followers_url":"https://api.github.com/users/imperugo/followers","following_url":"https://api.github.com/users/imperugo/following{/other_user}","gists_url":"https://api.github.com/users/imperugo/gists{/gist_id}","starred_url":"https://api.github.com/users/imperugo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imperugo/subscriptions","organizations_url":"https://api.github.com/users/imperugo/orgs","repos_url":"https://api.github.com/users/imperugo/repos","events_url":"https://api.github.com/users/imperugo/events{/privacy}","received_events_url":"https://api.github.com/users/imperugo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Antaris/RazorEngine/labels/bug","name":"bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":30,"created_at":"2015-04-10T12:10:02Z","updated_at":"2015-04-22T19:19:31Z","closed_at":"2015-04-22T19:19:31Z","body":"Hi folks, \r\nI'm getting an error during ```RunCompile```method.\r\n\r\nFor a reason that I don't know the lasted version or RazorEngine is trying to serialize a class used into my project. That class is not serializable for tha reason the app crashes.\r\nThe weird part is that the previous version of RazorEngine was working, so probably is something related to the new version.\r\n\r\nHere the error message:\r\n\r\n```\r\nType 'Owin.OwinRequestScopeContext' in assembly 'OwinRequestScopeContext, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.\r\n```\r\n\r\nand here the stack\r\n\r\n```\r\nat System.AppDomain.InternalCreateInstanceFromWithNoSecurity(String assemblyName, String typeName) 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.RegisterCleanup(String item, Boolean throwOnDefault) 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.GetTemplate(ITemplateKey key, Type modelType, Object model, DynamicViewBag viewbag) at RazorEngine.Templating.TemplateService.GetTemplate(String razorTemplate, Object model, String cacheName) at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName) at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName) at \r\n```\r\n\r\nAny hint?"}}