SHarepoint 2010 中的访问被拒绝错误

发布于 2024-11-09 09:04:06 字数 708 浏览 0 评论 0原文

当将包含 webparts 的解决方案部署到 Sharepoint 2010 网站时,我收到以下错误消息:

Add Solution:
  Adding solution 'User_Controls.wsp'...
  Deploying solution 'User_Controls.wsp'...
Error occurred in deployment step 'Add Solution': Access to the path 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Template\CONTROLTEMPLATES\MyProject\CompanyInformation.ascx' is denied.

当我尝试通过 Windows 资源管理器访问 MyProject 文件夹时,我看不到内容并收到访问被拒绝错误:

[Window Title]
Location is not available

[Content]
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\CONTROLTEMPLATES\Toyota is not accessible.

Access is denied.


[OK]

有人可以帮忙吗?

When deploying asolution containing webparts to a Sharepoint 2010 webite I get the following error message:

Add Solution:
  Adding solution 'User_Controls.wsp'...
  Deploying solution 'User_Controls.wsp'...
Error occurred in deployment step 'Add Solution': Access to the path 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Template\CONTROLTEMPLATES\MyProject\CompanyInformation.ascx' is denied.

When I try to access the MyProject folder through windows explorer I can't see the contents and get an access denied error:

[Window Title]
Location is not available

[Content]
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\CONTROLTEMPLATES\Toyota is not accessible.

Access is denied.


[OK]

Can anyone help please?

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

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

发布评论

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

评论(3

苯莒 2024-11-16 09:04:06

也许您正在部署沙箱解决方案而不是场解决方案。

编辑:如果您可以尝试进行 iisreset 并再次尝试部署。

Maybe you are deploying a Sandbox solution and not a Farm Solution.

Edit: if you can try making iisreset and try deploying again.

心凉 2024-11-16 09:04:06

您能否检查是否向每个人授予了物理文件夹“ControlTemplates”或“MyProject”的读取权限?如果没有,您可以分配权限并重新部署解决方案。

Can you check whether there is read permission given to everyone for the physical folder 'ControlTemplates' or 'MyProject' ? If not, you can assign permissions and redeploy the solution.

不顾 2024-11-16 09:04:06

要执行场范围内的操作(​​例如添加和部署解决方案),您应该是计算机上管理员组的成员。请注意,您可能需要“以管理员身份运行”才能拥有所需的权限。

To perform farm wide operations (like adding and deploying solutions) you should be member of administrators group on the machine. Note that you may need to "run as administrator" to have required permissions.

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