摘要: 根据我的实验,发现“查看所有网站内容”是有SharePoint里Role=“编辑项目”来控制的,所以当我们想让某一用户具有编辑权限,确不能查看所有网站内容时,就用到了下面的方法: 借鉴:http://www.crsw.com/mark/Lists/Posts/Post.aspx?ID=36 1. Open the SiteAction.xml file in Notepad from "C:... 阅读全文
posted @ 2009-01-17 19:17 LeimOO 阅读(956) 评论(0) 推荐(0) 编辑
摘要: 问题描述: //角色模拟:这里要特别注意,如果使用角色模拟可能会出现"此用户不存在或不唯一"或"拒绝访问"的错误 //impersonate.BeginImpersonate(); // 这句很重要,否则无法添加组 web.AllowUnsafeUpdates = true; // 1. 添加用户组 web.SiteGroups.Add(GroupName, ... 阅读全文
posted @ 2009-01-17 14:31 LeimOO 阅读(938) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 通过SPList.Update()可以更新一个List,但一般你是不能直接调用此方法的,会出现“Updates are currently disallowed on GET requests. To allow updates on a GET, set the 'AllowUnsafeUpdates' property on SPWeb.” 解决方法有两个: 1.设置Allow... 阅读全文
posted @ 2009-01-17 14:04 LeimOO 阅读(751) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 出现一个操作错误 An operations error occurred --> System.Runtime.InteropServices.COMException (0x80072020): An operations error occurred. Server stack trace: at System.DirectoryServices.Directory... 阅读全文
posted @ 2009-01-17 13:59 LeimOO 阅读(1283) 评论(0) 推荐(0) 编辑