playing in the sharepoint sandbox

26
Playing in the SharePoint sandbox Toni Frankola http ://www.sharepointusecases.com @ToniFrankola

Upload: toni-frankola

Post on 20-May-2015

3.095 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Playing in the SharePoint SandBox

Playing in the SharePoint sandbox

Toni Frankolahttp://www.sharepointusecases.com

@ToniFrankola

Page 2: Playing in the SharePoint SandBox
Page 3: Playing in the SharePoint SandBox

Simplified development with VS2010 Deploy solutions to hosting env.

Session objective

Page 4: Playing in the SharePoint SandBox

Build a DLL Deploy to GAC Promote all users to domain admins Everything works!

Bad practice example

Page 5: Playing in the SharePoint SandBox

SharePoint 2010 for developers

Source:http://sharepointcomic.com

Page 6: Playing in the SharePoint SandBox

Isolated process Exposes only partial API Microsoft.SharePoint

Increased Code Access Security Deploy via web to Site Collection Solution

Gallery Monitoring these solutions

Sandbox

Page 7: Playing in the SharePoint SandBox

Integrated DEV environment SP templates

◦ Lists, WPs, Events, Workflows... F5 debug & deploy WSP packaging Visual Web Parts

Visual Studio 2010 for SP DEVs

Page 8: Playing in the SharePoint SandBox

Demo

Visual Studio 2010 Hello World!

Page 9: Playing in the SharePoint SandBox

API call validation Execution time Solution validation

Bad web part protection

Source:http://zimmergren.net

Page 10: Playing in the SharePoint SandBox

Sandbox Architecture

Worker Service(SPUCWorkerProcess.exe

)

Full Object Model

Host Services (SPUCHostService.exe)

Execution Manager(Inside Application Pool)

Subset Object Model

Untrusted Code

IIS(WPW3.EXE)

FRONT END BACK END

Page 11: Playing in the SharePoint SandBox

Worker Service(SPUCWorkerProcess.exe

)

Full Object Model

Host Services (SPUCHostService.exe)

Execution Manager(Inside Application Pool)

Subset Object Model

Untrusted Code

IIS(W3WP.EXE)

FRONT END BACK END

Sandbox Architecture

Subset-Model

Request

Page 12: Playing in the SharePoint SandBox

Sandbox Architecture

Worker Service(SPUCWorkerProcess.exe

)

Full Object Model

Host Services (SPUCHostService.exe)

Execution Manager(Inside Application Pool)

Subset Object Model

Untrusted Code

IIS(W3WP.EXE)

FRONT END BACK END

Full-Model Request

Page 13: Playing in the SharePoint SandBox

Demo

Bad web part

Page 14: Playing in the SharePoint SandBox

List definitions List instances Content Types/Fields Navigation Web Parts derived from WebPart Event receivers Custom Workflow Actions Workflows

Supported functionalities

Page 15: Playing in the SharePoint SandBox

Off-box connections, http, web services, etc

ADO.net Enterprise features (Search, BCS, etc.) Threading P-Invoke IO Other sites

Not supported

Page 16: Playing in the SharePoint SandBox

Site Collection Admin

Farm admin

Monitoring

Page 17: Playing in the SharePoint SandBox

Tracks the execution time .NET, SQL...

Developer dashboard

Page 18: Playing in the SharePoint SandBox

Extend SandBox

Worker Service(SPUCWorkerProcess.exe

)

SPUtility

SPProxyOperationArgs

GAC

SPProxyOperation

SPProxyOperationArgs

Untrusted Code

SecuredResource

Page 19: Playing in the SharePoint SandBox

Help Desk Workflow

Email Inbox Issues

Contacts

Confirmation Email

Page 20: Playing in the SharePoint SandBox

ActiveResolve

dClosed

Help Desk Workflow (2)

Page 21: Playing in the SharePoint SandBox

Demo

List instances Modules

Page 22: Playing in the SharePoint SandBox

Demo

Event handlers

Page 23: Playing in the SharePoint SandBox

Demo

Ribbon customization

Page 24: Playing in the SharePoint SandBox

Demo

Reporting

Page 25: Playing in the SharePoint SandBox
Page 26: Playing in the SharePoint SandBox

Thank you!