I installed nopcommerce 3.9 and I get the following error while publishing.
It works when I run it locally, but when I publish, I get an error, can you help?

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() in TypeConverterRegistrationStartUpTask.cs:34
   Nop.Core.Infrastructure.NopEngine.RunStartupTasks() in NopEngine.cs:39
   Nop.Core.Infrastructure.NopEngine.Initialize(NopConfig config) in NopEngine.cs:117
   Nop.Core.Infrastructure.EngineContext.Initialize(Boolean forceRecreate) in EngineContext.cs:25
   Nop.Web.MvcApplication.Application_Start() in Global.asax.cs:54