how to upgrade vsewss projects? common issues you might run into

47
©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010 Advanced Developer Training

Upload: branden-norris

Post on 19-Jan-2016

222 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Advanced Developer Training

Page 2: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Upgrading Code from SharePoint Server 2007 to SharePoint Server 2010

NameTitleCompany

Page 3: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Agenda

Upgrading VSeWSS projects

Common upgrade issues for custom codeIssues you might run into during upgrade your code

Managing your upgrade processWhat to consider during upgrade planning for your customizations

Page 4: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

VSEWSS PROJECT UPGRADES

How to upgrade VSeWSS projects?

Page 5: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Upgrade tool for VSeWSS

VS.NET Template that allow for importing of existing VSeWSS projects

VB and C#VSeWSS 1.1 and up

Converts projects to Visual Studio 2010 format and maintains existing project layoutAvailability

Released after RTM

Page 6: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Overview

Template “Import VSeWSS Project”Supports Full trust and sandbox solutions

Page 7: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Before & AfterVSEWSS WSP

View

Visual Studio 2010 Packaging Explorer

Page 8: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Refactoring Solutions

VSeWSS had 1:1 Feature:artifactVS2010 is more flexibleFeature Designer

Add/Remove SharePoint Artifacts into features

From other projects in solution

Feature Rename, Add, Remove and Delete

Packaging ExplorerAdd/Remove Features from WSP Add/Remove custom assemblies

Page 9: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Refactoring Your WSPRefactored

(multiple artifacts / feature)Original

(1 artifacts for 1 feature)

Page 10: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

UPGRADE ISSUESCommon issues you might run into

Page 11: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Upgrade Issues

Site templates - STP FilesUI Changes

CSSCustom ActionsBackwards Compatible UI

Large List Query ThrottlingDeprecated API’sDeployment Path issuesProject RefactoringOther issues

Page 12: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Create V3 site

Upgrade to V4

Fix any Issues

Save as

Template

Upgrading site templates

Site template file format is not anymore STP

Need to be converted to solution packages STP Template

.WSP

Page 13: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Backwards Compatible UI

( Configurable on a site by site basis )

V3 UI

V4 Development

V4 UIV3 UI Mode

ToolbarsV3 CSSV3 Themes

No Interactive calendarsNo In-Place Wiki editsNo Ribbon

SP2007 SP2010

Page 14: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Site Collection Options

Site Settings> Site Collection Administration

> Supported User Experiences

Page 15: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Site Options

Site Settings> Title, Description & Appearance (in V3 UI Mode)

Page 16: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Object Model Options

Web LevelSPWeb.UIVersion (int values of 3 or 4)

Site CollectionSPSite.UIVersionConfigurationEnabled“Preview Mode” if in V4 and UIVersionConfigurationEnabled==true

Page 17: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published April 2010

Versioned Controls

Allows for rendering of version specific content.

During Render

At Load Time – handles child controls properly

Page 18: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

UI Compatibility Mode

demo

Page 19: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

CSS Changes

What has changed in SharePoint CSS?Almost everything!

Any customizations that depend on V3 CSS such as master pages will need to be redesigned to work correctly in V4.

Rendering based on XHTML WCAG 2.0 AA level compliant

Page 20: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Custom Actions

No more toolbars in V4 UI ModeToolbar actions are moved

Moved to Custom Commands on the ribbon.It is possible to show ribbon and toolbar by modifying the list form web part properties.

Actions with code behind(ControlAssembly, ControlClass, or ControlSrc attribute) don’t migrate to Custom Commands tab.

Page 21: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Upgrading master pages

1. Remove unnecessary controls, which are replaced with ribbon

Publishing Console, Site actions, sign in and log-in controls

2. Add new place holdersPlaceHolderQuickLaunchTop, PlaceHolderQuickLaunchBottom

3. Add the Ribbon to page4. Add additional controls to page

SPPageManager, ScriptManager, ScriptLink

5. Modify CSS classes based on your UI

Page 22: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Upgrading themes

Old themes are not compatible with 2010

New themes files have to be created

Old themes can be used with legacy UI rendering mode before upgrade to 2010 UI is done

Page 23: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Upgrade changed content

If SharePoint Designer has been used to customize site content, changed files are in database, not in file system

Two optionsReset the content to be in uncustomized state and provide updates using Feature FrameworkUse SPD to manually update the changed files

Page 24: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

List view threshold

Queries that return/touch large numberof list items may fail. Thresholds are configurable through the Central Administration site.

Page 25: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Large List Considerations

This can bite you

Need it to surface in DevelopmentTest as a non-admin userUse realistic data volumes in development and test servers

Refactor code to use ContentIterator, if possible

Page 26: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Using Existing Code

All SharePoint 2007 code in all processes will work without recompilation

Achieved by using machine level binding redirections

Binding redirections will work also for any custom code, which is not running under IIS

Page 27: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Deprecated API's

Numerous API’s have been deprecated.

Recompile your application for 2010 and you will see warnings for any affected API’s within your application.Deprecated doesn’t always mean unsupported!Only affect will be a compiler warningMost API’s deprecated in 2007 are still in 2010Microsoft will not invest in these API’s in the future and will remove deprecated APIs after next version

Page 28: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Deprecated API's Examples

SPFarm.CreateMessage: Use the SPFarm.Create method that takes a passphrase.

SPVirtualServerMessage: Use SPWebApplication or SPIisSettings instead.

Shared Service Provider Code in some level

Page 29: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Path and registry issues

Path to the SharePoint Hive has changed

C:\Program Files\Common Files\Microsoft Shared\Web Server Extension\14

Custom code that references \12 should be updated

Custom code references to 12 registry keys should be updated

Page 30: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Other Issues

X86->x64 COM references (IID changes)3rd party dependenciesHttpModule/HttpHandler registration changes for IIS7 integrated pipeline

Page 31: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Other issues (cont)

Page 32: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Project RefactoringConsole/WinForms Applications

Build as x64, .Net 3.5 SP1Fix-up references

VS 2008/2005 ProjectsImport WSPRefactorAdd non-packaged files (source code, BDC, docs, scripts)Fix-up referencesAdd additional support/related projects

Page 33: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Case – Global intranet upgrade

demo

Page 34: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Upgrade logging

More logging information availableActions conducted during psconfig upgrade are logged to dedicated logs

Logs located in the ULS folderImproved logging and seperate error log

User interface on central administration application to view the upgrade actions

Provides additional information on the actions

Page 35: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Logs on the file system

Page 36: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Upgrade status from CA

Page 37: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

MANAGING YOUR UPGRADE PROCESS

How to manage your upgrade process?

Page 38: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Upgrade process

It’s much more than your customizations

Always use QA environments to verify the process

Preruns and document the possible issues and process to deployVirtualization provides excellent tools to move back to previous state

Page 39: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Upgrade Cycle: OverviewLearn• Requirements/

prerequisites• Upgrade methods• Downtime

mitigation• Common issues Prepare

• Document environment

• Manage customizations

• Plan upgrade strategy

• Make items upgradable

Test• Build test farms

• Use real data• Evaluate techniques• Find issues early

Implement• Build/upgrade farms• Deploy

customizations• Minimize downtime• Monitor progress

Validate• Upgrade event

failures• UI/UX issues• Data issues

Page 40: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Upgrade Cycle: Learn

Requirements/Pre-reqs

64 bit onlyOperating SystemSQL server

Upgrade methodsIn-PlaceDatabase Attach

ContentProfileProject

WID to SQL Migration

Downtime mitigationRead-only content databasesParallel upgrades

Multiple temporary farmsParallel database attach

AAM redirection

Common issuesMissing dependenciesUI changesLack of space

Page 41: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Upgrade Cycle: Prepare

Document environment

Farm structure/hierarchyLanguage packsCustomizations

Plan upgrade strategy

Farm upgrade orderOrder of operationsDowntime limits/mitigateRollback processHardware upgradesSpace requirementsSpring cleaning

Manage Customizations

Identify customizationsCollect customizations

Make items upgradable

SolutionsFeaturesSite definitionsWeb parts

Page 42: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Upgrade Cycle: Test

Build test farmsUse real data (copies of entire databases)

To identify trouble areasTo determine upgrade performance

Use similar hardware if possible

Evaluate techniquesUpgrade processDowntime mitigationTroubleshooting/Validation

Find issues earlyDetermine and test mitigations before upgrade

Page 43: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Upgrade Cycle: Implement

Build/upgrade farmsServices farmContent farm

Deploy customizationsSolutions whenever possible

Minimize downtimeUse read only with fallback environmentBuild for upgrade parallelism

Monitor progressWatch upgrade status indicatorsEnsure upgrade process is on schedule

Page 44: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Upgrade Cycle: Validate

Upgrade event failures1. Review logs to identify issue2. Implement fixes3. Restart/resume upgrade

UI/UX issuesUI Version issuesGhosting issuesXHTML compliance issues

Data issuesOrphaned items/database corruptionHidden column dataConnectivity issues to data sources

Page 45: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Summary

Upgrading VSeWSS project

Common upgrade issues for custom codeIssues you might run into during upgrade your code

Managing your upgrade processWhat to consider during upgrade planning

Page 46: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

Page 47: How to upgrade VSeWSS projects? Common issues you might run into

©2010 Microsoft Corporation. All rights reserved. RTM Content - Published May 2010

© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.

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.