24cun_cn 发表于 2015-9-28 07:08:59

Useful info about sharepoint security and web part creation

  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=&quot;Full&quot; originUrl=&quot;&quot; /> or other levels.


SPS customization

http://weblogs.asp.net/bsimser/articles/spscustomization.aspx

http://www.skillart.com/blog/
页: [1]
查看完整版本: Useful info about sharepoint security and web part creation