-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
Hi, i have a library that render views and with the html makes a pdf.
When using the Physical Views (the ones that you have in the project) everything works fine.
But when using the fileprovider i get the following error, this was working fine in 2.1
I have tried some debuggin of the .net libraries and the farthest i can go without breaking was here.
The code is in this repo https://github.com/fpanaccia/Wkhtmltopdf.NetCore.Example.git and the branch is feature/3.0
namespace Microsoft.AspNetCore.Mvc.Razor.Compilation
internal class DefaultRazorPageFactoryProvider : IRazorPageFactoryProvider
public RazorPageFactoryResult CreateFactory(string relativePath)
line 44 var viewDescriptor = compileTask.GetAwaiter().GetResult();
To Reproduce
Steps to reproduce the behavior:
- Download the Repo and the branch
- Open the Rotativa.sln
- Run it and go to http://localhost:54460/TestDynamicViews/GetByteArray
- See error
Expected behavior
Render the View and make the pdf (this is the result with the view in the project) it should have the same result