SlideShare uma empresa Scribd logo
1 de 26
Baixar para ler offline
SharePoint 2010/2013 for
ASP.NET Developers
Rob Windsor
rwindsor@portalsolutions.net
@robwindsor
About Me
• Senior SharePoint Architect with Portal Solutions
• Technical Contributor to the Pluralsight On-Demand Library
• Microsoft MVP, MCPD, MCT
• Founder and Past-President of the North Toronto .NET UG
• Co-author of Prof. Visual Basic 2012 and .NET 4.5 (Wrox)
SharePoint is a Platform
• SharePoint is a platform that sits on top of ASP.NET
• The platform provides business services
• The first step in learning SharePoint development is to get a
solid understanding the platform
 This is a BIG step
 It’s the same order of magnitude as getting a solid understanding of
the .NET Framework
• You need to understand the platform so you can determine
when custom development is, and is not, necessary
 The goal of any SharePoint developer is to solve business problems
using the platform – that is, without custom development
SharePoint Architecture
2007 2010 2013
OS Server 2003 or 2008 Server 2008
Server 2012 (SP2)
Windows Vista or 7
Server 2008 R2 or 2012
.NET 3.0 or 3.5 3.5 SP1 4.5
Package Farm Solutions Farm Solutions
Sandbox Solutions
Farm Solutions
Sandbox Solutions *
SharePoint Apps
APIs Server OM
ASMX Services
Server OM
ASMX Services
Client OM
REST API
Server OM
ASMX Services *
Client OM
REST API
Notes:
• Operating systems for SharePoint 2010 and 2013 must by 64-bit
• Sandboxed solutions and ASMX web services have been deprecated in
SharePoint 2013
SharePoint Architecture (con’t)
Farm
Web App
Site Collection
Content Type
Web Part
Site
List
Library
SharePoint System Folders
SharePoint Database
SharePoint Editions
• SharePoint Foundation
 Free
 Core collaboration features and developer APIs
• SharePoint Server
 Standard and Enterprise editions
 Adds enterprise features valuable to mid to large size
organizations
• Office 365/SharePoint Online
 Most of the collaboration features of Foundation
 Some of the enterprise features of Server
 Limited options for custom development
SharePoint Developer Enviroment
• SharePoint must be installed on developer
machine
 Unless you only want to build Apps for Office 365
• Also have: SQL Server, Visual Studio, SharePoint
Designer, Office
• Suggested RAM requirements
 SP 2010 Foundation: 2GB
 SP 2010 Server: 6GB
 SP 2013 Foundation or Server: 10GB+
SharePoint Developer APIs
• Server Object Model
 Used by client apps running on SP server
• Client Object Models (CSOM)
 Remote API
 Three entry points: .NET Managed, Silverlight, JavaScript
 Façade layer on top of WCF service
 Uses batching model to access resources
• REST Web Services (API)
 SP 2010: CRUD on list data only
 SP 2013: API expanded to be more like CSOM
• SharePoint Web Services
 “Legacy” SOAP-based web services
Package Models
• Farm Solutions
 Full access to Server Object Model
 Files deployed to SharePoint server file system
• Sandboxed Solutions
 Access to a subset of the Server Object Model
 Files deployed to SharePoint content database
 Code executes in isolated worker process
• SharePoint Apps
 No access to Server Object Model
 Code executes on client or on remote server
 Deployment location depends on App type
DEMO
Building a Solution
Features and Elements
• SharePoint component model
• Define logical units of functionality
• Contain elements
 e.g. menu items, links, list types and list instances
 Many other element types possible
• Support activation/deactivation by end-users and
administrators
 Activation scoped to: Farm, Web Application, Site, or
Web
 Events raised during activation and deactivation
User’s View of Features
• Features support concept of activation and deactivation
Feature Manifest
• Features defined in using Collaborative Application
Markup Language (CAML)
<Feature
Id="B2CB42E2-4F0A-4380-AABA-1EF9CD526F20"
Title="A Sample Feature: Hello World"
Description=“This is a hand crafted Feature manifest"
Scope="Web"
Hidden="FALSE"
xmlns="http://schemas.microsoft.com/sharepoint/">
<ElementManifests>
<ElementManifest Location="elements.xml" />
</ElementManifests>
</Feature>
Element Manifest
• This element defines a Site Actions menu item
• There are many other types of elements
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="SiteActionsToolbar"
GroupId="SiteActions"
Location="Microsoft.SharePoint.StandardMenu"
Sequence="100"
Title="Hello World"
Description="A custom menu item added using a feature"
ImageUrl="_layouts/images/crtsite.gif" >
<UrlAction Url="http://msdn.microsoft.com"/>
</CustomAction>
</Elements>
Solution Packages
• Work done in Visual Studio packaged into a
solution for deployment
• Package is a CAB file with a WSP extension
• Package contains manifest with deployment
instructions
• Two types of solutions:
 Farm solutions
 Sandboxed solutions
DEMO
Revisit the Project
What is the App Model?
• New development/deployment/hosting model for
extensions to Office and SharePoint
• Conceptually similar to apps for phones/tablets
 Find / Try / Buy concept
 Public and private App stores (catalogs)
Apps for SharePoint are self-contained pieces of
functionality that extend the capabilities of a SharePoint
website. Apps integrate the best of the Web and SharePoint;
they are targeted and easy-to-use, and do a great job at
solving a user need.
App Characteristics
• All custom code executes outside SharePoint
 JavaScript in client browser
 .NET (or other) code on external server
 Code communicates with SharePoint via web services
• Apps have identity and permissions
 App requests permissions when installed
 Permissions have both scope and rights
 App permissions are independent of user permissions
App Experiences
• Full Page
 All apps must have a full page experience
• App Part
 UI from full-page experience can be added to
SharePoint pages like a web part
 Hosted in an IFrame
• Custom Actions
 Can add options to ribbon or menus
App Hosting
• SharePoint Hosted
 App hosted in SharePoint farm
• Externally Hosted
 Also known as Developer, Provider or Cloud Hosted
 App hosted in website external to SharePoint
 Can be implemented using any Web technology
• Hybrid
 App could a combination of two hosting models above
• Auto-Hosted
 SharePoint Online and Azure
• Services
 App support depends on two service applications
 App Management and Site Subscription Management
SharePoint Hosted App Isolation
• Apps are isolated from the SharePoint site that hosts
them and from other Apps
• The SharePoint site where you install an App is called the
Host Web
• The SharePoint site where the App is deployed is called
the App Web
 Lives in an isolated domain on SharePoint farm
 Base URL is partially generated, partially configured
• Example:
 Host Web: www.contoso.com/sites/demo
 App Name: Test
 App Web: app-bdf2016ea7dacb.apps.contoso.com/sites/demo/Test
SharePoint Hosted App Capabilities
• Cannot use server-side code
• Can create many SharePoint elements
 Lists, fields, content types, etc.
• Can provision content pages
 Pages can use ASP.NET and SharePoint controls
 No code-behind
• Elements and Pages provisioned in App Web
• Can only communicate with Host Web if granted
permissions
 Communicate with Host Web using CSOM or REST
App Development Tools
• “Napa”
 SharePoint App that enables App development
 Only requires a browser
 Designed for leaning and prototyping
• Visual Studio 2012
 App development tools require download
 Tools are still in Beta (Preview 2)
DEMO
Building an App
Thank You
• Big thanks to the organizers, sponsors and you for making
this event possible
• Please fill out your evaluation
• Please keep in touch
rwindsor@portalsolutions.net
@robwindsor
msmvps.com/blogs/windsor

Mais conteúdo relacionado

Último

Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfOverkill Security
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 

Último (20)

Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 

Destaque

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Destaque (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

SharePoint 2010/2013 for ASP.NET Developers

  • 1. SharePoint 2010/2013 for ASP.NET Developers Rob Windsor rwindsor@portalsolutions.net @robwindsor
  • 2. About Me • Senior SharePoint Architect with Portal Solutions • Technical Contributor to the Pluralsight On-Demand Library • Microsoft MVP, MCPD, MCT • Founder and Past-President of the North Toronto .NET UG • Co-author of Prof. Visual Basic 2012 and .NET 4.5 (Wrox)
  • 3.
  • 4. SharePoint is a Platform • SharePoint is a platform that sits on top of ASP.NET • The platform provides business services • The first step in learning SharePoint development is to get a solid understanding the platform  This is a BIG step  It’s the same order of magnitude as getting a solid understanding of the .NET Framework • You need to understand the platform so you can determine when custom development is, and is not, necessary  The goal of any SharePoint developer is to solve business problems using the platform – that is, without custom development
  • 5. SharePoint Architecture 2007 2010 2013 OS Server 2003 or 2008 Server 2008 Server 2012 (SP2) Windows Vista or 7 Server 2008 R2 or 2012 .NET 3.0 or 3.5 3.5 SP1 4.5 Package Farm Solutions Farm Solutions Sandbox Solutions Farm Solutions Sandbox Solutions * SharePoint Apps APIs Server OM ASMX Services Server OM ASMX Services Client OM REST API Server OM ASMX Services * Client OM REST API Notes: • Operating systems for SharePoint 2010 and 2013 must by 64-bit • Sandboxed solutions and ASMX web services have been deprecated in SharePoint 2013
  • 6. SharePoint Architecture (con’t) Farm Web App Site Collection Content Type Web Part Site List Library SharePoint System Folders SharePoint Database
  • 7. SharePoint Editions • SharePoint Foundation  Free  Core collaboration features and developer APIs • SharePoint Server  Standard and Enterprise editions  Adds enterprise features valuable to mid to large size organizations • Office 365/SharePoint Online  Most of the collaboration features of Foundation  Some of the enterprise features of Server  Limited options for custom development
  • 8. SharePoint Developer Enviroment • SharePoint must be installed on developer machine  Unless you only want to build Apps for Office 365 • Also have: SQL Server, Visual Studio, SharePoint Designer, Office • Suggested RAM requirements  SP 2010 Foundation: 2GB  SP 2010 Server: 6GB  SP 2013 Foundation or Server: 10GB+
  • 9. SharePoint Developer APIs • Server Object Model  Used by client apps running on SP server • Client Object Models (CSOM)  Remote API  Three entry points: .NET Managed, Silverlight, JavaScript  Façade layer on top of WCF service  Uses batching model to access resources • REST Web Services (API)  SP 2010: CRUD on list data only  SP 2013: API expanded to be more like CSOM • SharePoint Web Services  “Legacy” SOAP-based web services
  • 10. Package Models • Farm Solutions  Full access to Server Object Model  Files deployed to SharePoint server file system • Sandboxed Solutions  Access to a subset of the Server Object Model  Files deployed to SharePoint content database  Code executes in isolated worker process • SharePoint Apps  No access to Server Object Model  Code executes on client or on remote server  Deployment location depends on App type
  • 12. Features and Elements • SharePoint component model • Define logical units of functionality • Contain elements  e.g. menu items, links, list types and list instances  Many other element types possible • Support activation/deactivation by end-users and administrators  Activation scoped to: Farm, Web Application, Site, or Web  Events raised during activation and deactivation
  • 13. User’s View of Features • Features support concept of activation and deactivation
  • 14. Feature Manifest • Features defined in using Collaborative Application Markup Language (CAML) <Feature Id="B2CB42E2-4F0A-4380-AABA-1EF9CD526F20" Title="A Sample Feature: Hello World" Description=“This is a hand crafted Feature manifest" Scope="Web" Hidden="FALSE" xmlns="http://schemas.microsoft.com/sharepoint/"> <ElementManifests> <ElementManifest Location="elements.xml" /> </ElementManifests> </Feature>
  • 15. Element Manifest • This element defines a Site Actions menu item • There are many other types of elements <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <CustomAction Id="SiteActionsToolbar" GroupId="SiteActions" Location="Microsoft.SharePoint.StandardMenu" Sequence="100" Title="Hello World" Description="A custom menu item added using a feature" ImageUrl="_layouts/images/crtsite.gif" > <UrlAction Url="http://msdn.microsoft.com"/> </CustomAction> </Elements>
  • 16. Solution Packages • Work done in Visual Studio packaged into a solution for deployment • Package is a CAB file with a WSP extension • Package contains manifest with deployment instructions • Two types of solutions:  Farm solutions  Sandboxed solutions
  • 18. What is the App Model? • New development/deployment/hosting model for extensions to Office and SharePoint • Conceptually similar to apps for phones/tablets  Find / Try / Buy concept  Public and private App stores (catalogs) Apps for SharePoint are self-contained pieces of functionality that extend the capabilities of a SharePoint website. Apps integrate the best of the Web and SharePoint; they are targeted and easy-to-use, and do a great job at solving a user need.
  • 19. App Characteristics • All custom code executes outside SharePoint  JavaScript in client browser  .NET (or other) code on external server  Code communicates with SharePoint via web services • Apps have identity and permissions  App requests permissions when installed  Permissions have both scope and rights  App permissions are independent of user permissions
  • 20. App Experiences • Full Page  All apps must have a full page experience • App Part  UI from full-page experience can be added to SharePoint pages like a web part  Hosted in an IFrame • Custom Actions  Can add options to ribbon or menus
  • 21. App Hosting • SharePoint Hosted  App hosted in SharePoint farm • Externally Hosted  Also known as Developer, Provider or Cloud Hosted  App hosted in website external to SharePoint  Can be implemented using any Web technology • Hybrid  App could a combination of two hosting models above • Auto-Hosted  SharePoint Online and Azure • Services  App support depends on two service applications  App Management and Site Subscription Management
  • 22. SharePoint Hosted App Isolation • Apps are isolated from the SharePoint site that hosts them and from other Apps • The SharePoint site where you install an App is called the Host Web • The SharePoint site where the App is deployed is called the App Web  Lives in an isolated domain on SharePoint farm  Base URL is partially generated, partially configured • Example:  Host Web: www.contoso.com/sites/demo  App Name: Test  App Web: app-bdf2016ea7dacb.apps.contoso.com/sites/demo/Test
  • 23. SharePoint Hosted App Capabilities • Cannot use server-side code • Can create many SharePoint elements  Lists, fields, content types, etc. • Can provision content pages  Pages can use ASP.NET and SharePoint controls  No code-behind • Elements and Pages provisioned in App Web • Can only communicate with Host Web if granted permissions  Communicate with Host Web using CSOM or REST
  • 24. App Development Tools • “Napa”  SharePoint App that enables App development  Only requires a browser  Designed for leaning and prototyping • Visual Studio 2012  App development tools require download  Tools are still in Beta (Preview 2)
  • 26. Thank You • Big thanks to the organizers, sponsors and you for making this event possible • Please fill out your evaluation • Please keep in touch rwindsor@portalsolutions.net @robwindsor msmvps.com/blogs/windsor