MOSS Ongelmienselvitys - Mitä nyt kun se ei toimi? Aku Heikkerö, Vesa Juvonen Microsoft Consulting Services (MCS)

Slides:



Advertisements
Similar presentations
Designing, Deploying and Managing Workflow in SharePoint Sites Steve Heaney Product Development Manager OBS
Advertisements

Randy Williams, MOSS MVP Senior Consultant Synergy Corporate Technologies.
Todd Klindt Solanite Consulting.  WSS MVP since 2006  Speaker, writer, consultant, Aquarius  Personal Blog
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
Building Enterprise Applications Using Visual Studio ®.NET Enterprise Architect.
Implementation Considerations for FAST Search For SharePoint (FS4SP) Presenter : Shyam Narayan MOSSIG – February 2011 Meeting b:
SharePoint 2010 First Look: What's new for Developers in Microsoft SharePoint 2010 Matthew McDermott, MVP Aptillon, Able
27. to 28. March 2007 | Geneva, Switzerland. Fabrice Romelard ilem SA Level 200.
Thank you SPSKC15 sponsors!. SharePoint 2013 Search Service Application (SSA) Ambar Nirgudkar Software Engineer
(code name: Data Dude) Josh Robinson Aculix.
Creating a SharePoint App with Microsoft Access Services
Using Microsoft SharePoint to Develop Workflow and Business Process Automation Ted Perrotte National Practice Manager, Quilogy, Microsoft Office SharePoint.
©2011 Quest Software, Inc. All rights reserved. Steve Walch, Senior Product Manager Blog: November, 2011 Partner Training Webcast.
Enterprise Reporting with Reporting Services SQL Server 2005 Donald Farmer Group Program Manager Microsoft Corporation.
Module 16: Software Maintenance Using Windows Server Update Services.
Enterprise Search. Search Architecture Configuring Crawl Processes Advanced Crawl Administration Configuring Query Processes Implementing People Search.
Workflows in SharePoint Brian Russo RJB Technical Consulting July 2009.
A GUIDE TO SHAREPOINT 2007 CUSTOMIZATION OPTIONS Heather Solomon, WSS MVP.
Welcome to Philly Code Camp Russ Basiura SharePoint Consultant RJB Technical Consulting
Information About Microsoft Project and Project Server Cumulative December Update Adrian Jenkins Support Escalation Engineer Microsoft Corporation 1 Brian.
Edwin Sarmiento Microsoft MVP – Windows Server System Senior Systems Engineer/Database Administrator Fujitsu Asia Pte Ltd
“This presentation is for informational purposes only and may not be incorporated into a contract or agreement.”
Creating Business Workflow Using SharePoint Designer 2007 Presented by Tarek Ghazali IT Technical Specialist Microsoft SQL Server MVP Microsoft SQL Server.
OM. Brad Gall Senior Consultant
A Close Look Inside the SharePoint Engine Randy Williams, MVP MOSS Synergy Corporate Technologies
Workflow and SharePoint Presented by Ben Geers. Overview What is workflow? Windows Workflow Foundation How does workflow apply to SharePoint? WSS v3 vs.
Developing Workflows with SharePoint Designer David Coe Application Development Consultant Microsoft Corporation.
TechEd /22/2017 5:40 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Sustainable SharePoint 2010 Customizations By Bill Keys.
Basic Developer Knowledge That Every SharePoint Admin Must Have Randy Williams, MVP MOSS Synergy Corporate Technologies
MOSS kehitysympäristö – Yksinkertaisesta laajoihin projekteihin Aku Heikkerö, Vesa Juvonen Microsoft Consulting Services (MCS)
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Overview Scale out architecture Servers, services, and topology in Central Administration.
HDNUG 27-March-2007 SQL Server 2005 Suite as a Business Intelligence Solution.
SharePoint Workflows with Visual Studio Stuart Cox RBA Consulting techpunch.wordpress.com.
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
Welcome to the Delaware Valley SharePoint User Group Russ Basiura SharePoint Consultant RJB Technical Consulting
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
Slide 1.NET Development for Project 2003 Samples from the Project 2003 SDK Jim Corbin Programmer Writer Office Developer Documentation Microsoft Corporation.
Office Business Applications Workshop Defining Business Process and Workflows.
MOSS Sovelluskehitysalustana - Miksi web-sovellukset kannattaa tehdä MOSS:n päälle Aku Heikkerö, Vesa Juvonen Microsoft Consulting Services (MCS)
VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview VITALE, CATURANO & COMPANY LTD SharePoint Developer Series – Web Part.
Solutions using Microsoft Content Management Server 2002 Connector for SharePoint Technologies Sue Corke Mark Harrison Microsoft UK.
Microsoft Management Seminar Series SMS 2003 Change Management.
Michael Hofer Senior Consultant Microsoft Corporation.
Separating the Interface from the Engine: Creating Custom Add-in Tasks for SAS Enterprise Guide ® Peter Eberhardt Fernwood Consulting Group Inc.
Ian Morrish Senior Consultant OFC302 Understanding SharePoint Trouble Shooting Best Practices Resources.
Intro to Datazen.
Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP.
Designing Enterprise Corporate Web Sites using SharePoint 2010 Paul Stubbs Technical Evangelist Microsoft.
Yaroslav Pentsarskyy Involved in SharePoint since 2003 SharePoint MVP (2009- Present) Blog: sharemuch.com.
Configuring and Deploying Web Applications Lesson 7.
NET Development on Microsoft SharePoint Technology Part 4: Templates, Features, and Solution Deployment Mick Badran Breeze Training Consulting Trainer.
The 2007 Microsoft Office System Servers Enterprise Content Management, Workflow and Forms Martin Parry Developer and Platform Group, Microsoft Ltd
Workflow in Microsoft Office SharePoint Server Jessica Gruber Consultant Microsoft Corporation.
YOUR LOGO Phase 2 International Providing critical business software solutions at affordable prices.
Custom Authentication Providers For DotNetNuke v5.0 Stan Schultes – Sarasota, FL Florida Community Leader
The Ultimate SharePoint Admin Tool
SharePoint 101 – An Overview of SharePoint 2010, 2013 and Office 365
Building Enterprise Applications Using Visual Studio®
How to be a SharePoint Developer
Reporting Services 2012 Data Alerts
What Is The SSIS Catalog and Why Do I Care?
Introduction to SharePoint 2007
SharePoint Site Admin Training
SPDocKit.
DAT381 Team Development with SQL Server 2005
Mark Quirk Head of Technology Developer & Platform Group
MS Confidential : SharePoint 2010 Developer Workshop (Beta1)
SharePoint 2013 Best Practices
Presentation transcript:

MOSS Ongelmienselvitys - Mitä nyt kun se ei toimi? Aku Heikkerö, Vesa Juvonen Microsoft Consulting Services (MCS)

Agenda Eri lokien hyödyntäminen ja konfigurointi Debuggaus MOSS:ssa Best practices – kuinka vältän turhia virheitä ja hyödynnän alustaa tehokkaasti

Who are we? Aku Heikkerö –Senior Consultant, Team leader, BPIO Service Line, Enterprise Services, Microsoft Finland –Member of a worldwide SharePoint Ranger team –In Microsoft since Companies before Microsoft – ICL, Fujitsu – Vesa Juvonen –Software Development Consultant, BPIO Service Line, Enterprise Services, Microsoft Finland –In Microsoft since 2006, started IT studies 1996 (graduation took a while). Companies before Microsoft – ICL, Fujitsu, BasWare working as Software Architect, Lead Software Development Engineer etc. – –Blog:

Problem solving in MOSS

Different logs available Event Log –System log to track critical errors –Monitoring tools usually track this log for possible indications of problems Unified Logging Service (ULS) –More comprehensive log to track what happens in the SharePoint –Logging level can be configured based on environment

Event log All critical errors are raised to event log

ULS Log – How does it work? Microsoft.Office.Server.Diagnostics.ULS class called from the code –Unfortunately not public class Depending on the diagnostic logging settings from the Central administration, messages are logged to disk –By default - c:\program files\common files\Microsoft Shared\Web Server Extensions\12\Logs

Control logging Can be done from the Central Administration

Analyzing ULS logs There are no out-of-the-box tools for viewing the logs Multiple community tools however available –ULS Log Viewer -

Using ULS log from own code Code example available from the MSDN – Integrate the code to your own solution and use it from code

Logging to ULS

Debugging

Debugging Code can be debugged using the Attach Process… approach WSS3.0 Extensions does the trick for you Learn how to do this also manually There’s no way to debug the xml files or site provisioning –ULS is your best friend… maybe goofy friend, but good friend…

Using attach to process manually

Best Practices

Utilize feature framework Do not edit Out-Of-the-Box features –Take a copy and build your own Everything deployed to MOSS should be encapsulated to features; if possible What can be done automatically it should All the features deployed within the projects should be marked invisible

Use Solution packages Always use solution packages Xcopy is not the production proof way to deploy Solution package deployment requires the applications pools to be recycled Solution deployment package is nothing more than a cabinet package

Quality, Quality, Quality Developing and functional testing in Development environment Deployment for Quality Assurance environment follows Acceptance Testing (done in QA) Production Deployment after the delivery is approved ready for production

Naming conventions Use project identifier as the naming convention for the: –Feature folders –Site definititions –WebParts and controls –SiteColumns and Content types –Search scopes –Audiences –Solution packages –And the list goes on....

Test as early as possible Encapsulate v0.1 as fast as possible Test every feature as independent functinality Include test cases for the project documentation

What NOT to do when developing on WSS Do NOT modify any SQL database tables or stored procedures Do NOT directly query SQL database tables or stored procedures Do NOT modify any file WSS installs –Few exceptions, like the docicons.xml Do NOT modify xml metadata files after the provision has happen Do NOT assume you’re running solely with Windows Authentication Do NOT assume that you’re running on a single machine Do NOT assume everyone is an admin

Disposing SharePoint Objects public void GetSPSiteInfo(String strSite) { using(SPSite oSPsite = new SPSite(strSite)) { foreach(SPWeb oSPWeb in oSPSite.Webs) ProcessWeb(oSPWeb); } public void ProcessWeb(SPWeb oSPWeb) { foreach(SPWeb oSubWeb in oSPWeb.Webs) ProcessWeb(oSubWeb); }

Disposing SharePoint Objects public void GetSPSiteInfo(String strSite) { using(SPSite oSPsite = new SPSite(strSite)) { foreach(SPWeb oSPWeb in oSPSite.Webs) { ProcessWeb(oSPWeb); oSPWeb.Dispose(); } public void ProcessWeb(SPWeb oSPWeb) { foreach(SPWeb oSubWeb in oSPWeb.Webs) { ProcessWeb(oSubWeb); oSubWeb.Dispose(); }

Caching data & Objects public Hashtable GetCachedData() { Hashtable oCachedData = (Hashtable)Cache[“CacheName”]; if(oCachedData == null) { oCachedData = QueryToGetCachedData(); Cache.Add(“CacheName”, oCacheddata, null, DateTime.Now.AddHours(1), TimeSpan.Zero, CacheItemPriority.High, OnRemoveCacheItem); } return oCachedData; }

Caching data & Objects public Hashtable GetCachedData() { lock(object) { Hashtable oCachedData = (Hashtable)Cache[“CacheName”]; if(oCachedData == null) { oCachedData = QueryToGetCachedData(); Cache.Add(“CacheName”, oCacheddata, null, DateTime.Now.AddHours(1), TimeSpan.Zero, CacheItemPriority.High, OnRemoveCacheItem); } return oCachedData; }

Tips & Tricks Do not deploy files in to layouts folder –New folder located under the layouts No updating of system aspx pages No direct access to the DB ID guidelines –Document the ID’s per implementation that are used –Each project should have their Sequence of their own Consider to go with the 64-bit Use.Dispose method

Tips & Tricks continue… Reduce Unnecessary round-trips –Test your WebParts –USE Cache as much as possible Querying Large Lists –If possible use RowLimit in the SPQuery Updating Large Lists –Instead of OM use WebServices

Let’s have a short look on the example VS solution

Summary Use event log and ULS log to solve the environmental issues –ULS log has huge amount of information Utilize ULS log also in your own projects using custom code Follow the best practices to avoid common pitfalls

More information SharePoint community – SharePoint product team blog – Visual Studio structure used in demos and more guidelines (in future) –