Useful info about sharepoint security and web part creation
2004-11-30 01:45
477 查看
A useful actical for web part development basic
http://www.devx.com/dotnet/Article/17518/0/page/1
sharepoint security
http://www.15seconds.com/issue/040511.htm
object model security
In a comment to my post here, Jim asked why he can't access the WSS object model in his code, even though it's running under the Sharepoint context. Since a month has passed and I can't re-enable comments on that post, I'll just answer here:
By default, the security settings for a Sharepoint site is set to WS_Minimal - a predefined set of security policies that can be found in C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\CONFIG\wss_minimaltrust.config. You can change this to WSS_Medium to get a slightly higher security policy (that allows Object Model access, for one thing) or create your own set of security policies for exact customization. Check out the web.config settings in the SPS root directory to see how to define another ruleset, and use the existing .config files as a base
* if want to use object model in managed path (Excluded path).
have to add a web.config with line <trust level="Full" originUrl="" /> or other levels.
SPS customization
http://weblogs.asp.net/bsimser/articles/spscustomization.aspx http://www.skillart.com/blog/
http://www.devx.com/dotnet/Article/17518/0/page/1
sharepoint security
http://www.15seconds.com/issue/040511.htm
object model security
In a comment to my post here, Jim asked why he can't access the WSS object model in his code, even though it's running under the Sharepoint context. Since a month has passed and I can't re-enable comments on that post, I'll just answer here:
By default, the security settings for a Sharepoint site is set to WS_Minimal - a predefined set of security policies that can be found in C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\CONFIG\wss_minimaltrust.config. You can change this to WSS_Medium to get a slightly higher security policy (that allows Object Model access, for one thing) or create your own set of security policies for exact customization. Check out the web.config settings in the SPS root directory to see how to define another ruleset, and use the existing .config files as a base
* if want to use object model in managed path (Excluded path).
have to add a web.config with line <trust level="Full" originUrl="" /> or other levels.
SPS customization
http://weblogs.asp.net/bsimser/articles/spscustomization.aspx http://www.skillart.com/blog/
相关文章推荐
- ORACLE 常用的SQL语法和数据对象
- allsword硬盘装红旗linux(初学,三天装linux十次小记)
- 一个工程师眼中的风险投资家(ZT)
- 迷茫也得行动了
- 想念古远的夜 没有电脑的轰鸣声
- 诛仙二
- Running an application command line with different credentials
- (译)移动的键盘控制
- Laszlo初试
- 取其快乐,弃其忧伤
- 常用js……
- 物理共享电脑for linux,硬件的不要
- 影片的弹性!
- Windows平台下的多线程编程
- 需要注意的一点是:在企业信息化分析类别的中资料的来源和可信度
- About the AOSA
- 第一篇,一个项目的开始
- Larry Wall 和 Perl的美德
- 传奇程序员Larry Wall:Perl的乐趣
- 滚动的菜单效果