SharePoint 2010 : Sandbox Solution Part 2
Sandbox supported DLLS
Sandbox Prohibited Classes and functions
- You can add the Microsoft.SharePoint.DLL
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\UserCode\assemblies\ Microsoft.SharePoint.dll
- All other SharePont Object Model Assembly except Microsoft.SharePoint.dll. Example you can not add the other SharePoint exmple. Microsoft.Office.Policy.dll, Microsoft.Office.Server.UserProfiles.dll etc.
- SPSite Constructor
- SharePoint.WebControl (Can not Access SharePoint Picker Control, CssLink etc)
- SPSecurity (not run with elevated privileges).
- SendEmail
- Can not assess any Database
- Can not write to disk
- can not load the assembly outside the server except Without AllowPartiallyTrustedCallersAttribute (Full trust proxy run on the farm.). Most of the user use the sand box don’t have a access to their server.
- No custom Web services
- No Talk to any other servers from the server.
- No Pragmatic workflow deploy in sandbox solution.
- Sandbox does not support re-direction – no Response.Redirect, no Server.Transfer, no SPUtility.Redirect.
To read/write data to list user must have an access to the list.
Comments
Post a Comment