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

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

问题描述

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



查看错误图像:
< a href =http://s18.postimg.org/fm2qw8gzt/print.png =nofollow> http://s18.postimg.org/fm2qw8gzt/print.png



我试图加入到assembly.cs [assembly:AllowPartiallyTrustedCallers]。它不起作用。我创建了一个很强的名字键。它不起作用。



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



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



任何想法?

解决方案

Microsoft的组件Identity需要具有完全信任级别的服务器才能运行。



检查Levi的答案。
Visual Studio 2013 Web表单网站不符合信任级别中


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.

See the error image: http://s18.postimg.org/fm2qw8gzt/print.png

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.

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

Any idea?

解决方案

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

Check Answer from Levi. Visual Studio 2013 Web Forms Site doesn't work with trust level "Medium"

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

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