asp.net mvc 5 entity framework 6 identity working with trust level = medium?

萝らか妹 提交于 2019-12-04 06:38:29

问题


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?


回答1:


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"



来源:https://stackoverflow.com/questions/27094169/asp-net-mvc-5-entity-framework-6-identity-working-with-trust-level-medium

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!