0

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?

dcpenteado
  • 34
  • 5
  • 2
    ASP.NET now only supports full trust [Refer this answer](http://stackoverflow.com/questions/25347092/deploying-asp-net-mvc-project/25354496#25354496) –  Nov 23 '14 at 20:59
  • possible duplicate of [Is trying to develop for Medium Trust a lost cause?](http://stackoverflow.com/questions/16849801/is-trying-to-develop-for-medium-trust-a-lost-cause) – Gert Arnold Nov 23 '14 at 22:34

1 Answers1

2

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"

Community
  • 1
  • 1
Rafael Ferreira
  • 166
  • 1
  • 8