標籤: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。