asp.net mvc的5实体框架6的身份与信任级别=中工作吗? [英] asp.net mvc 5 entity framework 6 identity working with trust level = medium?

查看:205
本文介绍了asp.net mvc的5实体框架6的身份与信任级别=中工作吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

创建简单的项目(在Visual Studio 2013 - > asp.net web应用程序 - >与个人账户MVC认证),它完美的作品在本地主机上。但是,发送到服务器(中等信任级别)时,本项目不,当我试图进入登录工作。

Creating the simplest project (In visual studio 2013 -> asp.net web application -> MVC authentication with individual accounts), it works perfectly on localhost. However, when sending to the server (medium trust level), the project does not work when I try to enter login.

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

我想包括assembly.cs [装配:AllowPartiallyTrustedCallers]。它不起作用。我创建了一个强名称密钥。它没有工作。

I tried to include on assembly.cs [assembly: AllowPartiallyTrustedCallers]. It did not work. I have created a strong name key. It did not work.

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

The server does not support level = full trust.

不相信有需要满,因为很少有asp.net的MVC 5个站点将在通用服务器上工作。

Do not believe there need to be full, because few asp.net mvc 5 sites would work on common servers.

任何想法?

推荐答案

组件身份,从微软需要服务器完全信任水平运行。

The component "Identity" from Microsoft needs server with "Full Trust" Level to run.

从列维检查答案。
<一href=\"http://stackoverflow.com/questions/22587797/visual-studio-2013-web-forms-site-doesnt-work-with-trust-level-medium\">Visual工作室2013 Web窗体网站不信任的水平&QUOT工作;中&QUOT;

这篇关于asp.net mvc的5实体框架6的身份与信任级别=中工作吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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