【问题标题】:Nopcommerce security exceptionNopcommerce 安全异常
【发布时间】:2017-06-26 05:10:45
【问题描述】:

当我在服务器上发布 nopcommerce 时,我收到了这个错误。我的主机为我提供了完全信任级别。

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() +487
   Nop.Core.Infrastructure.NopEngine.Initialize(NopConfig config) +48
   Nop.Core.Infrastructure.EngineContext.Initialize(Boolean forceRecreate) +92
   Nop.Web.MvcApplication.Application_Start() +66

Version Information: Microsoft .NET Framework Version:4.0.30319; 
    ASP.NET Version:4.0.30319.36366

如何解决这个错误?

【问题讨论】:

  • 您是否授予文件夹适当的权限?

标签: nopcommerce


【解决方案1】:

检查您的主机是否符合要求:Technology & System Requirements

接下来检查你是否做对了:Installation Guide

对我来说,您的安装似乎没有足够的权限。

根据安装指南,您需要授予 nopCommerce 对以下目录和文件的写入权限

  • \App_Data\
  • \bin\
  • \内容\
  • \内容\图像\
  • \Content\Images\Thumbs\
  • \Content\Images\Uploaded\
  • \Content\files\ExportImport\
  • \插件\
  • \插件\bin\
  • \Global.asax
  • \web.config

【讨论】:

    猜你喜欢
    • 2016-06-16
    • 1970-01-01
    • 2010-12-02
    • 2016-11-20
    • 2015-09-13
    • 2014-09-28
    • 2011-03-14
    • 2016-07-05
    • 2012-12-20
    相关资源
    最近更新 更多