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:\MyWeb\xxx.com\App_Data\Sites\Default\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:\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。

Creative Commons License本文基于 Creative Commons Attribution 2.5 China Mainland License发布,欢迎转载,演绎或用于商业目的,但是必须保留本文的署名 http://www.cnblogs.com/luminji(包含链接)。如您有任何疑问或者授权方面的协商,请给我留言。
目录
相关文章
|
Windows
System.UnauthorizedAccessException: 拒绝访问 temp 目录。用来运行 XmlSerializer 的标识“NT AUTHORITY\NETWORK SERVICE”没有访问 temp 目录的足够权限。CodeDom 将使用进程正在使用的用户帐户进行编译,这样,如
原文:System.UnauthorizedAccessException: 拒绝访问 temp 目录。用来运行 XmlSerializer 的标识“NT AUTHORITY\NETWORK SERVICE”没有访问 temp 目录的足够权限。
1329 0
|
Ubuntu JavaScript
ubuntu 文件监视数量 Error: ENOSPC: System limit for number of file watchers reached, watch‘所在文件路径‘
vue 运行执行 npm run dev | * Error: ENOSPC: System limit for number of file watchers reached, watch’所在文件路径’ 最简单的命令 沾走就能用
249 0
ubuntu 文件监视数量 Error: ENOSPC: System limit for number of file watchers reached, watch‘所在文件路径‘
|
Oracle 关系型数据库 存储
Oracle的dbms_output包的put()和put_line()的区别只是有没有回车换行吗?(转)
答案是否 除了自动添加回车换行外,还有就是缓冲区最大容量的问题!! 无论如何设置serveroutput size,10g里 put() 最多只能输出 32767 个byte 而 put_line() 的最大容量为 1000000个byte   以下的代码目的是生成一个oracle数据...
1131 0
|
移动开发 PHP
file_put_contents追加 一个很简单的php记录日志的函数
$str="我是日志内容!"; $str=$str.date("Y-m-d H:i:s",time())."\r\n"; file_put_contents('log.txt',$str,FILE_APPEND); file_put_contents() 的行为实际上等于依次调用 fopen(),fwrite() 以及 fclose() 功能一样。 FILE_APPEND:在文件末尾以追加的方式写入数据 ———————————————— 版权声明:本文为CSDN博主「娃娃菜001」的原创文章,遵循CC
258 0
file_put_contents追加 一个很简单的php记录日志的函数
|
PHP
PHP file_get_contents函数读取远程数据超时的解决方法
PHP file_get_contents函数读取远程数据超时的解决方法 投稿:junjie 字体:[增加 减小] 类型:转载   这篇文章主要介绍了PHP file_get_contents函数读取远程数据超时的解决方法,本文直接给出解决方法代码,需要的朋友可以参考下     在网络状况比较差的情况下file_get_contents函数经常读取远程数据失败。
1044 0
|
9月前
|
Oracle 关系型数据库 Unix
Note 89188 - R/3 System copy解决真正的不同机器系统的真正拷贝与复制
Note 89188 - R/3 System copy解决真正的不同机器系统的真正拷贝与复制
45 0
|
缓存 关系型数据库 MySQL
【异常解决】缓存报错:Null key returned for cache operation (maybe you are using named params on classes withou
【异常解决】缓存报错:Null key returned for cache operation (maybe you are using named params on classes withou
853 0
|
7月前
|
Java
映射大量文件的正解,Description:Field commentMapper in zero.file.videoProject.controller.CommentController r
映射大量文件的正解,Description:Field commentMapper in zero.file.videoProject.controller.CommentController r
|
Linux PHP Apache
apache 提示You don't have permission to access /test.php on this server.怎样解决
原文:apache 提示You don't have permission to access /test.php on this server.怎样解决 关键字: Apache   403  Forbidden系统配置:操作系统:Red Hat Linux 6.2Web服务器:Apache 3.1.1+jakarta-tomcat 3.1.1数据库服务器:oracle 8i    Apache服务器是目前应用最多的web服务器,据统计在世界上的服务器中有超过一半采用Apache服务器.关于它的好处,您可以自己到http://www.apache.org/上去看。
1928 0

热门文章

最新文章