{"action":"created","issue":{"url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/266","labels_url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/266/comments","events_url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/266/events","html_url":"https://github.com/tpetricek/FSharp.Formatting/issues/266","id":58894011,"number":266,"title":"System.TypeLoadException: Inheritance security rules violated when running on CI server","user":{"login":"Vidarls","id":549092,"avatar_url":"https://avatars.githubusercontent.com/u/549092?v=3","gravatar_id":"","url":"https://api.github.com/users/Vidarls","html_url":"https://github.com/Vidarls","followers_url":"https://api.github.com/users/Vidarls/followers","following_url":"https://api.github.com/users/Vidarls/following{/other_user}","gists_url":"https://api.github.com/users/Vidarls/gists{/gist_id}","starred_url":"https://api.github.com/users/Vidarls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vidarls/subscriptions","organizations_url":"https://api.github.com/users/Vidarls/orgs","repos_url":"https://api.github.com/users/Vidarls/repos","events_url":"https://api.github.com/users/Vidarls/events{/privacy}","received_events_url":"https://api.github.com/users/Vidarls/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-25T12:30:54Z","updated_at":"2015-02-25T12:49:29Z","closed_at":null,"body":"```\r\nSystem.TypeLoadException: Inheritance security rules violated by type: 'RazorEngine.Compilation.CSharp.CSharpRazorCodeLanguage'. Derived types must either match the security accessibility of the base type or be less accessible.\r\n   at RazorEngine.Compilation.CSharp.CSharpDirectCompilerService..ctor(Boolean strictMode, Func`1 markupParserFactory)\r\n   at RazorEngine.Compilation.DefaultCompilerServiceFactory.CreateCompilerService(Language language)\r\n   at RazorEngine.Templating.RazorEngineCore.CreateTemplateType(ITemplateSource razorTemplate, Type modelType)\r\n   at RazorEngine.Templating.RazorEngineCore.Compile(ITemplateKey key, Type modelType)\r\n   at RazorEngine.Templating.RazorEngineService.CompileAndCacheInternal(ITemplateKey key, Type modelType)\r\n   at RazorEngine.Templating.RazorEngineService.GetCompiledTemplate(ITemplateKey key, Type modelType, Boolean compileOnCacheMiss)\r\n   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)\r\n   at RazorEngine.Templating.DynamicWrapperService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)\r\n   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass4.<RunCompile>b__3(TextWriter writer)\r\n   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)\r\n   at RazorEngine.Templating.RazorEngineServiceExtensions.RunCompile(IRazorEngineService service, String name, Type modelType, Object model, DynamicViewBag viewBag)\r\n   at <StartupCode$FSharp-Literate>.$Razor.ProcessFileModel@130.Invoke(Unit _arg1) in c:\\Tomas\\Public\\FSharp.Formatting\\src\\Common\\Razor.fs:line 131\r\n   at FSharp.Literate.RazorRender.handleCompile[a](String source, FSharpFunc`2 f) in c:\\Tomas\\Public\\FSharp.Formatting\\src\\Common\\Razor.fs:line 95\r\n   at FSharp.Literate.RazorRender.ProcessFileModel[b](Type modelType, Object model, FSharpOption`1 properties) in c:\\Tomas\\Public\\FSharp.Formatting\\src\\Common\\Razor.fs:line 130\r\n   at FSharp.Literate.Templating.generateFile(FSharpOption`1 references, String contentTag, IEnumerable`1 parameters, FSharpOption`1 templateOpt, String output, IEnumerable`1 layoutRoots) in c:\\Tomas\\Public\\FSharp.Formatting\\src\\FSharp.Literate\\Formatting.fs:line 83\r\n   at FSharp.Literate.Templating.processFile(FSharpOption`1 references, LiterateDocument doc, String output, ProcessingContext ctx) in c:\\Tomas\\Public\\FSharp.Formatting\\src\\FSharp.Literate\\Formatting.fs:line 128\r\n   at FSharp.Literate.Literate.ProcessMarkdown(String input, FSharpOption`1 templateFile, FSharpOption`1 output, FSharpOption`1 format, FSharpOption`1 formatAgent, FSharpOption`1 prefix, FSharpOption`1 compilerOptions, FSharpOption`1 lineNumbers, FSharpOption`1 references, FSharpOption`1 replacements, FSharpOption`1 includeSource, FSharpOption`1 layoutRoots, FSharpOption`1 generateAnchors, FSharpOption`1 assemblyReferences) in c:\\Tomas\\Public\\FSharp.Formatting\\src\\FSharp.Literate\\Main.fs:line 140\r\n   at <StartupCode$FSharp-Literate>.$Main.processMarkdown@173.Invoke(String file, String output) in c:\\Tomas\\Public\\FSharp.Formatting\\src\\FSharp.Literate\\Main.fs:line 173\r\n   at <StartupCode$FSharp-Literate>.$Main.processDirectory@180(FSharpOption`1 format, Boolean processRecursive, FSharpFunc`2 processScriptFile, FSharpFunc`2 processMarkdown, String indir, String outdir) in c:\\Tomas\\Public\\FSharp.Formatting\\src\\FSharp.Literate\\Main.fs:line 199\r\n   at FSharp.Literate.Literate.ProcessDirectory(String inputDirectory, FSharpOption`1 templateFile, FSharpOption`1 outputDirectory, FSharpOption`1 format, FSharpOption`1 formatAgent, FSharpOption`1 prefix, FSharpOption`1 compilerOptions, FSharpOption`1 lineNumbers, FSharpOption`1 references, FSharpOption`1 fsiEvaluator, FSharpOption`1 replacements, FSharpOption`1 includeSource, FSharpOption`1 layoutRoots, FSharpOption`1 generateAnchors, FSharpOption`1 assemblyReferences, FSharpOption`1 processRecursive) in c:\\Tomas\\Public\\FSharp.Formatting\\src\\FSharp.Literate\\Main.fs:line 164\r\n\r\n```\r\n\r\nI assume this is somehow related to upgrading the Razor engine, as my old builds (running older versions of FSharp.formatting) does not have this issue.\r\n\r\nAlso: I have no issues running this on my dev machine, so I guess it has something to do with a more rigorous setup on a Server 2008 installation like the one the CI server is running on.\r\n"},"comment":{"url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/comments/75954261","html_url":"https://github.com/tpetricek/FSharp.Formatting/issues/266#issuecomment-75954261","issue_url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/266","id":75954261,"user":{"login":"Vidarls","id":549092,"avatar_url":"https://avatars.githubusercontent.com/u/549092?v=3","gravatar_id":"","url":"https://api.github.com/users/Vidarls","html_url":"https://github.com/Vidarls","followers_url":"https://api.github.com/users/Vidarls/followers","following_url":"https://api.github.com/users/Vidarls/following{/other_user}","gists_url":"https://api.github.com/users/Vidarls/gists{/gist_id}","starred_url":"https://api.github.com/users/Vidarls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vidarls/subscriptions","organizations_url":"https://api.github.com/users/Vidarls/orgs","repos_url":"https://api.github.com/users/Vidarls/repos","events_url":"https://api.github.com/users/Vidarls/events{/privacy}","received_events_url":"https://api.github.com/users/Vidarls/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T12:49:29Z","updated_at":"2015-02-25T12:49:29Z","body":"Depenencies:\r\n\r\n```\r\nNUGET\r\n  remote: https://nuget.org/api/v2\r\n  specs:\r\n    FAKE (3.17.0)\r\n    FSharp.Compiler.Service (0.0.82)\r\n    FSharp.Formatting (2.7.4)\r\n      FSharp.Compiler.Service (>= 0.0.82)\r\n      FSharpVSPowerTools.Core (>= 1.7.0)\r\n    FSharpVSPowerTools.Core (1.7.0)\r\n      FSharp.Compiler.Service (>= 0.0.81)\r\n    Microsoft.Bcl (1.1.9)\r\n      Microsoft.Bcl.Build (>= 1.0.14)\r\n    Microsoft.Bcl.Build (1.0.21)\r\n    Microsoft.Net.Http (2.2.28)\r\n      Microsoft.Bcl (>= 1.1.9)\r\n      Microsoft.Bcl.Build (>= 1.0.14)\r\n    NuGet.CommandLine (2.8.3)\r\n    NUnit (2.6.4)\r\n    NUnit.Runners (2.6.4)\r\n    Octokit (0.6.2)\r\n      Microsoft.Net.Http\r\n    SourceLink.Fake (0.4.2)\r\nGITHUB\r\n  remote: fsharp/FAKE\r\n  specs:\r\n    modules/Octokit/Octokit.fsx (412ed0da4a9a8635e243e2ea06cf654ca805f6d8)\r\n      Octokit\r\n\r\n\r\n````"}}