COPY ORCHARD GET 404: System.UnauthorizedAccessException: mappings.bin的訪問被拒絕

來源:互聯網
上載者:User

標籤:os   io   art   ar   應用   size   log   app   

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:\MyWeb\xxx.com\App_Data\Sites\Default\mappings.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:\Users\Administrator>ICACLS C:\MyWeb\xxx.com\App_Data /grant "IIS AppPool\xxx.com":F /T

然後,一切 OK。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.