Rotativa.NetCore 无法加载类型“Microsoft.AspNetCore.Builder.CookieAuthenticationOptions" [英] Rotativa.NetCore Could not load type 'Microsoft.AspNetCore.Builder.CookieAuthenticationOptions'

查看:19
本文介绍了Rotativa.NetCore 无法加载类型“Microsoft.AspNetCore.Builder.CookieAuthenticationOptions"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 .Net CORE 2.0(最新版本等)上使用 Rotativa.NetCore,但出现以下错误:处理请求时发生未处理的异常.TypeLoadException: 无法从程序集Microsoft.AspNetCore.Authentication.Cookies, Version=2.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60"中加载类型Microsoft.AspNetCore.Builder.CookieAuthenticationOptions".

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'.

有什么建议吗?

推荐答案

这里有将 Rotativa.NetCore 从 .Net Core 1 更新到 .Net Core 2.0 的代码:https://github.com/aaxelm/Rotativa.NetCore/pull/1/files?diff=split

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

这篇关于Rotativa.NetCore 无法加载类型“Microsoft.AspNetCore.Builder.CookieAuthenticationOptions"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆