Magicodes.IE
Magicodes.IE copied to clipboard
Export Pdf TypeLoadException: Could not load type 'Microsoft.AspNetCore.Razor.Language.RazorTemplateEngine'
An unhandled exception occurred while processing the request.
TypeLoadException: Could not load type 'Microsoft.AspNetCore.Razor.Language.RazorTemplateEngine' from assembly 'Microsoft.AspNetCore.Razor.Language, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
RazorEngine.Compilation.CompilerServiceBase.GetGeneratorResult(IEnumerable
please try run
Uninstall-Package Microsoft.VisualStudio.Web.CodeGeneration.Design
If you're using .NET Framework, downgrade the package to the version 2.3.0. This is the latest possible version which has the necessary class