SharePoint Server 2010 軟體開發架構與開發入門

SharePoint Server 2010 軟體開發架構與開發入門

1 SharePoint Server 2010 [email protected] http://teacher.syset.com MCP, MCP+I, MCSA, MCSE, MCDBA, MCAD, MCSD, MCTS, MCITP, MCPD, MCT, MVP 1 SharePoint 2010 Windows 7 SharePoint Windows 7 VHD Hyper-V

SharePoint 2010 Visual Studio 2010 SharePoint SharePoint SharePoint Farm / 1 SharePoint Server 2010 Microsoft SharePoint Server 2010 (SPS) Microsoft SharePoint Foundation 2010 (MSF 4.0) SharePoint 2010 Windows Vista, 7

Browser Browser Clients Clients MS MS Word Word Clients Clients Microsoft SharePoint Server 2010 Microsoft SharePoint Foundation 2010 MS MS Outlook Outlook Clients Clients .NET Framework and ASP.NET 3.5 SP1 Internet Information Services 7.0 Windows Server 2008 (x64 only) for Production Environments

Windows 7 or Vista (x64 only) for Development Environments only 1 SharePoint 2010 PowerShell SharePoint LINQ SharePoint Service Application SharePoint Connector Framework Claims-based

1 1. SharePoint Windows 7 2. Windows 7 VHD 3. SharePoint 1 Windows 7 SharePoint 64 Windows 7

: SharePoint 2010 Office 2010 Visual Studio 2010 .. ! : Team System : http://msdn.microsoft.com/en-us/library/ee554869(office.14).aspx 1 SPS2010 Windows 7

(1/4) SharePoint 2010 C:\SPS2010 C:\SPS2010\Files\Setup\config.xml Configuration> Setting Id="AllowWindowsClientInstall" Value="True"/> C:\SPS2010\PrerequisiteInstallerFiles\ FilterPack\FilterPack.msi Microsoft Sync Framework http://go.microsoft.com/fwlink/?LinkID=141237 SQL Server Native Cient http://go.microsoft.com/fwlink/?LinkId=123718 1 SPS2010 Windows 7 (2/4)

Windows Identity Foundation (Windows6.1-KB974405-x64.msu) http://support.microsoft.com/kb/974405 Chart Control (SPF2010 ) http://go.microsoft.com/fwlink/?LinkID=122517 SQL Server Analysis Services ADOMD.Net http:// download.microsoft.com/download/A/D/0/AD021EF19CBC-4D11-AB51-6A65019D4706/SQLSERVER200 8_ASADOMD10.msi 1 SPS2010 Windows 7 (3/4) IIS : start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IISCommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IISDirectoryBrowsing;IIS-HttpErrors;IIS-ApplicationDevelopment;IISASPNET;IIS-NetFxExtensibility;IIS-ISAPIExtensions;IIS-ISAPIFilter;IISHealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IISRequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IISManagementScriptingTools;IIS-Security;IIS-BasicAuthentication;IISWindowsAuthentication;IIS-DigestAuthentication;IISRequestFiltering;IIS-Performance;IIS-HttpCompressionStatic;IISHttpCompressionDynamic;IIS-WebServerManagementTools;IISManagementConsole;IIS-IIS6ManagementCompatibility;IISMetabase;IIS-WMICompatibility;WAS-WindowsActivationService;WASProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;WCFHTTP-Activation;WCF-NonHTTP-Activation

51 SPS2010 Windows 7 (3/4) 51 SPS2010 Windows 7 (4/4) WCF Hotfix http://go.microsoft.com/fwlink/?LinkID=166231 ADO.NET Data Services Update for .NET Framework 3.5 SP1 http://go.microsoft.com/fwlink/?LinkId=163524 SPS2010 ( ) SPS2010

SQL Server 2008 KB 970315 x64. http://support.microsoft.com/kb/970315 SPS2010 51 Windows 7 + VHD 64 Windows 7 VHD Windows 7 VHD Windows 7 ** bcdedit bcdedit

** :: SharePoint SharePoint 2010 2010 Office Office 2010 2010 Visual Visual Studio Studio 2010 2010

.... VHD ! : Team System 51

Windows Server 2008 Hyper-V VHD SharePoint 2010 Office 2010 Visual Studio 2010 Hyper-V VHD Hyper-V VHD

! : Team System 51 SharePoint Microsoft SharePoint Server 2010 http://technet.microsoft.com/zh-tw/evalcenter/ee388573 Microsoft Partner Program , License https://

www.microsoft.com/partner/licensingcalculator/default.asp x MSDN , 51 Microsoft.SharePoint.dll : C:\Program Files\Common Files\ Microsoft Shared\Web Server Extensions\14\ISAPI Framework : 3.5 : Any CPU ( ) x64 51

SharePoint - Farm (SPFarm) - Web Application (SPWebApplication) - Site Collection (SPSite) - Site (SPWeb) - List (SPList) - Item (SPListItem) - Document Library (SPDocumentLibrary) - File (SPFile) - Folder (SPFolder) 51 VS 2010 SharePoint Visual Studio 2010 SharePoint 2010 SharePoint 2010 SharePoint

51 Visual Studio 2010 SharePoint VS2010 + SharePoint 2010 SharePoint SharePoint 2010 3rd party SharePoint .wsp

51 SharePoint 2010 VS2010 VS2010 IIS w3wp.exe 51 SharePoint 2010

51 SharePoint 2010 Properties ( ) References ( ) Features (SharePoint 2010 ) Package (SharePoint 2010 ) SharePoint ( ) 51 Feature Feature Designer Feature features

Feature designer XML feature Feature (event receiver) SharePoint (SPI) feature 51 Mapped Folders Mapped Folders used to deploy to RootFiles Layouts /_layouts Images /_layouts/images Layouts 51

Default No Activation 51 F5 F5 ? 1. .wsp 2. feature 3. .wsp 4. .wsp 5. feature

6. w3wp.exe 51 SharePoint (SPI) 51 SharePoint (SPI) SPI SPI : WebParts + + + SPI SPI

51 SPI SPI Visual Studio SharePoint 51 Activation dependencies ApplicationResourceFiles Assemblies CodeAccessSecurity DwpFiles FeatureManifests

manifest.xml manifest.xml Resources RootFiles SiteDefinitionManifests TemplateFiles 51 Farm Microsoft.POC.Intranet.wsp (WSS Solution Cab)

Feature Manifests Site definitions WSS Assemblies / Farm

51 Sandboxed _Catalogs/solutions 51 (sandbox) ? OM CAS

51 (sandboxed) Solution Gallery 51 (sandboxed) : Web Parts Event Receivers Feature Activation Receivers (Actions) InfoPath

Web-part : CPU SQL : / 51

demo 51 SharePoint 2010 FRONT END User Code Server Execution Manager Host Services (Inside Application Pool) (SPUCHostService.exe)

IIS Worker Service (WPW3.EXE) (SPUCWorkerProcess.exe) Untrusted Code Subset Object Model Full Object Model 51 x

x x x x x x Off-box connections, http, web services, etc ADO.net Enterprise features (Search, BCS, etc.) Threading P-Invoke IO Other sites 51

Root SPWeb of SPSite Per-WFE AssemblyCache 1 Solution gallery WebParts.wsp 2 5 \company. intranet.webpart.wsp\ company.intranet.dll

Web Part gallery 6 4 3 Sandboxed Code Service 7 51 SPSite SPSecurity SPSite

: C:\Program Files\Common Files \Microsoft Shared \Web Server Extensions\14 \UserCode\assemblies \Microsoft.SharePoint.dll ! SPSite SPWeb SPList SPListItem

51 Code Access Security Sandbox AspNetHostingPermission, Level=Minimal SharePointPermission, ObjectModel=true SecurityPermission, Flags=Execution My.dll Other.dll User Code System DLL SharePoint DLL

wss_usercode.config Framework Code Full Trust SharePoint OM Subset OM 51 demo 51

51 Metric Name Description AbnormalProcessTerminationCo unt CPUExecutionTime CriticalExceptionCount Process gets abnormally terminated CPU exception time Critical exception fired Number of times solution

has been invoked InvocationCount PercentProcessorTime Units Resources Hard Per Point Limit Count 1 1 Seconds Number

3,600 10 60 3 Count N/A N/A 85 100 Percentage Units of

Note: # of cores not factored Overall Processor in Consumed 1E+1 1 1,000 ProcessCPUCycles CPU Cycles 1E+11 ProcessHandleCount Windows Handles

10,000 Bytes 0 1E+0 8 Threads 10,000 200 Bytes

0 1E+0 9 Number 20 100 Seconds 120 60 50

3 2 1 (Hard Limit Only) Bytes ProcessIOBytes written to IO Number of Threads ProcessThreadCount in Overall Process (Hard Limit Only) ProcessVirtualBytes Memory consumed SharePointDatabaseQueryCoun SharePoint DB Queries

t Invoked Amount of time spent waiting SharePointDatabaseQueryTime for a query to be performed UnhandledExceptionCount Unhanded Exceptions We have to kill the process UnresponsiveprocessCount because it has become unresponsive Number 51

Site Settings -> Galleries -> Solutions PowerShell Get-SPSite | foreach-object {$_.Quota.UserCodeMaximumLevel = 300} Get-SPSite | foreach-object {$_.Quota.UserCodeWarningLevel = 100} Farm 51 Farm Featurefeature [GuidAttribute("34805697-1FC4-4b66-AF09-AB48AC0F9D97")]

[GuidAttribute("34805697-1FC4-4b66-AF09-AB48AC0F9D97")] public class class PublisherValidator PublisherValidator :: SPSolutionValidator SPSolutionValidator {{ public [Persisted] [Persisted] List _allowedPublishers; _allowedPublishers; List public override override void void ValidateSolution( ValidateSolution( public SPSolutionValidationProperties properties){ properties){

SPSolutionValidationProperties }} }} public override override void void ValidateAssembly( ValidateAssembly( public SPSolutionValidationProperties properties, properties, SPSolutionValidationProperties SPSolutionFile assembly){ assembly){ SPSolutionFile }}

51 demo 51 Developer Dashboard STSADM Powershell STSADM STSADM -o setproperty -pn developer-dashboard -pv on

STSADM -o setproperty -pn developer-dashboard -pv off STSADM o setproperty pn developer-dashboard pv OnDemand Powershell Set-SPFarm DeveloperDashboardEnabled Set-SPFarm DeveloperDashboardEnabled $false 51 Developer Dashboard 51 Developer Dashboard

demo 51 SharePoint Office : https:// careers.microsoft.com/JobDetails.aspx?ss&pg=0&so&rw= 3&jid=41085&jlang=EN : Andy Hung [email protected] 51

2009 Microsoft, Microsoft Dynamics, the Office logo, and Your potential. Our passion. are trademarks of the Microsoft group of companies. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Recently Viewed Presentations

  • The Monsters Are Due on Maple Street - PC\|MAC

    The Monsters Are Due on Maple Street - PC\|MAC

    THE MONSTERS ARE DUE ON MAPLE STREET Screenplay by Rod Serling SCREENPLAY/ TELEPLAY Play written for television. Written to be filmed by a camera and not acted on stage. Screenplays deliver ideas through dialogue and stage directions. Audience hears dialogue...
  • ME 171 Computer Programming Language

    ME 171 Computer Programming Language

    compiler (like Mikro C, AVR studio, etc) or . interpreter. so that computer can understand that it needs to rotate a motor following a light. Among the various types of programming language, C is one of the most popular, powerful...
  • Three unrooted trees showing the relationships among the

    Three unrooted trees showing the relationships among the

    Monocots 2. Magnoliids 1. Basal Angiosperms 4. Eudicots- the largest group 4 Main Angiosperm Groups Shown on Qiu's Tree The ANITA group is mostly Australasian. Amborella is native to New Caledonia + =Illiciales (Trimeniaceae, Amborella) Austrobaileya *
  • Big Question: - scottsboro.org

    Big Question: - scottsboro.org

    Prior Knowledge This week's audio explores Egyptian hieroglyphics and how symbols become words. After we listen, we will discuss what you learned and what surprised you most about Egyptian hieroglyphics.
  • In-text (parenthetical) citations

    In-text (parenthetical) citations

    Purpose: To write a multi-paragraph essay that establishes a problem with Neshaminy's course offerings and provides a reasonable solution, proven through credible and ample research. Done: Create a defensible claim. Learn methods for researching a single topic using various resources....
  • This Is Your Presentation Title

    This Is Your Presentation Title

    Mesleki ilgilerin ölçülmesi 1930' lardaStrong ve Kuder' in çalışmalarıyla ile başlamıştır. ... Mesleki değerlerin sınıflandırılmasına yönelik ilk ölçme aracı Super ve ark, tarafından 1957 yılında geliştirilmiş olan Çalışma Değerleri envanteridir. Bu envanterde ...
  • HESS 510 Chapter 2 Neuromuscular Fundamentals PPT Series

    HESS 510 Chapter 2 Neuromuscular Fundamentals PPT Series

    Neural Control of Voluntary Movement. Overview: Muscle contraction results from stimulation by the central nervous system (CNS). Every muscle fiber is innervated by a somatic motor neuron, and when an stimulus is provided, results in muscle contraction.
  • Communion of Saints

    Communion of Saints

    Classically the emotions were regarded as a dangerous force that must be kept strictly under the control of reason—now they are viewed a properly controlled element in the moral life. Any ethical point of view that puts emotions instead of...