BIWUG | SPSaturday Sandboxed Solutions

Slides:



Advertisements
Similar presentations
Getting Started with SharePoint 2013 Apps
Advertisements

SharePoint ExplorerNew Project and Item Templates New Project Structure.
SSRS 2008 Architecture Improvements Scale-out SSRS 2008 Report Engine Scalability Improvements.
Microsoft SharePoint® Online: Extensibility and Customization
Randy Williams, MOSS MVP Senior Consultant Synergy Corporate Technologies.
Building Sandbox Solutions for SharePoint 2010 Scott Jamison Managing Partner, Jornata LLC
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
SharePoint 2010 First Look: What's new for Developers in Microsoft SharePoint 2010 Matthew McDermott, MVP Aptillon, Able
St. Louis Day of Dot Net 2011 Building Web Parts for an Office 365 SharePoint Site Becky Bertram Independent SharePoint Consultant SharePoint MVP, MCSD.NET,
Mark Rees Microsoft Consulting Services OFC409 Windows Workflow Foundation (WF) Primer Creating WF programs in Visual Studio Creating workflow templates.
Microsoft SharePoint 2013 SharePoint 2013 as a Developer Platform
Becky Bertram SharePoint MVP
Tuning SQL Server 2012 for SharePoint 2013 Jump Start 01 | Key SQL Server and SharePoint Server Integration Concepts (50 minutes) Dedicated Server or.
var site="s15gizmodo" var site="s15gizmodo"
WSS 3.0 Architecture and Enhancements Ashvini Shahane Member – Synergetics Research Lab.
Windows SharePoint Services 'v3': Creating And Defining Custom Templates, Sites, Features, And Solutions Mike Ammerlaan OFF308 Program Manager Microsoft.
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 15 Technical Preview and published July 2012.
Protecting Your SharePoint Environment from the Evil Developers Robert Bogue Thor Projects
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
Developing Workflows with SharePoint Designer David Coe Application Development Consultant Microsoft Corporation.
Basic Developer Knowledge That Every SharePoint Admin Must Have Randy Williams, MVP MOSS Synergy Corporate Technologies
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Workflow Development Overview Architecture Requirements Types of workflows Stages of workflow.
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
HOW SHAREPOINT WORKS By Gary Newman. Root Folder Virtual Directories SP Farm DNS Iterative Forward DNS query for A host record HTTP request HTML & JS.
Vision: Modernizing the Office Platform © 2011 AvePoint, Inc. All rights reserved. No part of this may be reproduced, stored in a retrieval system,
New & Improved Events List Relationships and Joins Large List Support Field & List Item Validation.
James Akrigg Microsoft Ltd Integrating InfoPath Forms Into Workflow Solutions And Business Processes.
Name Microsoft Student Partner Overview of the Visual Studio 2005 Express Products.
SharePoint Online – Developing Solutions for the Cloud Chris Mayo Microsoft Corporation
Windows Role-Based Access Control Longhorn Update
VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview VITALE, CATURANO & COMPANY LTD SharePoint Developer Series – Web Part.
What’s New in SharePoint 2010 SharePoint 2010 Development Primer New Developer Tools for SharePoint 2010 SharePoint 2010 Integration with PowerShell.
Microsoft ® Official Course Designing and Managing Features and Solutions Microsoft SharePoint 2013 SharePoint Practice.
Developer Design, build and test customizations Administrator Install and monitor customizations Site Collection Owner Activate and use customizations.
Application Hosting and Customization Introducing Sandboxed Solutions Executing Code in the Sandbox Sandbox Resource Monitoring.
Windows SharePoint Services Development Part 1: Paul Appleby Application Architect Microsoft Limited.
Windows SharePoint Services v3.0 Martin Parry Developer & Platform Group Microsoft Limited
Name Title Company Changes in the solution management.
Workflow in Microsoft Office SharePoint Server Jessica Gruber Consultant Microsoft Corporation.
Msdevcon.ru#msdevcon. ИЗ ПЕРВЫХ РУК: КАК СДЕЛАТЬ ВАШ КОД БЫСТРЫМ ПРОФАЙЛИНГ КЛИЕНТСКИХ И СЕРВЕРНЫХ ПРИЛОЖЕНИЙ В VISUAL STUDIO 2012 MAXIM GOLDIN Senior.
Doug Perkes Senior Consultant Microsoft Corporation.
Joy Rathnayake Senior Architect – Virtusa Pvt. Ltd.
Demand Management and Workflow
Integrating SharePoint 2010 with Office 2010
Integrating Enterprise Applications Into SharePoint® Portal Server
Remote Event Receivers
Collaboration and Storage with WSS v3
Business Connectivity Services in SharePoint 2010 and Office 2010
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer
Presented by Kenny Duenke and Patrick Witbrod
Accessing and Surfacing LOB Data in SharePoint 2010
0x - Lecture Title Andrew Connell, MVP
Developing an app for SharePoint autohosted in Azure
Microsoft Dynamics.
Excel Services Deployment and Administration
Test Upgrade Name Title Company 9/18/2018 Microsoft SharePoint
Developer Patterns to Integrate Silverlight 4.0 with SharePoint 2010
Building Office 365 Solutions with Azure
Intro to Workflow Services and Windows Server AppFabric
LitwareHR v2: an S+S reference application
Getting Started with SP2013 Apps
Visual Studio 2010 SharePoint Development Tools Overview
Developing with Microsoft SharePoint Server 2010 Sandboxed Solutions
5/17/ :57 AM OSP305 Developing Collaboration Solutions in the Cloud with Microsoft SharePoint Online Chris Mayo Snr. Technical Evangelist, Office.
Office 365 Development July 2014.
Windows Forms in Visual Studio 2005: An in-depth look at key features
SharePoint 2007 Developer Overview Collaboration BI Features
Mark Quirk Head of Technology Developer & Platform Group
St. Louis Day of Dot Net 2011 Building Web Parts for an Office 365 SharePoint Site Becky Bertram Independent SharePoint Consultant SharePoint MVP, MCSD.NET,
Visual Studio 2005 IDE Features
Presentation transcript:

BIWUG | SPSaturday Sandboxed Solutions BPIO TDM Customer Deck 7/24/2018 BIWUG | SPSaturday Sandboxed Solutions Steven Van de Craen http://www.moss2007.be/blogs/vandest Ventigrate © 2007 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

SharePoint Solution Package SharePoint 2007 “A means to get what we developers have created onto a SharePoint Farm in an appropriate, supported and consistent manner” Cabinet Manifest, Assemblies, ASP.NET Pages and User Controls, ... Features, Site Definitions, ... SafeControl, CAS Policy Multi-Server Farm

SharePoint Solution Package SharePoint 2010 Farm Solution Sandboxed Solution “SP2007 Solution” concept Farm scoped Deployed by Farm administrators Full functionality ASP.NET Worker process New concept Site Collection scoped Deployed by Site Collection administrators Subset of functionality User Code Service process Inter-Package dependencies

Architecture Solution is unpacked into memory Page requests, events and workflow need code to be executed in the sandbox User Code Service spawns a Worker process (one per site collection) Web Context is recreated in User Code Worker process HttpContext.Current SPContext.Current Life-cycle processed in the sandbox Web Context Result marshalled back to main thread

Usage Sandboxed solutions are important because Solve SharePoint hosting issues in corporate environments Hosted environments much easier to manage Reduces time to deploying custom solutions Removing process of getting code approved and deployed by IT Improves stability of SharePoint servers Now badly performing code isolated to site collection rather than potentially bringing down an entire server

Subset of functionality Object Model Current SPSite and below No SPSecurity VS 2010 Intellisense hides full-trust types Compiled against full API Runtime against sandbox API 14\UserCode\Assemblies Code Access Security wss_usercode.config No calls to Web Services, Databases, File System, … SPSite SPWeb SPList SPListItem

BPIO TDM Customer Deck 7/24/2018 Demo | Creating a Sandboxed WebPart Subset of functionality VS 2010 Intellisense Code Access Security © 2007 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Subset of functionality Solution Elements Supported Not supported List Definitions List Instances Content Types/Fields Navigation Module/files Features Web Parts Event receivers Custom actions Declarative workflows … Visual Web Parts Application Pages Custom Action Group HideCustomAction element Content Type Binding Web Application-scoped features Farm-scoped features Workflows with code Resource: MSDN | Sandbox Solution Considerations http://msdn.microsoft.com/en-us/library/ee231562(VS.100).aspx

Full Trust Proxies Full Trust actions Deployed to GAC Referenced by Sandboxed code

Resource Monitoring Farm administrators Site administrators Quotas Set absolute limits Site administrators Identify expensive solutions Quotas The default resources are 300 14 factors Adjustable through SharePoint OM Server Resources: CPU, Memory, SQL, Exceptions, Critical Errors, Handles, Threads, ...

Resource Calculation Metric Name Description Units Resources Per Point Hard Limit AbnormalProcessTerminationCount Process gets abnormally terminated Count 1 CPUExecutionTime CPU exception time Seconds 3,600 60 CriticalExceptionCount Critical exception fired Number 10 3 InvocationCount Number of times solution has been invoked N/A PercentProcessorTime Note: # of cores not factored in Percentage Units of Overall Processor Consumed 85 100 ProcessCPUCycles CPU Cycles 1E+11 ProcessHandleCount Windows Handles 10,000 1,000 ProcessIOBytes (Hard Limit Only) Bytes written to IO Bytes 1E+08 ProcessThreadCount Number of Threads in Overall Process Threads 200 ProcessVirtualBytes (Hard Limit Only) Memory consumed 1E+09 SharePointDatabaseQueryCount SharePoint DB Queries Invoked 20 SharePointDatabaseQueryTime Amount of time spent waiting for a query to be performed 120 UnhandledExceptionCount Unhanded Exceptions 50 UnresponsiveprocessCount We have to kill the process because it has become unresponsive 2 Sample: A Web Part executes SharePoint OM code which results in 40 database queries, this equals to 2 resource points. In a default Site Collection this means that this Web Part can execute 150 times before Quota has been reached.

Demo | Administration UI Solution Gallery Resource Quotas BPIO TDM Customer Deck 7/24/2018 Demo | Administration UI Solution Gallery Resource Quotas © 2007 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Summary Site Collection scoped Subset of functionality Separate, sandbox process Full Trust Proxy Resource Monitoring

Online Resources and References MSDN | Sandbox Solutions http://msdn.microsoft.com/en-us/library/ee536577(office.14).aspx Tobias Zimmergren | Sandbox Solution Validation http://www.zimmergren.net/archive/2010/03/20/sp-2010-validate-sandbox-solutions-using-spsolutionvalidator.aspx 21apps | 21Scrum for SharePoint http://www.21apps.com/21scrum/announcing-21scrum/ Sahil Malik | Sandbox Solutions blog series http://blah.winsmarts.com/2009-12-SharePoint_2010_Sandboxed_Solutions__The_Definitive_Guide.aspx CodePlex | SharePoint 2010 Sandboxed Solutions http://sandbox.codeplex.com/

Thank You