(Medium Trust) SecurityException: Request failed - Nop.Core.TypeConverterRegistrationStartUpTask.Execute()

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
**** Host: LocaWeb Medium trust ****

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[SecurityException: Request failed.]
   Nop.Core.TypeConverterRegistrationStartUpTask.Execute() +0
   Nop.Core.Infrastructure.NopEngine.RunStartupTasks() +468
   Nop.Core.Infrastructure.NopEngine.Initialize(NopConfig config) +48
   Nop.Core.Infrastructure.EngineContext.Initialize(Boolean forceRecreate) +98
   Nop.Web.MvcApplication.Application_Start() +66

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1087.0
6 years ago
I have the same problem, Can you solve?

Estou tendo o mesmo problema, você já conseguiu resolver?
6 years ago
nopCommerce precisa de um ambiente Full Trust apesar de a documentação dizer que pode ser medium Trust.
Estava utilizando a hospedagem Locaweb, também tentei algumas outras alternativas.
Mas só consegui fazer funcionar adequadamente no Azure que é Full Trust.
Qual hospedagem está utilizando?
No site do nopCommerce tem algumas sugestões de hospedagem. Não testei todas, mas as mais baratas são lentas e são longe do Brazil.
Azure foi o que melhor atendeu as minhas necessidades com servidor no Brazil e suporte em português.
Agora se for servidor próprio, basta alterar as configurações no IIS para Full Trust.

Espero ter ajudado!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.