SHarepoint 2010 中的访问被拒绝错误
当将包含 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
也许您正在部署沙箱解决方案而不是场解决方案。
编辑:如果您可以尝试进行 iisreset 并再次尝试部署。
Maybe you are deploying a Sandbox solution and not a Farm Solution.
Edit: if you can try making iisreset and try deploying again.
您能否检查是否向每个人授予了物理文件夹“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.
要执行场范围内的操作(例如添加和部署解决方案),您应该是计算机上管理员组的成员。请注意,您可能需要“以管理员身份运行”才能拥有所需的权限。
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.