Sto cercando di compilare un file rasoio con questa lineaRazorEngine parse getta impossibile compilare
RazorEngine.Razor.Parse("Hello world");
Ma getta solo
base {System.Exception} = {"Unable to compile template. Source file 'C:\\Windows\\TEMP\\vlu4zahf.0.cs' could not be found\n\nOther compilation errors may have occurred. Check the Errors property for more information."}
e la proprietà errore simile al seguente:
[0] = {error CS2001: Source file 'C:\Windows\TEMP\vlu4zahf.0.cs' could not be found}
[1] = {warning CS2008: No source files specified}
Quindi non ci sono buone informazioni.
Io corro NET 4.0 e Razor motore 3.2.0.0
Update 1
ho individuato l'errore a questa linea nel RazorEngine
Tuple.Create(
compileResult.CompiledAssembly.GetType("CompiledRazorTemplates.Dynamic." + context.ClassName),
compileResult.CompiledAssembly);
Si prega di verificare http://stackoverflow.com/questions/6444277/using-razorengine-to-parse-razor -templates-concurrently – Amit
@AmitAgrawal Grazie, ma il post riguarda la sicurezza del thread. Al momento sono attivo solo un thread. –