asp.net mvc 5 entity framework 6 identity working

2019-03-03 10:42发布

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条回答
Bombasti
2楼-- · 2019-03-03 11:16

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"

查看更多
登录 后发表回答