+ All Categories
Home > Technology > Governance Configure Customise Code

Governance Configure Customise Code

Date post: 02-Jul-2015
Category:
Upload: elaine-van-bergen
View: 754 times
Download: 3 times
Share this document with a friend
Description:
Techniques and things to watch out for when configuring, customising and coding on your SharePoint environment
29
Elaine van Bergen OBS Architect
Transcript
Page 1: Governance Configure Customise Code

Elaine van Bergen

OBS

Architect

Page 2: Governance Configure Customise Code

ConfigureChanging settings within the environment at a high level such as SharePoint Farm, Server or DB.

CustomiseModifying the environment without writing code that requires compilation

Code Modifying the environment through compiled code

Page 3: Governance Configure Customise Code

System Administration SharePoint Administrators Site Administrators Developers

End Users

Page 4: Governance Configure Customise Code

Function Dev (multiple)TestStaging*ProductionDR DesktopOthers

Page 5: Governance Configure Customise Code

Web Front End Serves pages

DatabaseStores Content

IndexCrawling

Page 6: Governance Configure Customise Code

Configure

6.

Page 7: Governance Configure Customise Code

Get to know your system administrator and DBA

Changing settings, can easily break SharePoint

Generally not even be SharePoint specific, think database, office, security, internet explorer

Page 8: Governance Configure Customise Code

Always use SharePoint UI’s for changing settings e.g. central administration not IIS

Consider the database as off limits until you have read the necessary white papers from Microsoft.

IT and the business need to work together on settings changes

Page 9: Governance Configure Customise Code

9.

Page 10: Governance Configure Customise Code

Ensure test strategy is defined

This needs to involve the key stakeholders and key business functions

Push changes through the test environment first

Page 11: Governance Configure Customise Code

Avoid “This problem only happens on production”

Document

Script

Use a tool to synchronise

Page 12: Governance Configure Customise Code

Customise

12.

Page 13: Governance Configure Customise Code

Web parts

Content Types

Branding

Workflow

These are not as harmless as they sound

Page 14: Governance Configure Customise Code

Content Queries – Large queries

XSLT – Incorrect syntax

RSS – Malicious feeds, internet access

Page Viewer – Malicious content

Consider what web parts are appropriate

Page 15: Governance Configure Customise Code

Changes may not propagate as expected

Adding fields work well

Fields with the same display name

Fields with different internal names in locations

Page 16: Governance Configure Customise Code

Rapid development is possible using tools like SharePoint designer

Changes may break the entire site

Think about different sorts of sitesMeeting workspaces Search

Back-up and rollback strategy

Move between system environments

Page 17: Governance Configure Customise Code

How will this be tested

Loops, annoying test emails, deleting information

Deployment strategy

Page 18: Governance Configure Customise Code

18.

Page 19: Governance Configure Customise Code

Control using security and policy but need to preserve the goal

Educate the users

Provide a training playpen

Customisations should go via a test server too

Monitor the system

Have a backup and rollback strategy

Page 20: Governance Configure Customise Code

Code

20.

Page 21: Governance Configure Customise Code

Why are you writing code ?

Negotiate first, code second

Code sources:BuyDownloadDevelop

Do you have a support strategy ?

Page 22: Governance Configure Customise Code

SharePoint code is just .Net code but has it’s own best practises

Traps for new players

Memory managementExcessive database round trippingForgetting about scale Forgetting about security

Page 23: Governance Configure Customise Code

Frequent recycles of application pool, especially during peak usage

Application crashes that appear as heap corruption in the debugger

High memory use for Microsoft Internet Information Services (IIS) worker processes

Poor system and application performance

Page 24: Governance Configure Customise Code

using(SPSite site = new SPSite("http://server")){using(SPWeb web = site.OpenWeb()){...}}

using( SPWeb web = SPControl.GetContextWeb(HttpContext.Current)) { ... }

using (SPWeb web = new SPSite(SPContext.Current.Web.Url).OpenWeb()) { ...}

But SPDispose check helps

Page 25: Governance Configure Customise Code

Does will it work with the following: Large number of sites and lists 2000+ items in a folderMultiple web serversAlternative access mappings

Does it work for different usersReaderContributor

Page 26: Governance Configure Customise Code

Create features and bundle into solution (WSP) to deploy

WSP’s automatically get deployed to all servers in the farm

WSP’s can do more than just deploy web parts and files

Staple your features if needed on site creation

Page 27: Governance Configure Customise Code

27.

Page 28: Governance Configure Customise Code

Packaging Coding standards SPDisposeCheckSupported/Upgradable

Load + Performance test Security testAccessibility

Page 29: Governance Configure Customise Code

Questions ?

Elaine van Bergen

@laneyvb on twitter

http://laneyvb.blogspot.com

29.


Recommended