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

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

问题描述

我在.Net CORE 2.0(最新版本等)上使用Rotativa.NetCore,但遇到以下错误:
处理请求时发生未处理的异常。
TypeLoadException:无法从程序集 Microsoft.AspNetCore.Authentication.Cookies,版本= 2.0.1.0,文化=中性,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的代码从.Net Core 1到.Net Core 2.0的.NetCore此处: 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天全站免登陆