A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/dotnet/aspnetcore/issues/14418 below:

Cannot find reference assembly 'Microsoft.AspNetCore.Antiforgery.dll' while using a FileProviders in net core 3 · Issue #14418 · dotnet/aspnetcore · GitHub

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:

  1. Download the Repo and the branch
  2. Open the Rotativa.sln
  3. Run it and go to http://localhost:54460/TestDynamicViews/GetByteArray
  4. 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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4