Open jws305 opened 7 years ago
Hi jws305, Did you have any luck solving this issue?
@jws305 You can workaround with your own ReferenceResolver
implementation which returns a static set of assemblies... It would be nice if you could further analyze this (for example figure out which assembly it is for which the Location
property throws an exception (usually it will return null
when there is no location). Which runtime are you using (.NET/ Mono / .NetCore?).
I hadn't been running in a separate app domain. I am now creating a new app domain for every load which fixed my immediate problem but it now has to recompile every time the page loads.
Digging into the BCL source it seems this exception is only thrown when path == null
.
I am using .NET 4.6.1
Hello,
Do you have something new about your bug ? I just came up with the same bug whereas I'm doing the same call to RunCompile. The only difference is that when it works the code is called from my classic asp.net core website, and it fails when it is called from my Azure Functions runtime. The parameters of RunCompile are strictly the same in both cases. Maybe this is due to this special environment ?
@bviale I have the same problem inside an Azure function, did you find any solution to this?
Did anybody find a solution to this issue?
I am encountering a recurring issues where RazorEngine is throwing an ArgumentExceptions during compile. Everything runs fine at first but after the web application runs for a few hours all compilation starts failing. I have the templates set as embedded resources and I am using a
EmbeddedResourceTemplateManager
. Has anyone encountered this issue before?