Playing in the SharePoint SandBox

3,719 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,719
On SlideShare
0
From Embeds
0
Number of Embeds
297
Actions
Shares
0
Downloads
52
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Playing in the SharePoint SandBox

  1. 1. Playing in the SharePoint sandbox<br />Toni Frankolahttp://www.sharepointusecases.com@ToniFrankola<br />
  2. 2.
  3. 3. Simplified development with VS2010<br />Deploy solutions to hosting env.<br />Session objective<br />
  4. 4. Build a DLL<br />Deploy to GAC<br />Promote all users to domain admins<br />Everything works! <br />Bad practice example<br />
  5. 5. SharePoint 2010 for developers<br />Source:http://sharepointcomic.com<br />
  6. 6. Isolated process<br />Exposes only partial API Microsoft.SharePoint<br />Increased Code Access Security<br />Deploy via web to Site Collection Solution Gallery<br />Monitoring these solutions<br />Sandbox<br />
  7. 7. Integrated DEV environment<br />SP templates<br />Lists, WPs, Events, Workflows...<br />F5 debug & deploy<br />WSP packaging<br />Visual Web Parts<br />Visual Studio 2010 for SP DEVs<br />
  8. 8. Demo<br />Visual Studio 2010<br />Hello World!<br />
  9. 9. API call validation<br />Execution time<br />Solution validation<br />Bad web part protection<br />Source:http://zimmergren.net<br />
  10. 10. Sandbox Architecture<br />FRONT END<br />BACK END<br />Host Services (SPUCHostService.exe)<br />Execution Manager(Inside Application Pool)<br />Worker Service<br />(SPUCWorkerProcess.exe)<br />IIS(WPW3.EXE)<br />Untrusted Code<br />Subset Object Model<br />Full Object Model<br />
  11. 11. Sandbox Architecture<br />FRONT END<br />BACK END<br />Host Services (SPUCHostService.exe)<br />Execution Manager(Inside Application Pool)<br />Worker Service<br />(SPUCWorkerProcess.exe)<br />IIS(W3WP.EXE)<br />Untrusted Code<br />Subset Object Model<br />Subset-Model Request<br />Full Object Model<br />
  12. 12. Sandbox Architecture<br />FRONT END<br />BACK END<br />Host Services (SPUCHostService.exe)<br />Execution Manager(Inside Application Pool)<br />Worker Service<br />(SPUCWorkerProcess.exe)<br />IIS(W3WP.EXE)<br />Untrusted Code<br />Subset Object Model<br />Full-Model Request<br />Full Object Model<br />
  13. 13. Demo<br />Bad web part<br />
  14. 14. List definitions<br />List instances<br />Content Types/Fields<br />Navigation<br />Web Parts derived from WebPart<br />Event receivers<br />Custom Workflow Actions<br />Workflows<br />Supported functionalities<br />
  15. 15. Off-box connections, http, web services, etc<br />ADO.net<br />Enterprise features (Search, BCS, etc.)<br />Threading<br />P-Invoke<br />IO<br />Other sites<br />Not supported<br />
  16. 16. Site Collection Admin<br />Farm admin<br />Monitoring<br />
  17. 17. Tracks the execution time<br />.NET, SQL...<br />Developer dashboard<br />
  18. 18. Extend SandBox<br />Worker Service<br />(SPUCWorkerProcess.exe)<br />GAC<br />Untrusted Code<br />SPProxyOperationArgs<br />SPProxyOperationArgs<br />SPUtility<br />SPProxyOperation<br />SecuredResource<br />
  19. 19. Help Desk Workflow<br />Contacts<br />Email<br />Inbox<br /> Issues<br />Confirmation Email<br />
  20. 20. Help Desk Workflow (2)<br />
  21. 21. Demo<br />List instances<br />Modules<br />
  22. 22. Demo<br />Event handlers<br />
  23. 23. Demo<br />Ribbon customization<br />
  24. 24. Demo<br />Reporting<br />
  25. 25.
  26. 26. Thank you!<br />

×