<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>razorengine Issue Tracker Rss Feed</title><link>http://razorengine.codeplex.com/workitem/list/basic</link><description>razorengine Issue Tracker Rss Description</description><item><title>Created Issue: RazorEngine and specials characters [910]</title><link>http://razorengine.codeplex.com/workitem/910</link><description>Hello there,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m using your project in an application where my users are able to generate bunch of code through an user-friendly GUI. Even it&amp;#39;s work really fine, I just got a little &amp;#34;bug&amp;#34; &amp;#40;well, I know it&amp;#39;s not a real bug&amp;#41; with specials characters like thoses ones &amp;#58; &amp;#39; &amp;#34; &amp;#60; &amp;#62; &amp;#35; etc. Thoses characters are interpreted like in HTML-code &amp;#40;&amp;#38;lt&amp;#59; &amp;#38;gt&amp;#59; etc.&amp;#41; like form, however it&amp;#39;s not an awaited behavior.&lt;br /&gt;&lt;br /&gt;So, here&amp;#39;s my question &amp;#58; is there a way inside RazorEngine to disable this behavior, or should I handle with a method it in my template &amp;#63;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks for reading. Please excuse me for potential english mistakes.&lt;br /&gt;</description><author>Daimakaicho</author><pubDate>Wed, 20 Mar 2013 16:02:46 GMT</pubDate><guid isPermaLink="false">Created Issue: RazorEngine and specials characters [910] 20130320040246P</guid></item><item><title>Commented Issue: .NET 4.5 / MVC4 compatibility. Method not found exception [591]</title><link>http://razorengine.codeplex.com/workitem/591</link><description>&amp;#60;p&amp;#62;I have Windows 7 64 bit, .NET 4.5 &amp;#40;preview&amp;#41; installed and ASP.NET MVC 4 &amp;#40;preview&amp;#41; installed.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Got following exception&amp;#58; Method not found&amp;#58; System.Collections.Generic.Dictionary&amp;#96;2&amp;#38;lt&amp;#59;System.String,BlockParser&amp;#38;gt&amp;#59; System.Web.Razor.Parser.CSharpCodeParser.get_RazorKeywords&amp;#40;&amp;#41;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;&amp;#35;160&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Stack Trace&amp;#58;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#123;&amp;#123;&amp;#123;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#91;MissingMethodException&amp;#58; Method not found&amp;#58; &amp;#39;System.Collections.Generic.Dictionary&amp;#96;2&amp;#38;lt&amp;#59;System.String,BlockParser&amp;#38;gt&amp;#59; System.Web.Razor.Parser.CSharpCodeParser.get_RazorKeywords&amp;#40;&amp;#41;&amp;#39;.&amp;#93;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   RazorEngine.Compilation.CSharp.CSharpCodeParser..ctor&amp;#40;&amp;#41; &amp;#43;0&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   RazorEngine.Compilation.RazorEngineHost.DecorateCodeParser&amp;#40;ParserBase incomingCodeParser&amp;#41; &amp;#43;138&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   System.Web.Razor.RazorTemplateEngine.CreateParser&amp;#40;&amp;#41; &amp;#43;57&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   System.Web.Razor.RazorTemplateEngine.GenerateCodeCore&amp;#40;ITextDocument input, String className, String rootNamespace, String sourceFileName, Nullable&amp;#96;1 cancelToken&amp;#41; &amp;#43;80&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   System.Web.Razor.RazorTemplateEngine.GenerateCode&amp;#40;TextReader input, String className, String rootNamespace, String sourceFileName, Nullable&amp;#96;1 cancelToken&amp;#41; &amp;#43;126&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   System.Web.Razor.RazorTemplateEngine.GenerateCode&amp;#40;TextReader input&amp;#41; &amp;#43;85&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   RazorEngine.Compilation.CompilerServiceBase.GetGeneratorResult&amp;#40;RazorEngineHost host, String template&amp;#41; &amp;#43;187&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   RazorEngine.Compilation.CompilerServiceBase.GetCodeCompileUnit&amp;#40;String className, String template, ISet&amp;#96;1 namespaceImports, Type templateType, Type modelType&amp;#41; &amp;#43;982&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   RazorEngine.Compilation.DirectCompilerServiceBase.Compile&amp;#40;TypeContext context&amp;#41; &amp;#43;442&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   RazorEngine.Compilation.DirectCompilerServiceBase.CompileType&amp;#40;TypeContext context&amp;#41; &amp;#43;189&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   RazorEngine.Templating.TemplateService.CreateTemplateType&amp;#40;String razorTemplate, Type modelType&amp;#41; &amp;#43;1526&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   RazorEngine.Templating.TemplateService.CreateTemplate&amp;#40;String razorTemplate, Type modelType, Object model&amp;#41; &amp;#43;107&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   RazorEngine.Templating.TemplateService.CreateTemplate&amp;#40;String razorTemplate, Object model&amp;#41; &amp;#43;98&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   RazorEngine.Templating.TemplateService.Parse&amp;#40;String razorTemplate, Object model&amp;#41; &amp;#43;94&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   RazorEngine.Razor.Parse&amp;#40;String razorTemplate, Object model&amp;#41; &amp;#43;102&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#125;&amp;#125;&amp;#125;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;Comments: ** Comment from web user: mymatemitch ** &lt;p&gt;Check this link http://www.asp.net/whitepapers/mvc4-release-notes#_Toc303253815 and look at the &amp;quot;Installing ASP.NET MVC 4  breaks ASP.NET MVC 3 RTM applications&amp;quot; section. This problem seems to be caused by VS2012 referencing the wrong versions of certain libraries. In particular, MVC 3 uses Razor 1 and MVC 4 uses Razor 2. If this is not explicitly specified in the csproj, .NET references the latest version by default. I had the same problem and as well as modifying the csproj as per the above link, I also changed System.Web.WebPages, System.Web.Helpers, System.Web.Razor and System.Web.WebPages.Razor to use version 1 in the web.config. Now my MVC 3 site works correctly.&lt;/p&gt;</description><author>mymatemitch</author><pubDate>Mon, 19 Nov 2012 15:36:51 GMT</pubDate><guid isPermaLink="false">Commented Issue: .NET 4.5 / MVC4 compatibility. Method not found exception [591] 20121119033651P</guid></item><item><title>Commented Issue: .NET 4.5 / MVC4 compatibility. Method not found exception [591]</title><link>http://razorengine.codeplex.com/workitem/591</link><description>&amp;#60;p&amp;#62;I have Windows 7 64 bit, .NET 4.5 &amp;#40;preview&amp;#41; installed and ASP.NET MVC 4 &amp;#40;preview&amp;#41; installed.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Got following exception&amp;#58; Method not found&amp;#58; System.Collections.Generic.Dictionary&amp;#96;2&amp;#38;lt&amp;#59;System.String,BlockParser&amp;#38;gt&amp;#59; System.Web.Razor.Parser.CSharpCodeParser.get_RazorKeywords&amp;#40;&amp;#41;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;&amp;#35;160&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Stack Trace&amp;#58;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#123;&amp;#123;&amp;#123;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#91;MissingMethodException&amp;#58; Method not found&amp;#58; &amp;#39;System.Collections.Generic.Dictionary&amp;#96;2&amp;#38;lt&amp;#59;System.String,BlockParser&amp;#38;gt&amp;#59; System.Web.Razor.Parser.CSharpCodeParser.get_RazorKeywords&amp;#40;&amp;#41;&amp;#39;.&amp;#93;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   RazorEngine.Compilation.CSharp.CSharpCodeParser..ctor&amp;#40;&amp;#41; &amp;#43;0&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   RazorEngine.Compilation.RazorEngineHost.DecorateCodeParser&amp;#40;ParserBase incomingCodeParser&amp;#41; &amp;#43;138&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   System.Web.Razor.RazorTemplateEngine.CreateParser&amp;#40;&amp;#41; &amp;#43;57&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   System.Web.Razor.RazorTemplateEngine.GenerateCodeCore&amp;#40;ITextDocument input, String className, String rootNamespace, String sourceFileName, Nullable&amp;#96;1 cancelToken&amp;#41; &amp;#43;80&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   System.Web.Razor.RazorTemplateEngine.GenerateCode&amp;#40;TextReader input, String className, String rootNamespace, String sourceFileName, Nullable&amp;#96;1 cancelToken&amp;#41; &amp;#43;126&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   System.Web.Razor.RazorTemplateEngine.GenerateCode&amp;#40;TextReader input&amp;#41; &amp;#43;85&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   RazorEngine.Compilation.CompilerServiceBase.GetGeneratorResult&amp;#40;RazorEngineHost host, String template&amp;#41; &amp;#43;187&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   RazorEngine.Compilation.CompilerServiceBase.GetCodeCompileUnit&amp;#40;String className, String template, ISet&amp;#96;1 namespaceImports, Type templateType, Type modelType&amp;#41; &amp;#43;982&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   RazorEngine.Compilation.DirectCompilerServiceBase.Compile&amp;#40;TypeContext context&amp;#41; &amp;#43;442&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   RazorEngine.Compilation.DirectCompilerServiceBase.CompileType&amp;#40;TypeContext context&amp;#41; &amp;#43;189&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   RazorEngine.Templating.TemplateService.CreateTemplateType&amp;#40;String razorTemplate, Type modelType&amp;#41; &amp;#43;1526&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   RazorEngine.Templating.TemplateService.CreateTemplate&amp;#40;String razorTemplate, Type modelType, Object model&amp;#41; &amp;#43;107&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   RazorEngine.Templating.TemplateService.CreateTemplate&amp;#40;String razorTemplate, Object model&amp;#41; &amp;#43;98&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   RazorEngine.Templating.TemplateService.Parse&amp;#40;String razorTemplate, Object model&amp;#41; &amp;#43;94&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   RazorEngine.Razor.Parse&amp;#40;String razorTemplate, Object model&amp;#41; &amp;#43;102&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#125;&amp;#125;&amp;#125;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;Comments: ** Comment from web user: mymatemitch ** &lt;p&gt;Check this link http://www.asp.net/whitepapers/mvc4-release-notes#_Toc303253815 and look at the &amp;quot;Installing ASP.NET MVC 4  breaks ASP.NET MVC 3 RTM applications&amp;quot; section. This problem seems to be caused by VS2012 referencing the wrong versions of certain libraries. In particular, MVC 3 uses Razor 1 and MVC 4 uses Razor 2. If this is not explicitly specified in the csproj, .NET references the latest version by default. I had the same problem and as well as modifying the csproj as per the above link, I also changed System.Web.WebPages, System.Web.Helpers, System.Web.Razor and System.Web.WebPages.Razor to use version 1 in the web.config. Now my MVC 3 site works correctly.&lt;/p&gt;</description><author>mymatemitch</author><pubDate>Mon, 19 Nov 2012 15:35:19 GMT</pubDate><guid isPermaLink="false">Commented Issue: .NET 4.5 / MVC4 compatibility. Method not found exception [591] 20121119033519P</guid></item><item><title>Created Issue: Error when using a base template in the global namespace [850]</title><link>http://razorengine.codeplex.com/workitem/850</link><description>Create a base template in the global namespace, e.g.&lt;br /&gt;&lt;br /&gt;public class MyTemplateBase &amp;#58; TemplateBase &amp;#123;&amp;#125;&lt;br /&gt;&lt;br /&gt;Configure razor engine to use this template&amp;#58;&lt;br /&gt;            Razor.SetTemplateService&amp;#40;new TemplateService&amp;#40;new TemplateServiceConfiguration&amp;#40;&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    BaseTemplateType &amp;#61; typeof &amp;#40;MyTemplateBase&amp;#38;lt&amp;#59;&amp;#38;gt&amp;#59;&amp;#41;&lt;br /&gt;                &amp;#125;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;No template will be able to be compiled until the base template is put into a specific namespace.&lt;br /&gt;</description><author>IanNewson</author><pubDate>Thu, 25 Oct 2012 10:14:28 GMT</pubDate><guid isPermaLink="false">Created Issue: Error when using a base template in the global namespace [850] 20121025101428A</guid></item><item><title>Commented Issue: .NET 4.5 / MVC4 compatibility. Method not found exception [591]</title><link>http://razorengine.codeplex.com/workitem/591</link><description>I have Windows 7 64 bit, .NET 4.5 &amp;#40;preview&amp;#41; installed and ASP.NET MVC 4 &amp;#40;preview&amp;#41; installed.&lt;br /&gt;Got following exception&amp;#58; Method not found&amp;#58; System.Collections.Generic.Dictionary&amp;#96;2&amp;#60;System.String,BlockParser&amp;#62; System.Web.Razor.Parser.CSharpCodeParser.get_RazorKeywords&amp;#40;&amp;#41;&lt;br /&gt;&lt;br /&gt;Stack Trace&amp;#58;&lt;br /&gt;&amp;#123;&amp;#123;&amp;#123;&lt;br /&gt;&amp;#91;MissingMethodException&amp;#58; Method not found&amp;#58; &amp;#39;System.Collections.Generic.Dictionary&amp;#96;2&amp;#60;System.String,BlockParser&amp;#62; System.Web.Razor.Parser.CSharpCodeParser.get_RazorKeywords&amp;#40;&amp;#41;&amp;#39;.&amp;#93;&lt;br /&gt;   RazorEngine.Compilation.CSharp.CSharpCodeParser..ctor&amp;#40;&amp;#41; &amp;#43;0&lt;br /&gt;   RazorEngine.Compilation.RazorEngineHost.DecorateCodeParser&amp;#40;ParserBase incomingCodeParser&amp;#41; &amp;#43;138&lt;br /&gt;   System.Web.Razor.RazorTemplateEngine.CreateParser&amp;#40;&amp;#41; &amp;#43;57&lt;br /&gt;   System.Web.Razor.RazorTemplateEngine.GenerateCodeCore&amp;#40;ITextDocument input, String className, String rootNamespace, String sourceFileName, Nullable&amp;#96;1 cancelToken&amp;#41; &amp;#43;80&lt;br /&gt;   System.Web.Razor.RazorTemplateEngine.GenerateCode&amp;#40;TextReader input, String className, String rootNamespace, String sourceFileName, Nullable&amp;#96;1 cancelToken&amp;#41; &amp;#43;126&lt;br /&gt;   System.Web.Razor.RazorTemplateEngine.GenerateCode&amp;#40;TextReader input&amp;#41; &amp;#43;85&lt;br /&gt;   RazorEngine.Compilation.CompilerServiceBase.GetGeneratorResult&amp;#40;RazorEngineHost host, String template&amp;#41; &amp;#43;187&lt;br /&gt;   RazorEngine.Compilation.CompilerServiceBase.GetCodeCompileUnit&amp;#40;String className, String template, ISet&amp;#96;1 namespaceImports, Type templateType, Type modelType&amp;#41; &amp;#43;982&lt;br /&gt;   RazorEngine.Compilation.DirectCompilerServiceBase.Compile&amp;#40;TypeContext context&amp;#41; &amp;#43;442&lt;br /&gt;   RazorEngine.Compilation.DirectCompilerServiceBase.CompileType&amp;#40;TypeContext context&amp;#41; &amp;#43;189&lt;br /&gt;   RazorEngine.Templating.TemplateService.CreateTemplateType&amp;#40;String razorTemplate, Type modelType&amp;#41; &amp;#43;1526&lt;br /&gt;   RazorEngine.Templating.TemplateService.CreateTemplate&amp;#40;String razorTemplate, Type modelType, Object model&amp;#41; &amp;#43;107&lt;br /&gt;   RazorEngine.Templating.TemplateService.CreateTemplate&amp;#40;String razorTemplate, Object model&amp;#41; &amp;#43;98&lt;br /&gt;   RazorEngine.Templating.TemplateService.Parse&amp;#40;String razorTemplate, Object model&amp;#41; &amp;#43;94&lt;br /&gt;   RazorEngine.Razor.Parse&amp;#40;String razorTemplate, Object model&amp;#41; &amp;#43;102&lt;br /&gt;&amp;#125;&amp;#125;&amp;#125;&lt;br /&gt;Comments: ** Comment from web user: pmarangoni ** &lt;p&gt;&lt;br /&gt;Method not found&amp;#58; &amp;#39;System.Collections.Generic.Dictionary&amp;#96;2&amp;#60;System.String,BlockParser&amp;#62; System.Web.Razor.Parser.CSharpCodeParser.get_RazorKeywords&amp;#40;&amp;#41;&amp;#39;. &lt;br /&gt;Description&amp;#58; An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. &lt;/p&gt;&lt;p&gt;Exception Details&amp;#58; System.MissingMethodException&amp;#58; Method not found&amp;#58; &amp;#39;System.Collections.Generic.Dictionary&amp;#96;2&amp;#60;System.String,BlockParser&amp;#62; System.Web.Razor.Parser.CSharpCodeParser.get_RazorKeywords&amp;#40;&amp;#41;&amp;#39;.&lt;/p&gt;&lt;p&gt;Source Error&amp;#58; &lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Stack Trace&amp;#58; &lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&amp;#91;MissingMethodException&amp;#58; Method not found&amp;#58; &amp;#39;System.Collections.Generic.Dictionary&amp;#96;2&amp;#60;System.String,BlockParser&amp;#62; System.Web.Razor.Parser.CSharpCodeParser.get_RazorKeywords&amp;#40;&amp;#41;&amp;#39;.&amp;#93;&lt;br /&gt;   System.Web.Mvc.Razor.MvcCSharpRazorCodeParser..ctor&amp;#40;&amp;#41; &amp;#43;0&lt;br /&gt;   System.Web.Mvc.Razor.MvcWebPageRazorHost.DecorateCodeParser&amp;#40;ParserBase incomingCodeParser&amp;#41; &amp;#43;44&lt;br /&gt;   System.Web.Razor.RazorTemplateEngine.CreateParser&amp;#40;&amp;#41; &amp;#43;57&lt;br /&gt;   System.Web.Razor.RazorTemplateEngine.GenerateCodeCore&amp;#40;ITextDocument input, String className, String rootNamespace, String sourceFileName, Nullable&amp;#96;1 cancelToken&amp;#41; &amp;#43;120&lt;br /&gt;   System.Web.WebPages.Razor.RazorBuildProvider.EnsureGeneratedCode&amp;#40;&amp;#41; &amp;#43;240&lt;br /&gt;   System.Web.WebPages.Razor.RazorBuildProvider.get_CodeCompilerType&amp;#40;&amp;#41; &amp;#43;31&lt;br /&gt;   System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider&amp;#40;BuildProvider buildProvider&amp;#41; &amp;#43;59&lt;br /&gt;   System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders&amp;#40;&amp;#41; &amp;#43;209&lt;br /&gt;   System.Web.Compilation.BuildProvidersCompiler.PerformBuild&amp;#40;&amp;#41; &amp;#43;15&lt;br /&gt;   System.Web.Compilation.BuildManager.CompileWebFile&amp;#40;VirtualPath virtualPath&amp;#41; &amp;#43;9929933&lt;br /&gt;   System.Web.Compilation.BuildManager.GetVPathBuildResultInternal&amp;#40;VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate&amp;#41; &amp;#43;299&lt;br /&gt;   System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert&amp;#40;HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate&amp;#41; &amp;#43;103&lt;br /&gt;   System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory&amp;#40;VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound&amp;#41; &amp;#43;165&lt;br /&gt;   System.Web.Mvc.BuildManagerWrapper.System.Web.Mvc.IBuildManager.FileExists&amp;#40;String virtualPath&amp;#41; &amp;#43;27&lt;br /&gt;   System.Web.Mvc.BuildManagerViewEngine.FileExists&amp;#40;ControllerContext controllerContext, String virtualPath&amp;#41; &amp;#43;41&lt;br /&gt;   System.Web.Mvc.VirtualPathProviderViewEngine.GetPathFromGeneralName&amp;#40;ControllerContext controllerContext, List&amp;#96;1 locations, String name, String controllerName, String areaName, String cacheKey, String&amp;#91;&amp;#93;&amp;#38; searchedLocations&amp;#41; &amp;#43;134&lt;br /&gt;   System.Web.Mvc.VirtualPathProviderViewEngine.GetPath&amp;#40;ControllerContext controllerContext, String&amp;#91;&amp;#93; locations, String&amp;#91;&amp;#93; areaLocations, String locationsPropertyName, String name, String controllerName, String cacheKeyPrefix, Boolean useCache, String&amp;#91;&amp;#93;&amp;#38; searchedLocations&amp;#41; &amp;#43;286&lt;br /&gt;   System.Web.Mvc.VirtualPathProviderViewEngine.FindView&amp;#40;ControllerContext controllerContext, String viewName, String masterName, Boolean useCache&amp;#41; &amp;#43;130&lt;br /&gt;   System.Web.Mvc.&amp;#60;&amp;#62;c__DisplayClassc.&amp;#60;FindView&amp;#62;b__b&amp;#40;IViewEngine e&amp;#41; &amp;#43;24&lt;br /&gt;   System.Web.Mvc.ViewEngineCollection.Find&amp;#40;Func&amp;#96;2 lookup, Boolean trackSearchedPaths&amp;#41; &amp;#43;137&lt;br /&gt;   System.Web.Mvc.ViewEngineCollection.FindView&amp;#40;ControllerContext controllerContext, String viewName, String masterName&amp;#41; &amp;#43;183&lt;br /&gt;   System.Web.Mvc.ViewResult.FindView&amp;#40;ControllerContext context&amp;#41; &amp;#43;104&lt;br /&gt;   System.Web.Mvc.ViewResultBase.ExecuteResult&amp;#40;ControllerContext context&amp;#41; &amp;#43;116&lt;br /&gt;   System.Web.Mvc.ControllerActionInvoker.InvokeActionResult&amp;#40;ControllerContext controllerContext, ActionResult actionResult&amp;#41; &amp;#43;13&lt;br /&gt;   System.Web.Mvc.&amp;#60;&amp;#62;c__DisplayClass1c.&amp;#60;InvokeActionResultWithFilters&amp;#62;b__19&amp;#40;&amp;#41; &amp;#43;23&lt;br /&gt;   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter&amp;#40;IResultFilter filter, ResultExecutingContext preContext, Func&amp;#96;1 continuation&amp;#41; &amp;#43;245&lt;br /&gt;   System.Web.Mvc.&amp;#60;&amp;#62;c__DisplayClass1e.&amp;#60;InvokeActionResultWithFilters&amp;#62;b__1b&amp;#40;&amp;#41; &amp;#43;22&lt;br /&gt;   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters&amp;#40;ControllerContext controllerContext, IList&amp;#96;1 filters, ActionResult actionResult&amp;#41; &amp;#43;176&lt;br /&gt;   System.Web.Mvc.ControllerActionInvoker.InvokeAction&amp;#40;ControllerContext controllerContext, String actionName&amp;#41; &amp;#43;324&lt;br /&gt;   System.Web.Mvc.Controller.ExecuteCore&amp;#40;&amp;#41; &amp;#43;105&lt;br /&gt;   System.Web.Mvc.ControllerBase.Execute&amp;#40;RequestContext requestContext&amp;#41; &amp;#43;87&lt;br /&gt;   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute&amp;#40;RequestContext requestContext&amp;#41; &amp;#43;10&lt;br /&gt;   System.Web.Mvc.&amp;#60;&amp;#62;c__DisplayClassb.&amp;#60;BeginProcessRequest&amp;#62;b__5&amp;#40;&amp;#41; &amp;#43;34&lt;br /&gt;   System.Web.Mvc.Async.&amp;#60;&amp;#62;c__DisplayClass1.&amp;#60;MakeVoidDelegate&amp;#62;b__0&amp;#40;&amp;#41; &amp;#43;19&lt;br /&gt;   System.Web.Mvc.Async.&amp;#60;&amp;#62;c__DisplayClass8&amp;#96;1.&amp;#60;BeginSynchronous&amp;#62;b__7&amp;#40;IAsyncResult _&amp;#41; &amp;#43;10&lt;br /&gt;   System.Web.Mvc.Async.WrappedAsyncResult&amp;#96;1.End&amp;#40;&amp;#41; &amp;#43;55&lt;br /&gt;   System.Web.Mvc.&amp;#60;&amp;#62;c__DisplayClasse.&amp;#60;EndProcessRequest&amp;#62;b__d&amp;#40;&amp;#41; &amp;#43;47&lt;br /&gt;   System.Web.Mvc.SecurityUtil.&amp;#60;GetCallInAppTrustThunk&amp;#62;b__0&amp;#40;Action f&amp;#41; &amp;#43;7&lt;br /&gt;   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust&amp;#40;Action action&amp;#41; &amp;#43;23&lt;br /&gt;   System.Web.Mvc.MvcHandler.EndProcessRequest&amp;#40;IAsyncResult asyncResult&amp;#41; &amp;#43;59&lt;br /&gt;   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest&amp;#40;IAsyncResult result&amp;#41; &amp;#43;9&lt;br /&gt;   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute&amp;#40;&amp;#41; &amp;#43;9629708&lt;br /&gt;   System.Web.HttpApplication.ExecuteStep&amp;#40;IExecutionStep step, Boolean&amp;#38; completedSynchronously&amp;#41; &amp;#43;155&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;</description><author>pmarangoni</author><pubDate>Wed, 05 Sep 2012 02:33:01 GMT</pubDate><guid isPermaLink="false">Commented Issue: .NET 4.5 / MVC4 compatibility. Method not found exception [591] 20120905023301A</guid></item><item><title>Commented Issue: .NET 4.5 / MVC4 compatibility. Method not found exception [591]</title><link>http://razorengine.codeplex.com/workitem/591</link><description>I have Windows 7 64 bit, .NET 4.5 &amp;#40;preview&amp;#41; installed and ASP.NET MVC 4 &amp;#40;preview&amp;#41; installed.&lt;br /&gt;Got following exception&amp;#58; Method not found&amp;#58; System.Collections.Generic.Dictionary&amp;#96;2&amp;#60;System.String,BlockParser&amp;#62; System.Web.Razor.Parser.CSharpCodeParser.get_RazorKeywords&amp;#40;&amp;#41;&lt;br /&gt;&lt;br /&gt;Stack Trace&amp;#58;&lt;br /&gt;&amp;#123;&amp;#123;&amp;#123;&lt;br /&gt;&amp;#91;MissingMethodException&amp;#58; Method not found&amp;#58; &amp;#39;System.Collections.Generic.Dictionary&amp;#96;2&amp;#60;System.String,BlockParser&amp;#62; System.Web.Razor.Parser.CSharpCodeParser.get_RazorKeywords&amp;#40;&amp;#41;&amp;#39;.&amp;#93;&lt;br /&gt;   RazorEngine.Compilation.CSharp.CSharpCodeParser..ctor&amp;#40;&amp;#41; &amp;#43;0&lt;br /&gt;   RazorEngine.Compilation.RazorEngineHost.DecorateCodeParser&amp;#40;ParserBase incomingCodeParser&amp;#41; &amp;#43;138&lt;br /&gt;   System.Web.Razor.RazorTemplateEngine.CreateParser&amp;#40;&amp;#41; &amp;#43;57&lt;br /&gt;   System.Web.Razor.RazorTemplateEngine.GenerateCodeCore&amp;#40;ITextDocument input, String className, String rootNamespace, String sourceFileName, Nullable&amp;#96;1 cancelToken&amp;#41; &amp;#43;80&lt;br /&gt;   System.Web.Razor.RazorTemplateEngine.GenerateCode&amp;#40;TextReader input, String className, String rootNamespace, String sourceFileName, Nullable&amp;#96;1 cancelToken&amp;#41; &amp;#43;126&lt;br /&gt;   System.Web.Razor.RazorTemplateEngine.GenerateCode&amp;#40;TextReader input&amp;#41; &amp;#43;85&lt;br /&gt;   RazorEngine.Compilation.CompilerServiceBase.GetGeneratorResult&amp;#40;RazorEngineHost host, String template&amp;#41; &amp;#43;187&lt;br /&gt;   RazorEngine.Compilation.CompilerServiceBase.GetCodeCompileUnit&amp;#40;String className, String template, ISet&amp;#96;1 namespaceImports, Type templateType, Type modelType&amp;#41; &amp;#43;982&lt;br /&gt;   RazorEngine.Compilation.DirectCompilerServiceBase.Compile&amp;#40;TypeContext context&amp;#41; &amp;#43;442&lt;br /&gt;   RazorEngine.Compilation.DirectCompilerServiceBase.CompileType&amp;#40;TypeContext context&amp;#41; &amp;#43;189&lt;br /&gt;   RazorEngine.Templating.TemplateService.CreateTemplateType&amp;#40;String razorTemplate, Type modelType&amp;#41; &amp;#43;1526&lt;br /&gt;   RazorEngine.Templating.TemplateService.CreateTemplate&amp;#40;String razorTemplate, Type modelType, Object model&amp;#41; &amp;#43;107&lt;br /&gt;   RazorEngine.Templating.TemplateService.CreateTemplate&amp;#40;String razorTemplate, Object model&amp;#41; &amp;#43;98&lt;br /&gt;   RazorEngine.Templating.TemplateService.Parse&amp;#40;String razorTemplate, Object model&amp;#41; &amp;#43;94&lt;br /&gt;   RazorEngine.Razor.Parse&amp;#40;String razorTemplate, Object model&amp;#41; &amp;#43;102&lt;br /&gt;&amp;#125;&amp;#125;&amp;#125;&lt;br /&gt;Comments: ** Comment from web user: pmarangoni ** &lt;p&gt;I have the same exact error. I am also running Windows 7, 64 bit. The app is an MVC 3 app. I opened the project in Visual Studio 2012, and it made a bunch of modifications to the project to enable opening in both VS 2010 and VS 2012.&lt;/p&gt;</description><author>pmarangoni</author><pubDate>Wed, 05 Sep 2012 02:32:19 GMT</pubDate><guid isPermaLink="false">Commented Issue: .NET 4.5 / MVC4 compatibility. Method not found exception [591] 20120905023219A</guid></item><item><title>Commented Issue: .NET 4.5 / MVC4 compatibility. Method not found exception [591]</title><link>http://razorengine.codeplex.com/workitem/591</link><description>I have Windows 7 64 bit, .NET 4.5 &amp;#40;preview&amp;#41; installed and ASP.NET MVC 4 &amp;#40;preview&amp;#41; installed.&lt;br /&gt;Got following exception&amp;#58; Method not found&amp;#58; System.Collections.Generic.Dictionary&amp;#96;2&amp;#60;System.String,BlockParser&amp;#62; System.Web.Razor.Parser.CSharpCodeParser.get_RazorKeywords&amp;#40;&amp;#41;&lt;br /&gt;&lt;br /&gt;Stack Trace&amp;#58;&lt;br /&gt;&amp;#123;&amp;#123;&amp;#123;&lt;br /&gt;&amp;#91;MissingMethodException&amp;#58; Method not found&amp;#58; &amp;#39;System.Collections.Generic.Dictionary&amp;#96;2&amp;#60;System.String,BlockParser&amp;#62; System.Web.Razor.Parser.CSharpCodeParser.get_RazorKeywords&amp;#40;&amp;#41;&amp;#39;.&amp;#93;&lt;br /&gt;   RazorEngine.Compilation.CSharp.CSharpCodeParser..ctor&amp;#40;&amp;#41; &amp;#43;0&lt;br /&gt;   RazorEngine.Compilation.RazorEngineHost.DecorateCodeParser&amp;#40;ParserBase incomingCodeParser&amp;#41; &amp;#43;138&lt;br /&gt;   System.Web.Razor.RazorTemplateEngine.CreateParser&amp;#40;&amp;#41; &amp;#43;57&lt;br /&gt;   System.Web.Razor.RazorTemplateEngine.GenerateCodeCore&amp;#40;ITextDocument input, String className, String rootNamespace, String sourceFileName, Nullable&amp;#96;1 cancelToken&amp;#41; &amp;#43;80&lt;br /&gt;   System.Web.Razor.RazorTemplateEngine.GenerateCode&amp;#40;TextReader input, String className, String rootNamespace, String sourceFileName, Nullable&amp;#96;1 cancelToken&amp;#41; &amp;#43;126&lt;br /&gt;   System.Web.Razor.RazorTemplateEngine.GenerateCode&amp;#40;TextReader input&amp;#41; &amp;#43;85&lt;br /&gt;   RazorEngine.Compilation.CompilerServiceBase.GetGeneratorResult&amp;#40;RazorEngineHost host, String template&amp;#41; &amp;#43;187&lt;br /&gt;   RazorEngine.Compilation.CompilerServiceBase.GetCodeCompileUnit&amp;#40;String className, String template, ISet&amp;#96;1 namespaceImports, Type templateType, Type modelType&amp;#41; &amp;#43;982&lt;br /&gt;   RazorEngine.Compilation.DirectCompilerServiceBase.Compile&amp;#40;TypeContext context&amp;#41; &amp;#43;442&lt;br /&gt;   RazorEngine.Compilation.DirectCompilerServiceBase.CompileType&amp;#40;TypeContext context&amp;#41; &amp;#43;189&lt;br /&gt;   RazorEngine.Templating.TemplateService.CreateTemplateType&amp;#40;String razorTemplate, Type modelType&amp;#41; &amp;#43;1526&lt;br /&gt;   RazorEngine.Templating.TemplateService.CreateTemplate&amp;#40;String razorTemplate, Type modelType, Object model&amp;#41; &amp;#43;107&lt;br /&gt;   RazorEngine.Templating.TemplateService.CreateTemplate&amp;#40;String razorTemplate, Object model&amp;#41; &amp;#43;98&lt;br /&gt;   RazorEngine.Templating.TemplateService.Parse&amp;#40;String razorTemplate, Object model&amp;#41; &amp;#43;94&lt;br /&gt;   RazorEngine.Razor.Parse&amp;#40;String razorTemplate, Object model&amp;#41; &amp;#43;102&lt;br /&gt;&amp;#125;&amp;#125;&amp;#125;&lt;br /&gt;Comments: ** Comment from web user: evan2k ** &lt;p&gt;Got the same error. Same scenario &amp;#40;win 64&amp;#41;. Got it after installing mvc 4, on an MVC 3 app I was working on.&lt;/p&gt;</description><author>evan2k</author><pubDate>Tue, 24 Jul 2012 07:38:56 GMT</pubDate><guid isPermaLink="false">Commented Issue: .NET 4.5 / MVC4 compatibility. Method not found exception [591] 20120724073856A</guid></item><item><title>Created Issue: Caching templates like ASP MVC VIews [745]</title><link>http://razorengine.codeplex.com/workitem/745</link><description>Hi, &lt;br /&gt;this is awesome stuff man, &lt;br /&gt;could you please tell me what is the best way to add caching, so it behaves like normal asp mvc views, with auto invalidation of the cache&amp;#63; &lt;br /&gt;&lt;br /&gt;thanks in advanced.&lt;br /&gt;</description><author>DevMondo</author><pubDate>Thu, 19 Jul 2012 08:26:54 GMT</pubDate><guid isPermaLink="false">Created Issue: Caching templates like ASP MVC VIews [745] 20120719082654A</guid></item><item><title>Created Issue: Does not contain a definition for 'First' [742]</title><link>http://razorengine.codeplex.com/workitem/742</link><description>I am trying to introduce Linq extensions into a project I am using and continue to get the error&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#39;System.Collections.Generic.List&amp;#60;MyCustomType&amp;#62;&amp;#39; does not contain a definition for &amp;#39;First&amp;#39;&lt;br /&gt;&lt;br /&gt;when executing the .First&amp;#40;&amp;#41; extension method.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve tried updated various web.config settings per the documentation, but can&amp;#39;t seem to remedy the error.&lt;br /&gt;&lt;br /&gt;I did interrogate TemplateService _config private variable and it appears the these three namespace are configured&amp;#58; &lt;br /&gt;&lt;br /&gt;System&lt;br /&gt;System.Collections.Generic&lt;br /&gt;System.Linq&lt;br /&gt;&lt;br /&gt;but no changes I make to web.config seem to alter that configuration - so I may be chasing a rabbit.&lt;br /&gt;&lt;br /&gt;Any help would be greatly appreciated.&lt;br /&gt;&lt;br /&gt;Best regards and thanks for this excellent project.&lt;br /&gt;&lt;br /&gt;Hal&lt;br /&gt;</description><author>Widescreen</author><pubDate>Fri, 13 Jul 2012 14:37:04 GMT</pubDate><guid isPermaLink="false">Created Issue: Does not contain a definition for 'First' [742] 20120713023704P</guid></item><item><title>Commented Issue: Error with dynamically loaded assembly [706]</title><link>http://razorengine.codeplex.com/workitem/706</link><description>The error occurs when I try to load assembly dynamically which uses RazorEngine.&lt;br /&gt;&lt;br /&gt;Error text&amp;#58;&lt;br /&gt;System.Diagnostics.Contracts.__ContractsRuntime&amp;#43;ContractException&amp;#58; Precondition failed&amp;#58; templateType &amp;#33;&amp;#61; null&lt;br /&gt;at System.Diagnostics.Contracts.__ContractsRuntime.TriggerFailure&amp;#40;ContractFailureKind kind, String message, String userMessage, String conditionText, Exception inner&amp;#41;&lt;br /&gt;at System.Diagnostics.Contracts.__ContractsRuntime.ReportFailure&amp;#40;ContractFailureKind kind, String message, String conditionText, Exception inner&amp;#41;&lt;br /&gt;at System.Diagnostics.Contracts.__ContractsRuntime.Requires&amp;#40;Boolean condition, String message, String conditionText&amp;#41;&lt;br /&gt;at RazorEngine.Templating.InstanceContext..ctor&amp;#40;TypeLoader loader, Type templateType&amp;#41;&lt;br /&gt;at RazorEngine.Templating.TemplateService.CreateInstanceContext&amp;#40;Type templateType&amp;#41;&lt;br /&gt;at RazorEngine.Templating.TemplateService.CreateTemplate&amp;#40;Type templateType&amp;#41;&lt;br /&gt;at RazorEngine.Templating.TemplateService.CreateTemplate&amp;#40;Type templateType, T model&amp;#41;&lt;br /&gt;at RazorEngine.Templating.TemplateService.CreateTemplate&amp;#40;String razorTemplate, T model&amp;#41;&lt;br /&gt;at RazorEngine.Templating.TemplateService.Parse&amp;#40;String razorTemplate, T model&amp;#41;&lt;br /&gt;at System.Dynamic.UpdateDelegates.UpdateAndExecute3&amp;#60;T0,T1,T2,TRet&amp;#62;&amp;#40;CallSite site, T0 arg0, T1 arg1, T2 arg2&amp;#41;&lt;br /&gt;at TestConsoleApp.TemplateService.Parse&amp;#40;String templateFileName, Object model&amp;#41; in TemplateService.cs&amp;#58; line 28&lt;br /&gt;at System.Dynamic.UpdateDelegates.UpdateAndExecute3&amp;#60;T0,T1,T2,TRet&amp;#62;&amp;#40;CallSite site, T0 arg0, T1 arg1, T2 arg2&amp;#41;&lt;br /&gt;at TestConsoleApp.Tests.UnitTest1.TestMethod2&amp;#40;&amp;#41; in UnitTest1.cs&amp;#58; line 56&lt;br /&gt;&lt;br /&gt;The unit test to generate the error&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#91;TestMethod&amp;#93;&lt;br /&gt;        public void TestMethod2&amp;#40;&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            var template &amp;#61; &amp;#34;&amp;#60;h1&amp;#62;This is ID &amp;#64;Model.Id&amp;#60;&amp;#47;h1&amp;#62;&amp;#60;p&amp;#62;Items count&amp;#58; &amp;#64;Model.Items.Count&amp;#40;&amp;#41;&amp;#60;&amp;#47;p&amp;#62;&amp;#60;p&amp;#62;Regards&amp;#60;&amp;#47;p&amp;#62;&amp;#34;&amp;#59;&lt;br /&gt;            var model &amp;#61; new Model &amp;#123; Id &amp;#61; 12, Items &amp;#61; new List&amp;#60;string&amp;#62; &amp;#123; &amp;#34;&amp;#34;, &amp;#34;&amp;#34;, &amp;#34;&amp;#34; &amp;#125; &amp;#125;&amp;#59;&lt;br /&gt;            var expectedResult &amp;#61; &amp;#34;&amp;#60;h1&amp;#62;This is ID 12&amp;#60;&amp;#47;h1&amp;#62;&amp;#60;p&amp;#62;Items count&amp;#58; 3&amp;#60;&amp;#47;p&amp;#62;&amp;#60;p&amp;#62;Regards&amp;#60;&amp;#47;p&amp;#62;&amp;#34;&amp;#59;&lt;br /&gt;&lt;br /&gt;            var assembly &amp;#61; Assembly.LoadFrom&amp;#40;&amp;#64;&amp;#34;..&amp;#92;..&amp;#92;..&amp;#92;TestConsoleApp&amp;#92;bin&amp;#92;Debug&amp;#92;TestConsoleApp.dll&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            dynamic builder &amp;#61; assembly.CreateInstance&amp;#40;&amp;#34;TestConsoleApp.TemplateService&amp;#34;, true, BindingFlags.Instance &amp;#124; BindingFlags.Public, null, null, null, null&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            var result &amp;#61; builder.Parse&amp;#40;template, model&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            Assert.AreEqual&amp;#40;expectedResult, result&amp;#41;&amp;#59;&lt;br /&gt;        &amp;#125;&lt;br /&gt;&lt;br /&gt;Template service in TestConsoleApp&amp;#58;&lt;br /&gt;&lt;br /&gt;public class TemplateService&lt;br /&gt;    &amp;#123;&lt;br /&gt;        public string Parse&amp;#40;string template, dynamic model&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            return Razor.Parse&amp;#40;template, model&amp;#41;&amp;#59;&lt;br /&gt;        &amp;#125;&lt;br /&gt;    &amp;#125;&lt;br /&gt;Comments: ** Comment from web user: tomgallard ** &lt;p&gt;I&amp;#39;ve spent the best part of today digging through the code to try and work out why this is happening.&lt;/p&gt;&lt;p&gt;It seems to be, that RazorEngine generates an assembly dynamically, which uses the template and Model class.&lt;/p&gt;&lt;p&gt;As your Model class is defined in your TestConsoleApp.dll, this dynamic assembly references TestConsoleApp.dll&lt;/p&gt;&lt;p&gt;When the runtime tries to instantiate the dynamic assembly, it cannot find TestConsoleApp.dll &amp;#40;as this dll is not in the search path for the application&amp;#41;, and fails.&lt;/p&gt;&lt;p&gt;I have found two possible solutions&amp;#58;&lt;/p&gt;&lt;p&gt;1.&amp;#41; Use an anonymous type for your model e.g.&amp;#58;&lt;br /&gt;    var model &amp;#61; new &amp;#123; Prop1 &amp;#61; &amp;#34;x&amp;#34;, Prop2 &amp;#61; &amp;#34;y&amp;#34; &amp;#125;&amp;#59;&lt;/p&gt;&lt;p&gt;2.&amp;#41; Hook into the AppDomain&amp;#39;s AssemblyResolve event and point it to the right directory&amp;#58;&lt;/p&gt;&lt;p&gt;AppDomain currentDomain &amp;#61; AppDomain.CurrentDomain&amp;#59;&lt;br /&gt;            currentDomain.AssemblyResolve &amp;#43;&amp;#61; new ResolveEventHandler&amp;#40;LoadAssembly&amp;#41;&amp;#59;&lt;/p&gt;&lt;p&gt;public Assembly LoadAssembly&amp;#40;object sender, ResolveEventArgs args&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;rn Assembly.LoadFrom&amp;#40;&amp;#34;..&amp;#92;..&amp;#92;..&amp;#92;TestConsoleApp&amp;#92;bin&amp;#92;Debug&amp;#92;&amp;#34; &amp;#43; AssemblyName&amp;#40;args.Name&amp;#41;.Name &amp;#43; &amp;#34;.dll&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;        &amp;#125;&lt;/p&gt;</description><author>tomgallard</author><pubDate>Wed, 09 May 2012 15:44:27 GMT</pubDate><guid isPermaLink="false">Commented Issue: Error with dynamically loaded assembly [706] 20120509034427P</guid></item><item><title>Commented Issue: Razor and JavaScript parsing issue [721]</title><link>http://razorengine.codeplex.com/workitem/721</link><description>Created a new MVC4 web application using the mobile template. I added a controller based on a EF entity which resulted in some code being generated and a view which has JavaScript representing the client API at the end. The JavaScript contains a method &amp;#34;deleteRow&amp;#34; which gets rendered incorrectly by the Razor view engine.&lt;br /&gt;&lt;br /&gt;The problem seems to be that the Razor view engine does not recognise the inserted commands &amp;#40;e.g. &amp;#34;&amp;#39;&amp;#64;Html.Raw&amp;#40;Url.Action&amp;#40;&amp;#34;Delete&amp;#34;, new &amp;#123; id &amp;#61; &amp;#34;__ID__&amp;#34; &amp;#125;&amp;#41;&amp;#41;&amp;#39;&amp;#34;&amp;#41; under certain conditions. I have attached the full view file.&lt;br /&gt;&lt;br /&gt;The method is as follow&amp;#58;&lt;br /&gt;&lt;br /&gt;        function deleteRow&amp;#40;row&amp;#41; &amp;#123;&lt;br /&gt;            if &amp;#40;confirm&amp;#40;&amp;#39;Are you sure you want to delete this row&amp;#63;&amp;#39;&amp;#41;&amp;#41; &amp;#123;&lt;br /&gt;                &amp;#36;.post&amp;#40;&amp;#39;&amp;#64;Html.Raw&amp;#40;Url.Action&amp;#40;&amp;#34;Delete&amp;#34;, new &amp;#123; id &amp;#61; &amp;#34;__ID__&amp;#34; &amp;#125;&amp;#41;&amp;#41;&amp;#39;.replace&amp;#40;&amp;#47;__ID__&amp;#47;, row.data&amp;#40;&amp;#39;pkey&amp;#39;&amp;#41;&amp;#41;&amp;#41;&lt;br /&gt;                    .done&amp;#40;function&amp;#40;&amp;#41; &amp;#123;&lt;br /&gt;                        row.remove&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;                        totalRowCount--&amp;#59;&lt;br /&gt;                    &amp;#125;&amp;#41;&lt;br /&gt;                    .fail&amp;#40;function&amp;#40;&amp;#41; &amp;#123;&lt;br /&gt;                        alert&amp;#40;&amp;#39;Row deletion failed.&amp;#39;&amp;#41;&amp;#59;&lt;br /&gt;                    &amp;#125;&amp;#41;&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;        &amp;#125;&lt;br /&gt;&lt;br /&gt;Changing the method to the following results in the view being rendered correctly&amp;#58;&lt;br /&gt;&lt;br /&gt;        function deleteRow&amp;#40;row&amp;#41; &amp;#123;&lt;br /&gt;            if &amp;#40;confirm&amp;#40;&amp;#39;Are you sure you want to delete this row&amp;#63;&amp;#39;&amp;#41;&amp;#41; &amp;#123;&lt;br /&gt;                var url &amp;#61; &amp;#39;&amp;#64;Html.Raw&amp;#40;Url.Action&amp;#40;&amp;#34;Delete&amp;#34;, new &amp;#123; id &amp;#61; &amp;#34;__ID__&amp;#34; &amp;#125;&amp;#41;&amp;#41;&amp;#39;&amp;#59;&lt;br /&gt;                &amp;#36;.post&amp;#40;url.replace&amp;#40;&amp;#47;__ID__&amp;#47;, row.data&amp;#40;&amp;#39;pkey&amp;#39;&amp;#41;&amp;#41;&amp;#41;&lt;br /&gt;                    .done&amp;#40;function&amp;#40;&amp;#41; &amp;#123;&lt;br /&gt;                        row.remove&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;                        totalRowCount--&amp;#59;&lt;br /&gt;                    &amp;#125;&amp;#41;&lt;br /&gt;                    .fail&amp;#40;function&amp;#40;&amp;#41; &amp;#123;&lt;br /&gt;                        alert&amp;#40;&amp;#39;Row deletion failed.&amp;#39;&amp;#41;&amp;#59;&lt;br /&gt;                    &amp;#125;&amp;#41;&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;        &amp;#125;&lt;br /&gt;Comments: ** Comment from web user: schalkvanwyk ** &lt;p&gt;Please ignore, coincidently posted to wrong project&lt;/p&gt;</description><author>schalkvanwyk</author><pubDate>Tue, 08 May 2012 20:02:18 GMT</pubDate><guid isPermaLink="false">Commented Issue: Razor and JavaScript parsing issue [721] 20120508080218P</guid></item><item><title>Created Issue: Razor and JavaScript parsing issue [721]</title><link>http://razorengine.codeplex.com/workitem/721</link><description>Created a new MVC4 web application using the mobile template. I added a controller based on a EF entity which resulted in some code being generated and a view which has JavaScript representing the client API at the end. The JavaScript contains a method &amp;#34;deleteRow&amp;#34; which gets rendered incorrectly by the Razor view engine.&lt;br /&gt;&lt;br /&gt;The problem seems to be that the Razor view engine does not recognise the inserted commands &amp;#40;e.g. &amp;#34;&amp;#39;&amp;#64;Html.Raw&amp;#40;Url.Action&amp;#40;&amp;#34;Delete&amp;#34;, new &amp;#123; id &amp;#61; &amp;#34;__ID__&amp;#34; &amp;#125;&amp;#41;&amp;#41;&amp;#39;&amp;#34;&amp;#41; under certain conditions. I have attached the full view file.&lt;br /&gt;&lt;br /&gt;The method is as follow&amp;#58;&lt;br /&gt;&lt;br /&gt;        function deleteRow&amp;#40;row&amp;#41; &amp;#123;&lt;br /&gt;            if &amp;#40;confirm&amp;#40;&amp;#39;Are you sure you want to delete this row&amp;#63;&amp;#39;&amp;#41;&amp;#41; &amp;#123;&lt;br /&gt;                &amp;#36;.post&amp;#40;&amp;#39;&amp;#64;Html.Raw&amp;#40;Url.Action&amp;#40;&amp;#34;Delete&amp;#34;, new &amp;#123; id &amp;#61; &amp;#34;__ID__&amp;#34; &amp;#125;&amp;#41;&amp;#41;&amp;#39;.replace&amp;#40;&amp;#47;__ID__&amp;#47;, row.data&amp;#40;&amp;#39;pkey&amp;#39;&amp;#41;&amp;#41;&amp;#41;&lt;br /&gt;                    .done&amp;#40;function&amp;#40;&amp;#41; &amp;#123;&lt;br /&gt;                        row.remove&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;                        totalRowCount--&amp;#59;&lt;br /&gt;                    &amp;#125;&amp;#41;&lt;br /&gt;                    .fail&amp;#40;function&amp;#40;&amp;#41; &amp;#123;&lt;br /&gt;                        alert&amp;#40;&amp;#39;Row deletion failed.&amp;#39;&amp;#41;&amp;#59;&lt;br /&gt;                    &amp;#125;&amp;#41;&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;        &amp;#125;&lt;br /&gt;&lt;br /&gt;Changing the method to the following results in the view being rendered correctly&amp;#58;&lt;br /&gt;&lt;br /&gt;        function deleteRow&amp;#40;row&amp;#41; &amp;#123;&lt;br /&gt;            if &amp;#40;confirm&amp;#40;&amp;#39;Are you sure you want to delete this row&amp;#63;&amp;#39;&amp;#41;&amp;#41; &amp;#123;&lt;br /&gt;                var url &amp;#61; &amp;#39;&amp;#64;Html.Raw&amp;#40;Url.Action&amp;#40;&amp;#34;Delete&amp;#34;, new &amp;#123; id &amp;#61; &amp;#34;__ID__&amp;#34; &amp;#125;&amp;#41;&amp;#41;&amp;#39;&amp;#59;&lt;br /&gt;                &amp;#36;.post&amp;#40;url.replace&amp;#40;&amp;#47;__ID__&amp;#47;, row.data&amp;#40;&amp;#39;pkey&amp;#39;&amp;#41;&amp;#41;&amp;#41;&lt;br /&gt;                    .done&amp;#40;function&amp;#40;&amp;#41; &amp;#123;&lt;br /&gt;                        row.remove&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;                        totalRowCount--&amp;#59;&lt;br /&gt;                    &amp;#125;&amp;#41;&lt;br /&gt;                    .fail&amp;#40;function&amp;#40;&amp;#41; &amp;#123;&lt;br /&gt;                        alert&amp;#40;&amp;#39;Row deletion failed.&amp;#39;&amp;#41;&amp;#59;&lt;br /&gt;                    &amp;#125;&amp;#41;&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;        &amp;#125;&lt;br /&gt;</description><author>schalkvanwyk</author><pubDate>Tue, 08 May 2012 19:47:43 GMT</pubDate><guid isPermaLink="false">Created Issue: Razor and JavaScript parsing issue [721] 20120508074743P</guid></item><item><title>Commented Issue: Calling Run or Parse with Interface or Abstract Type [412]</title><link>http://razorengine.codeplex.com/workitem/412</link><description>When calling the Razor.Parse or Razor.Run with an object that is an interface or an abstract class, it does not use the generic type of the object. Can you expose another method for this, or handle appropriately&amp;#63;&lt;br /&gt;&lt;br /&gt;We had to do something like this to get it to work&amp;#58;&lt;br /&gt;&lt;br /&gt;return &amp;#40;string&amp;#41; typeof &amp;#40;Razor&amp;#41;.GetMethods&amp;#40;&amp;#41;&lt;br /&gt;                                    .Where&amp;#40;m &amp;#61;&amp;#62; m.Name &amp;#61;&amp;#61; &amp;#34;Run&amp;#34; &amp;#38;&amp;#38; m.ContainsGenericParameters&amp;#41;&lt;br /&gt;                                    .First&amp;#40;&amp;#41;&lt;br /&gt;                                    .MakeGenericMethod&amp;#40;model.GetType&amp;#40;&amp;#41;&amp;#41;&lt;br /&gt;                                    .Invoke&amp;#40;null, new&amp;#91;&amp;#93; &amp;#123;&amp;#40;object&amp;#41; model, compiledTemplateName&amp;#125;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;Sample Test&amp;#58;&lt;br /&gt;&amp;#91;Test&amp;#93;&lt;br /&gt;        public void Renders_correctly_when_model_is_supplied_as_base_type_or_interface&amp;#40;&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            _templateLoader.Stub&amp;#40;m &amp;#61;&amp;#62; m.Load&amp;#40;&amp;#34;ParentTemplate&amp;#34;&amp;#41;&amp;#41;.Return&amp;#40;&amp;#34;Parent Template -- &amp;#64;Include&amp;#40;&amp;#92;&amp;#34;ChildTemplate&amp;#92;&amp;#34;, Model.Val2&amp;#41; --&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;            _templateLoader.Stub&amp;#40;m &amp;#61;&amp;#62; m.Load&amp;#40;&amp;#34;ChildTemplate&amp;#34;&amp;#41;&amp;#41;.Return&amp;#40;&amp;#34;Child Template and &amp;#64;Model&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;            &lt;br /&gt;            var message &amp;#61; new MailMessage&amp;#40;&amp;#34;test1&amp;#64;glgroup.com&amp;#34;, &amp;#34;Test2&amp;#64;glgroup.com&amp;#34;, &amp;#34;Test3&amp;#64;glgroup.com&amp;#34;, &amp;#34;&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            try&lt;br /&gt;            &amp;#123;&lt;br /&gt;                _emailer.SendEmail&amp;#40;message, &amp;#40;IEmailModel&amp;#41;new TestEmailModel&amp;#40;&amp;#41;, &amp;#34;ParentTemplate&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;            catch &amp;#40;Exception e&amp;#41;&lt;br /&gt;            &amp;#123;&lt;br /&gt;                if &amp;#40;e is TemplateCompilationException&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    Console.WriteLine&amp;#40;string.Join&amp;#40;&amp;#34;,&amp;#34;, &amp;#40;&amp;#40;TemplateCompilationException&amp;#41;e&amp;#41;.Errors&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;                &amp;#125;&lt;br /&gt;                else&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    Console.WriteLine&amp;#40;e&amp;#41;&amp;#59;&lt;br /&gt;                &amp;#125;&lt;br /&gt;            &amp;#125;&lt;br /&gt;&lt;br /&gt;            Assert.That&amp;#40;message.Body, Is.EqualTo&amp;#40;&amp;#34;Parent Template -- Child Template and It&amp;#39;s a val2 --&amp;#34;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;        &amp;#125;&lt;br /&gt;Comments: ** Comment from web user: chrisvenus ** &lt;p&gt;I&amp;#39;ve encountered a similar problem with a base class trying to pass &amp;#34;this&amp;#34; into the Razor.Parse method.&lt;/p&gt;&lt;p&gt;From what I can see the problem stems from the fact that the Parse method &amp;#40;and I assume the run method&amp;#41; use typeof&amp;#40;T&amp;#41; to get the type rather than model.GetType&amp;#40;&amp;#41; so it binds to the compile time type &amp;#40;eg the interface, abstract class, etc.&amp;#41; rather than the actual runtime type of the object.&lt;/p&gt;&lt;p&gt;I&amp;#39;m not familiar enough with Razor to know if there is a good reason for this or if it is just a bug. In general though I would have thought youw ant to use the specific runtime type - if the template expects the compiletime type then it will still work if it expects the runtime type then it will work.&lt;/p&gt;&lt;p&gt;Conversely as it currently stands if the template expects the compile time type then it works but if it expects the runtime type then it throws errors.&lt;/p&gt;&lt;p&gt;It looks like it should be easy enough to fix though I guess the harder bit is updating all the tests that are run to make sure it does the right thing to include this new scenario. &amp;#58;&amp;#41;&lt;br /&gt;&lt;/p&gt;</description><author>chrisvenus</author><pubDate>Wed, 02 May 2012 13:28:56 GMT</pubDate><guid isPermaLink="false">Commented Issue: Calling Run or Parse with Interface or Abstract Type [412] 20120502012856P</guid></item><item><title>Commented Issue: The type or namespace name 'RazorEngine' could not be found [713]</title><link>http://razorengine.codeplex.com/workitem/713</link><description>I keep getting this error no matter what I try. I thought it was because my project was using a client profile but its not. Its set to 4.0. I&amp;#39;m using the 3.0.8.0 beta assembly that I installed using nuget. Is that assembly built using the &amp;#34;client profile&amp;#34; or the normal profile&amp;#63;&lt;br /&gt;Comments: ** Comment from web user: degree451 ** &lt;p&gt;Just downloaded the source and my assumption was correct. the 2.1 version and 3.0 are both using the client profile which was causing this error. Manually compiled both against normal 4.0 framework and all is well now.&lt;/p&gt;</description><author>degree451</author><pubDate>Fri, 27 Apr 2012 06:59:50 GMT</pubDate><guid isPermaLink="false">Commented Issue: The type or namespace name 'RazorEngine' could not be found [713] 20120427065950A</guid></item><item><title>Created Issue: The type or namespace name 'RazorEngine' could not be found [713]</title><link>http://razorengine.codeplex.com/workitem/713</link><description>I keep getting this error no matter what I try. I thought it was because my project was using a client profile but that is not the case. I&amp;#39;m using the 3.0.8.0 beta assembly that I installed using nuget. Is that assembly built using the &amp;#34;client profile&amp;#34; or the normal profile&amp;#63;&lt;br /&gt;</description><author>degree451</author><pubDate>Fri, 27 Apr 2012 05:03:44 GMT</pubDate><guid isPermaLink="false">Created Issue: The type or namespace name 'RazorEngine' could not be found [713] 20120427050344A</guid></item><item><title>Created Issue: Error with dynamically loaded assembly [706]</title><link>http://razorengine.codeplex.com/workitem/706</link><description>The error occurs when I try to load assembly dinamically which uses RazorEngine.&lt;br /&gt;&lt;br /&gt;Error text&amp;#58;&lt;br /&gt;System.Diagnostics.Contracts.__ContractsRuntime&amp;#43;ContractException&amp;#58; Precondition failed&amp;#58; templateType &amp;#33;&amp;#61; null&lt;br /&gt;at System.Diagnostics.Contracts.__ContractsRuntime.TriggerFailure&amp;#40;ContractFailureKind kind, String message, String userMessage, String conditionText, Exception inner&amp;#41;&lt;br /&gt;at System.Diagnostics.Contracts.__ContractsRuntime.ReportFailure&amp;#40;ContractFailureKind kind, String message, String conditionText, Exception inner&amp;#41;&lt;br /&gt;at System.Diagnostics.Contracts.__ContractsRuntime.Requires&amp;#40;Boolean condition, String message, String conditionText&amp;#41;&lt;br /&gt;at RazorEngine.Templating.InstanceContext..ctor&amp;#40;TypeLoader loader, Type templateType&amp;#41;&lt;br /&gt;at RazorEngine.Templating.TemplateService.CreateInstanceContext&amp;#40;Type templateType&amp;#41;&lt;br /&gt;at RazorEngine.Templating.TemplateService.CreateTemplate&amp;#40;Type templateType&amp;#41;&lt;br /&gt;at RazorEngine.Templating.TemplateService.CreateTemplate&amp;#40;Type templateType, T model&amp;#41;&lt;br /&gt;at RazorEngine.Templating.TemplateService.CreateTemplate&amp;#40;String razorTemplate, T model&amp;#41;&lt;br /&gt;at RazorEngine.Templating.TemplateService.Parse&amp;#40;String razorTemplate, T model&amp;#41;&lt;br /&gt;at System.Dynamic.UpdateDelegates.UpdateAndExecute3&amp;#60;T0,T1,T2,TRet&amp;#62;&amp;#40;CallSite site, T0 arg0, T1 arg1, T2 arg2&amp;#41;&lt;br /&gt;at TestConsoleApp.TemplateService.Parse&amp;#40;String templateFileName, Object model&amp;#41; in TemplateService.cs&amp;#58; line 28&lt;br /&gt;at System.Dynamic.UpdateDelegates.UpdateAndExecute3&amp;#60;T0,T1,T2,TRet&amp;#62;&amp;#40;CallSite site, T0 arg0, T1 arg1, T2 arg2&amp;#41;&lt;br /&gt;at TestConsoleApp.Tests.UnitTest1.TestMethod2&amp;#40;&amp;#41; in UnitTest1.cs&amp;#58; line 56&lt;br /&gt;&lt;br /&gt;The unit test to generate the error&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#91;TestMethod&amp;#93;&lt;br /&gt;        public void TestMethod2&amp;#40;&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            var template &amp;#61; &amp;#34;&amp;#60;h1&amp;#62;This is ID &amp;#64;Model.Id&amp;#60;&amp;#47;h1&amp;#62;&amp;#60;p&amp;#62;Items count&amp;#58; &amp;#64;Model.Items.Count&amp;#40;&amp;#41;&amp;#60;&amp;#47;p&amp;#62;&amp;#60;p&amp;#62;Regards&amp;#60;&amp;#47;p&amp;#62;&amp;#34;&amp;#59;&lt;br /&gt;            var model &amp;#61; new Model &amp;#123; Id &amp;#61; 12, Items &amp;#61; new List&amp;#60;string&amp;#62; &amp;#123; &amp;#34;&amp;#34;, &amp;#34;&amp;#34;, &amp;#34;&amp;#34; &amp;#125; &amp;#125;&amp;#59;&lt;br /&gt;            var expectedResult &amp;#61; &amp;#34;&amp;#60;h1&amp;#62;This is ID 12&amp;#60;&amp;#47;h1&amp;#62;&amp;#60;p&amp;#62;Items count&amp;#58; 3&amp;#60;&amp;#47;p&amp;#62;&amp;#60;p&amp;#62;Regards&amp;#60;&amp;#47;p&amp;#62;&amp;#34;&amp;#59;&lt;br /&gt;&lt;br /&gt;            var assembly &amp;#61; Assembly.LoadFrom&amp;#40;&amp;#64;&amp;#34;..&amp;#92;..&amp;#92;..&amp;#92;TestConsoleApp&amp;#92;bin&amp;#92;Debug&amp;#92;TestConsoleApp.dll&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            dynamic builder &amp;#61; assembly.CreateInstance&amp;#40;&amp;#34;TestConsoleApp.TemplateService&amp;#34;, true, BindingFlags.Instance &amp;#124; BindingFlags.Public, null, null, null, null&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            var result &amp;#61; builder.Parse&amp;#40;template, model&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            Assert.AreEqual&amp;#40;expectedResult, result&amp;#41;&amp;#59;&lt;br /&gt;        &amp;#125;&lt;br /&gt;&lt;br /&gt;Template service in TestConsoleApp&amp;#58;&lt;br /&gt;&lt;br /&gt;public class TemplateService&lt;br /&gt;    &amp;#123;&lt;br /&gt;        public string Parse&amp;#40;string template, dynamic model&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            return Razor.Parse&amp;#40;template, model&amp;#41;&amp;#59;&lt;br /&gt;        &amp;#125;&lt;br /&gt;    &amp;#125;&lt;br /&gt;</description><author>WStealth</author><pubDate>Fri, 06 Apr 2012 14:35:43 GMT</pubDate><guid isPermaLink="false">Created Issue: Error with dynamically loaded assembly [706] 20120406023543P</guid></item><item><title>Commented Issue: An assembly with the same simple name  has already been imported [532]</title><link>http://razorengine.codeplex.com/workitem/532</link><description>I&amp;#39;ve started getting this in my web application that makes use of RazorEngine.  It started after an update in which I copied in some new DLLs.  It&amp;#39;s not always the same DLL it&amp;#39;s failing on - sometimes it&amp;#39;s one of my library DLLs and sometimes it&amp;#39;s the web app&amp;#39;s DLL.  There are not multiple copies of the DLLs.  The template has previously been parsed and compiled &amp;#40;prior to the app restart from updating the &amp;#47;bin folder&amp;#41;.  Do the cached copies of the compiled templates get persisted somewhere that would cause problems when an app restart occurs&amp;#63;&lt;br /&gt;&lt;br /&gt;Error Parsing Template&amp;#58; RazorEngine.Templating.TemplateCompilationException&amp;#58; Unable to compile template. An assembly with the same simple name &amp;#39;MyAssembly, Version&amp;#61;1.0.0.0, Culture&amp;#61;neutral, PublicKeyToken&amp;#61;null has already been imported. Try removing one of the references or sign them to enable side-by-side. Other compilation errors may have occurred. Check the Errors property for more information. at RazorEngine.Compilation.DirectCompilerServiceBase.CompileType&amp;#40;TypeContext context&amp;#41; in C&amp;#58;&amp;#92;Dev&amp;#92;RazorEngine&amp;#92;src&amp;#92;Core&amp;#92;RazorEngine.Core&amp;#92;Compilation&amp;#92;DirectCompilerServiceBase.cs&amp;#58;line 106 at RazorEngine.Templating.TemplateService.CreateTemplateType&amp;#40;String razorTemplate, Type modelType&amp;#41; in C&amp;#58;&amp;#92;Dev&amp;#92;RazorEngine&amp;#92;src&amp;#92;Core&amp;#92;RazorEngine.Core&amp;#92;Templating&amp;#92;TemplateService.cs&amp;#58;line 287 at RazorEngine.Templating.TemplateService.GetTemplate&amp;#91;T&amp;#93;&amp;#40;String razorTemplate, T model, String name&amp;#41; in C&amp;#58;&amp;#92;Dev&amp;#92;RazorEngine&amp;#92;src&amp;#92;Core&amp;#92;RazorEngine.Core&amp;#92;Templating&amp;#92;TemplateService.cs&amp;#58;line 459 at RazorEngine.Templating.TemplateService.Parse&amp;#91;T&amp;#93;&amp;#40;String razorTemplate, T model, String name&amp;#41; in C&amp;#58;&amp;#92;Dev&amp;#92;RazorEngine&amp;#92;src&amp;#92;Core&amp;#92;RazorEngine.Core&amp;#92;Templating&amp;#92;TemplateService.cs&amp;#58;line 628&lt;br /&gt;Comments: ** Comment from web user: WStealth ** &lt;p&gt;I have this error as well &amp;#58;&amp;#40;&lt;/p&gt;</description><author>WStealth</author><pubDate>Fri, 06 Apr 2012 12:39:48 GMT</pubDate><guid isPermaLink="false">Commented Issue: An assembly with the same simple name  has already been imported [532] 20120406123948P</guid></item><item><title>Commented Issue: An assembly with the same simple name  has already been imported [532]</title><link>http://razorengine.codeplex.com/workitem/532</link><description>I&amp;#39;ve started getting this in my web application that makes use of RazorEngine.  It started after an update in which I copied in some new DLLs.  It&amp;#39;s not always the same DLL it&amp;#39;s failing on - sometimes it&amp;#39;s one of my library DLLs and sometimes it&amp;#39;s the web app&amp;#39;s DLL.  There are not multiple copies of the DLLs.  The template has previously been parsed and compiled &amp;#40;prior to the app restart from updating the &amp;#47;bin folder&amp;#41;.  Do the cached copies of the compiled templates get persisted somewhere that would cause problems when an app restart occurs&amp;#63;&lt;br /&gt;&lt;br /&gt;Error Parsing Template&amp;#58; RazorEngine.Templating.TemplateCompilationException&amp;#58; Unable to compile template. An assembly with the same simple name &amp;#39;MyAssembly, Version&amp;#61;1.0.0.0, Culture&amp;#61;neutral, PublicKeyToken&amp;#61;null has already been imported. Try removing one of the references or sign them to enable side-by-side. Other compilation errors may have occurred. Check the Errors property for more information. at RazorEngine.Compilation.DirectCompilerServiceBase.CompileType&amp;#40;TypeContext context&amp;#41; in C&amp;#58;&amp;#92;Dev&amp;#92;RazorEngine&amp;#92;src&amp;#92;Core&amp;#92;RazorEngine.Core&amp;#92;Compilation&amp;#92;DirectCompilerServiceBase.cs&amp;#58;line 106 at RazorEngine.Templating.TemplateService.CreateTemplateType&amp;#40;String razorTemplate, Type modelType&amp;#41; in C&amp;#58;&amp;#92;Dev&amp;#92;RazorEngine&amp;#92;src&amp;#92;Core&amp;#92;RazorEngine.Core&amp;#92;Templating&amp;#92;TemplateService.cs&amp;#58;line 287 at RazorEngine.Templating.TemplateService.GetTemplate&amp;#91;T&amp;#93;&amp;#40;String razorTemplate, T model, String name&amp;#41; in C&amp;#58;&amp;#92;Dev&amp;#92;RazorEngine&amp;#92;src&amp;#92;Core&amp;#92;RazorEngine.Core&amp;#92;Templating&amp;#92;TemplateService.cs&amp;#58;line 459 at RazorEngine.Templating.TemplateService.Parse&amp;#91;T&amp;#93;&amp;#40;String razorTemplate, T model, String name&amp;#41; in C&amp;#58;&amp;#92;Dev&amp;#92;RazorEngine&amp;#92;src&amp;#92;Core&amp;#92;RazorEngine.Core&amp;#92;Templating&amp;#92;TemplateService.cs&amp;#58;line 628&lt;br /&gt;Comments: ** Comment from web user: mickdelaney ** &lt;p&gt;using v3.0.7 still getting error....  this time its when running in a resharper unit test session.. its trying to load the same nunit framework dll more than once. &lt;/p&gt;</description><author>mickdelaney</author><pubDate>Tue, 21 Feb 2012 15:55:57 GMT</pubDate><guid isPermaLink="false">Commented Issue: An assembly with the same simple name  has already been imported [532] 20120221035557P</guid></item><item><title>Created Issue: TemplateBase._Layout [597]</title><link>http://razorengine.codeplex.com/workitem/597</link><description>Does the _Layout property serve the same purpose as WebPageBase.Layout in MVC&amp;#63; If so, then shouldn&amp;#39;t it be named without the underscore prefix&amp;#63;&lt;br /&gt;&lt;br /&gt;There is a convention of the default layout being _Layout.cshtml &amp;#40;and prefixing layouts and partials with an underscore, in general&amp;#41;. Is this just a carryover from this pattern&amp;#63;&lt;br /&gt;&lt;br /&gt;I only suggest this because&lt;br /&gt;&lt;br /&gt;    &amp;#64;&amp;#123;&lt;br /&gt;        _Layout &amp;#61; &amp;#34;_Layout.cshtml&amp;#34;&amp;#59;&lt;br /&gt;    &amp;#125;&lt;br /&gt;&lt;br /&gt;looks a little strange.&lt;br /&gt;</description><author>toddlucas</author><pubDate>Thu, 09 Feb 2012 07:12:40 GMT</pubDate><guid isPermaLink="false">Created Issue: TemplateBase._Layout [597] 20120209071240A</guid></item><item><title>Created Issue: .NET 4.5 / MVC4 compatibility. Method not found exception [591]</title><link>http://razorengine.codeplex.com/workitem/591</link><description>I have Windows 7 64 bit, .NET 4.5 &amp;#40;preview&amp;#41; installed and ASP.NET MVC 4 &amp;#40;preview&amp;#41; installed.&lt;br /&gt;Got following exception&amp;#58; Method not found&amp;#58; System.Collections.Generic.Dictionary&amp;#96;2&amp;#60;System.String,BlockParser&amp;#62; System.Web.Razor.Parser.CSharpCodeParser.get_RazorKeywords&amp;#40;&amp;#41;&lt;br /&gt;&lt;br /&gt;Stack Trace&amp;#58;&lt;br /&gt;&amp;#123;&amp;#123;&amp;#123;&lt;br /&gt;&amp;#91;MissingMethodException&amp;#58; Method not found&amp;#58; &amp;#39;System.Collections.Generic.Dictionary&amp;#96;2&amp;#60;System.String,BlockParser&amp;#62; System.Web.Razor.Parser.CSharpCodeParser.get_RazorKeywords&amp;#40;&amp;#41;&amp;#39;.&amp;#93;&lt;br /&gt;   RazorEngine.Compilation.CSharp.CSharpCodeParser..ctor&amp;#40;&amp;#41; &amp;#43;0&lt;br /&gt;   RazorEngine.Compilation.RazorEngineHost.DecorateCodeParser&amp;#40;ParserBase incomingCodeParser&amp;#41; &amp;#43;138&lt;br /&gt;   System.Web.Razor.RazorTemplateEngine.CreateParser&amp;#40;&amp;#41; &amp;#43;57&lt;br /&gt;   System.Web.Razor.RazorTemplateEngine.GenerateCodeCore&amp;#40;ITextDocument input, String className, String rootNamespace, String sourceFileName, Nullable&amp;#96;1 cancelToken&amp;#41; &amp;#43;80&lt;br /&gt;   System.Web.Razor.RazorTemplateEngine.GenerateCode&amp;#40;TextReader input, String className, String rootNamespace, String sourceFileName, Nullable&amp;#96;1 cancelToken&amp;#41; &amp;#43;126&lt;br /&gt;   System.Web.Razor.RazorTemplateEngine.GenerateCode&amp;#40;TextReader input&amp;#41; &amp;#43;85&lt;br /&gt;   RazorEngine.Compilation.CompilerServiceBase.GetGeneratorResult&amp;#40;RazorEngineHost host, String template&amp;#41; &amp;#43;187&lt;br /&gt;   RazorEngine.Compilation.CompilerServiceBase.GetCodeCompileUnit&amp;#40;String className, String template, ISet&amp;#96;1 namespaceImports, Type templateType, Type modelType&amp;#41; &amp;#43;982&lt;br /&gt;   RazorEngine.Compilation.DirectCompilerServiceBase.Compile&amp;#40;TypeContext context&amp;#41; &amp;#43;442&lt;br /&gt;   RazorEngine.Compilation.DirectCompilerServiceBase.CompileType&amp;#40;TypeContext context&amp;#41; &amp;#43;189&lt;br /&gt;   RazorEngine.Templating.TemplateService.CreateTemplateType&amp;#40;String razorTemplate, Type modelType&amp;#41; &amp;#43;1526&lt;br /&gt;   RazorEngine.Templating.TemplateService.CreateTemplate&amp;#40;String razorTemplate, Type modelType, Object model&amp;#41; &amp;#43;107&lt;br /&gt;   RazorEngine.Templating.TemplateService.CreateTemplate&amp;#40;String razorTemplate, Object model&amp;#41; &amp;#43;98&lt;br /&gt;   RazorEngine.Templating.TemplateService.Parse&amp;#40;String razorTemplate, Object model&amp;#41; &amp;#43;94&lt;br /&gt;   RazorEngine.Razor.Parse&amp;#40;String razorTemplate, Object model&amp;#41; &amp;#43;102&lt;br /&gt;&amp;#125;&amp;#125;&amp;#125;&lt;br /&gt;</description><author>evereq</author><pubDate>Tue, 07 Feb 2012 09:50:45 GMT</pubDate><guid isPermaLink="false">Created Issue: .NET 4.5 / MVC4 compatibility. Method not found exception [591] 20120207095045A</guid></item></channel></rss>