-->

Rotativa.NetCore Could not load type 'Microsof

2019-08-05 14:28发布

问题:

I am using Rotativa.NetCore on a .Net CORE 2.0 (latest version and etc) and I am getting the following error: An unhandled exception occurred while processing the request. TypeLoadException: Could not load type 'Microsoft.AspNetCore.Builder.CookieAuthenticationOptions' from assembly 'Microsoft.AspNetCore.Authentication.Cookies, Version=2.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

Any suggestions?

回答1:

There's code to update Rotativa.NetCore from .Net Core 1 to .Net Core 2.0 here: https://github.com/aaxelm/Rotativa.NetCore/pull/1/files?diff=split