zoukankan      html  css  js  c++  java
  • COPY ORCHARD GET 404: System.UnauthorizedAccessException: mappings.bin的访问被拒绝

    COPY ORCHARD 得到 404 错误,结果翻看Logs,得到的错误是:

    014-07-31 17:36:46,217 [16] Orchard.Environment.DefaultOrchardHost - (null) - A tenant could not be started: Default
    (null)
    System.UnauthorizedAccessException: 对路径“C:MyWebxxx.comApp_DataSitesDefaultmappings.bin”的访问被拒绝。
       在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
       在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
       在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
       在 Orchard.FileSystems.AppData.AppDataFolder.CreateFile(String path)
       在 Orchard.Data.SessionConfigurationCache.StoreConfiguration(ConfigurationCache cac

    fixe 的方法是为当前站点的应用程序池加入权限,如下:

    C:UsersAdministrator>ICACLS C:MyWebxxx.comApp_Data /grant "IIS AppPoolxxx.com":F /T

    然后,一切 OK。

  • 相关阅读:
    20201015-3 每周例行报告
    20201008-1 每周例行报告
    20200924-2 功能测试
    贺敬文2019102936-1总结
    20191114-1 每周例行报告
    20191107-1 每周例行报告
    20191031-1 每周例行报告
    每周例行报告
    20191017-1 每周例行报告
    每周例行报告
  • 原文地址:https://www.cnblogs.com/luminji/p/3881411.html
Copyright © 2011-2022 走看看