【问题标题】:asp.net mvc 5 entity framework 6 identity working with trust level = medium?使用信任级别 = 中等的 asp.net mvc 5 实体框架 6 身份?
【发布时间】:2014-11-23 20:52:30
【问题描述】:

创建最简单的项目(在 Visual Studio 2013 -> asp.net Web 应用程序 -> 使用个人帐户进行 MVC 身份验证),它可以在 localhost 上完美运行。但是,发送到服务器时(中等信任级别),当我尝试进入登录时,项目不起作用。

查看错误图片: http://s18.postimg.org/fm2qw8gzt/print.png

我尝试在 assembly.cs 中包含 [程序集:AllowPartiallyTrustedCallers]。它不起作用。我创建了一个强名称键。它没有用。

服务器不支持级别=完全信任。

不要认为需要满员,因为很少有 asp.net mvc 5 站点可以在公共服务器上运行。

有什么想法吗?

【问题讨论】:

标签: asp.net-mvc web-config entity-framework-6 asp.net-identity claims-based-identity


【解决方案1】:

来自 Microsoft 的组件“身份”需要具有“完全信任”级别的服务器才能运行。

检查 Levi 的回答。 Visual Studio 2013 Web Forms Site doesn't work with trust level "Medium"

【讨论】:

    猜你喜欢
    • 2016-07-11
    • 1970-01-01
    • 2015-05-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多