由于权限问题,使用 IISExpress 安装 Orchard CMS 模块失败

发布于 2024-12-23 04:10:35 字数 443 浏览 5 评论 0原文

我不断收到“安装请求的包时出错。如果服务器没有对网站的“~/Modules”或“~/Themes”文件夹的写入权限,则可能会发生这种情况。如果该网站正在运行在共享托管环境中,有时需要通过 Hoster 控制面板手动添加对这些文件夹的写入权限,一旦安装了主题和模块,建议删除对这些文件夹的写入权限。”尝试从库安装模块时出现消息。

我已授予 IIS_WPG 对 Orchard.Web\Modules 目录的完全控制权,昨天它可以工作,但今天不行。

我从 Visual Studio 2010 SP1 和 IIS Express 运行。

编辑:我已确保图库路径为: http://packages.orchardproject.net/FeedService。服务/

I keep getting the "There was an error installing the requested package. This can happen if the server does not have write access to the '~/Modules' or '~/Themes' folder of the web site. If the site is running in shared hosted environement, adding write access to these folders sometimes needs to be done manually through the Hoster control panel. Once Themes and Modules have been installed, it is recommended to remove write access to these folders." message when trying to install a module from the Gallery.

I've given the IIS_WPG full control of the Orchard.Web\Modules directory and it worked yesterday, but it doesn't today.

I'm running from Visual Studio 2010 SP1 and IIS Express.

EDIT: I've made sure the gallery path is: http://packages.orchardproject.net/FeedService.svc/

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

思慕 2024-12-30 04:10:35

我遇到了同样的问题。我们有一个自定义主题,我必须在 theme.txt 文件中将版本从 1 更改为 1.0。然后我就可以安装模块了。

I came across the same issue. We had a custom theme and I had to change the version from 1 to 1.0 in the theme.txt file. Then I was able to install a module.

醉城メ夜风 2024-12-30 04:10:35

我通过这样做解决了这个问题:

  1. 将应用程序池用户更改为 NetworkService 或您的自定义用户
    创造。 (我使用的是 IIS,而不是 IIS Express)
  2. 向用户授予对文件夹(模块和
    主题)。
  3. 确保仪表板>设置>画廊网址是
    http://packages.orchardproject.net/FeedService.svc/

这为我解决了这个问题。使用 ApplicationPoolIdentity 不起作用,即使我给了它适当的权限(不知道为什么)。

我希望这有帮助。

I fixed this problem by doing this:

  1. Change the app pool user to NetworkService or to a custom user you
    create. (I was using IIS not IIS Express)
  2. Grant read/write permissions to the user on the folders (Modules and
    Themes).
  3. Make sure Dashboard > Settings > Gallery url is
    http://packages.orchardproject.net/FeedService.svc/

That fixed it for me. Using ApplicationPoolIdentity did not work, even when I gave it the appropriate permissions (not sure why).

I hope that helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文