-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RazorEngine throw a NotSupportedException when compiling template in Azure Function #526
Comments
I have found the problem, downloading your code and doing reverse engineering.
Exactly the statements that throw the exception are At the moment I solved writing a custom So
became
I am almost sure that it is not the best way to solve the problem... but now I solved it, and after two days my work is blocked I need to go on... I hope this can help someone... |
@csimone86 thanks for this information, it fixed the same error for me as well. I've applied your fix to a fork of the repo (although directly within the UseCurrentAssembliesReferenceResolver class) to make this temporary workaround easier for others. |
I must compile a razor view in an azure function to send an email, but something goes wrong. I obtain the a
NotSupportedException
error:The given path's format is not supported.
Here my code:
Paths are similar to
D:\\...\\Emails\\Templates
.. I am testing locally and it does not work... I have googled and it seems that Azure Functions have some limitations in caching and in file system management, but it is not clear how can I solve the problem. I think I have same problem this person has written hereAny idea how can I solve it? There is something wrong in what I am doing?
I am using RazorEngine 3.10.0
Thank you
The text was updated successfully, but these errors were encountered: