Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture...

27
IT-Symposium 2005 www.decus.de 1 © 2004 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Microsoft Project Server 2003: Architecture and Troubleshooting Wolfgang Werner Decus 2005 Agenda Architecture and Components SQL Server IIS Tools

Transcript of Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture...

Page 1: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 1

© 2004 Hewlett-Packard Development Company, L.P.The information contained herein is subject to change without notice

Microsoft Project Server 2003: Architecture and Troubleshooting

Wolfgang WernerDecus 2005

Agenda• Architecture and Components• SQL Server • IIS• Tools

Page 2: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 2

Architecture

Internet Information ServicesInternet Information Services

Components• Tracing Service (PjTraceSvc)• Views Notification Service (PjViewNotify)• Central Spooler (PjSpool)• Scheduled Process Service (PjSchSvc)• Project Data Service (PDS)• Other

Page 3: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 3

Components: PjTrcSvc• Tracing service −Manages generated trace and debug events−Must be started in order to enable logging of Project

Server events and errors −Uses \\.\pipe\PjTrace−Registry setting: SOFTWARE\Microsoft\Office\11.0\MS

Project\Services\Configuration\PjTraceSvc\PipeSize

Components: PjTrcSvc• SetTracing.exe−To indicate whether you want the Project Server

Tracing Service to generate debug messages −Where the messages should be logged (Event Viewer,

Logfile)− http://www.microsoft.com/downloads/details.aspx?Fami

lyID=49443d62-0c72-4fa6-9cdf-6a796bde2882&DisplayLang=en

Page 4: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 4

Components: PjTrcSvc

Components: PjViewNotify• Views Notification Service− Listens for operating system events to know when an

.MPP and associated XML metadata file are dropped into the ViewDrop folder when a project is published

−Processes the content, opens the project by using the OLE DB Provider, and publishes it to the View tables in the Project Server database

−When the process is finished, the data files are deleted from the ViewDrop folder

−Also invokes the OLAP cube generation process

Page 5: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 5

Components: PjViewNotify• If Views Notification Service (VWNOTIFY.EXE) is

not running properly, resources will not be available in the Resource Center and projects will not be available in the Project Center−Check C:\Program Files\Microsoft Office Project Server

2003\BIN\VIEWDROP for orphaned files !

Components: PjViewNotify• Tool: PSHealthMon.exe−Designed to provide detection and notification of

specific system components that are responding slowly or not at all

−Monitors the number of files in the ViewDrop folder and the response time for Project Data Service (PDS) calls

• http://go.microsoft.com/fwlink/?LinkId=20976

Page 6: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 6

Components: PjViewNotify

Components: PjViewNotify• Tool: ViewPopulator.exe−Publishes projects without using Project Professional−Places XML files in your Project Server ViewDrop

folder for each project you publish

• Use the View Populator tool to−Publishing projects that did not publish properly−Troubleshooting the Views Notification Service−Disaster recovery of your Project Server deployment

• http://go.microsoft.com/fwlink/?LinkId=20888

Page 7: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 7

Components: PjViewNotify

Component: PjSpool• Central Spooler (Client)−Conveys messages from Project 2003 to Project Server

2003−Runs in the systray− If an error occurs a red exclamation mark appears− C:\Program Files\Microsoft Office\OFFICE11\PJSPOOL.EXE−C:\WINDOWS\pjspool.ini

Page 8: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 8

Component: PjSpool

Components: PDS• Project Data Service is a Web Service

− Requests to the PDS are made through an XML interface and responses are returned to the client in XML (SOAP)

• Clients (Project Professional, PWA) all access the Project Server DB through PDS − Ensures that Project Server data stored in the database remains

consistent− Opens a connection to the Project Server database on behalf of

the client− Authenticates the client and provides access to the project data.

Page 9: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 9

Components: PDS

Components: PDS• PDSTest.exe (and PDSTest.ini)− from the Project Server SDK−Usage: see “Using the PDS Test Utility” in the Project

Data Service Reference (PJ11PDSref.chm) from the Project Server SDK

• Tip: “Error 404” with PDSTest, checkC:\Program Files\Common Files\MSSoap\Binaries\SOAPIS30.DLL

Page 10: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 10

Components: other• Object Link Provider (OLP)− In PWA, issues, risks and documents are stored in

WSS subsites, and the Object Link Provider component is used to link these to projects and tasks

Components: other• Session Manager Service (PjSessionMgr)−Maintains session state information for Project Web

Access users−Each user is issued a session ID when they log on to

Project Web Access. This ID is used to save and retrieve session-specific information, such as which panes are displayed, or to identify recently viewed pages

−SOFTWARE\Microsoft\Office\11.0\MS Project\Services\Configuration\SessionMgr\Timeout• Make sessions expire after %d seconds

Page 11: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 11

Components: other• Scheduled Process Service (PjSchSvc)−Starts several scheduled processes, including the

Notification Processing Engine for Project Server e-mail notifications and reminders, Views Notification services for OLAP cube generation, and Active Directory synchronization

• Notification Processing Engine (NPE) −Sends reminders by using SMTP

• Portfolio Modeling Server (WARP Modeling Server)−Started by the Portfolio Modeler New Model wizard −Mentioned in MS KB article 815456

Components: other• Resource Availablity Refresh and OLAP Cube

Creation Component −ProjOLAP.dll

• OLAP Cube Scheduling Component (PjSvrAutoCube)−PSVRACUB.DLL

• AD Connector−PJSVRADC.DLL

• PjEncrypt process−Handles Project Web Access security−PJSECUR.DLL

Page 12: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 12

Components: other• PjSvrUtl process−PJSVRUTL.DLL− ???

• PjScriptTrace Module−PJTRCSCR.DLL− ???

• PjResMgr process−PJRESM.DLL− ???

• PjPropBag process −PJPRPBAG.DLL− ???

Agenda• Architecture and Components• SQL Server• IIS• Tools

Page 13: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 13

SQL Server• Project Server uses MS SQL Server to store its

data• Demo Enterprise Manager

SQL Server• Project Server tables are divided into four

categories−Project data−Project Web Access (PWA) data−View data−OLAP cube data

Page 14: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 14

SQL Server

SQL Server• Project data−Tables names start with MSP_*−Native data when a project is SAVED to the server−Enterprise resources and the enterprise global template−Basically same tables as in the .mpp file

• In Project Professional “Save as type” “Microsoft Access database”

Page 15: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 15

SQL Server• Examples:−MSP_PROJECTS−MSP_RESOURCES−MSP_TASKS−MSP_CALENDARS−MSP_TEXT_FIELDS,…

• Additional tables−MSP_PROJ_SECURITY−MSP_RES_SECURITY,…

SQL Server• Demo: saving to MS Access• Demo: saving to XML

Page 16: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 16

SQL Server• Project Web Access (PWA) data−MSP_WEB_*−Data when a project is PUBLISHED to the server−Project data that is shared

• Each resource's task list• Notifications• Project Server security settings,…

SQL Server• What if I forgot the Admin password for PWA?−The passwords are stored encrypted in the

MSP_WEB_RESOURCES table−Administrator account has WRES_ID = 1− Locate the WRES_PASSWORD field and delete the

encrypted password

• Demo

Page 17: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 17

SQL Server• View data−MSP_VIEW*−Are used as a reporting mechanism only−Contain a subset of project data for display in Project

Web Access views−Expanded view of the project data contained in the MS

Project tables− Increase the performance

SQL Server• OLAP cube data

− MSP_CUBE_*− Used as the staging and fact tables for creation of the OLAP cube− Examples:

• MSP_CUBE_ENTERPRISE_PROJECT_OUTLINE_1• MSP_CUBE_ENTERPRISE_PROJECT_OUTLINE_30• MSP_CUBE_ENTERPRISE_RESOURCE_OUTLINE_1• MSP_CUBE_ENTERPRISE_RESOURCE_OUTLINE_30• …

Page 18: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 18

SQL ServerData in Project Tables (MSP_WEB*)

Publish (QYLIBSQL.SQL contains the queries that are used to add data to the view tables)

Data in View Tables (MSP_VIEW*)

Creating staging tables (UserStagingTablesUpdate)

Data in staging tables (MSP_CUBE)

Generate Cube

Data in Analysis Services (MSP_Portfolio_Analyzer cube)

ArchitectureOverview

Cube Build Service(PROJOLAP.DLL)

Staging TablesMSP_CUBE

Create StagingTables

Portfolio AnalyzerCube

View TablesViews Publishing Service

GenerateCube

Page 19: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 19

SQL Server• Microsoft Project Views−Microsoft Project Server database defines many views

for retrieving information about projects, resources, tasks, assignments

− Each …_READVIEW has a corresponding …_WRITEVIEW

−Apply to enterprise resources and are not specific to a given project

−Purpose: used by PDS

SQL Server• More information:

C:\Program Files\Microsoft Office Project Server 2003\HELP\1033\PJDB.HTM

Page 20: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 20

SQL Server• Analysis Service logging−HKLM\Software\Microsoft\OLAP Server\CurrentVersion

\TraceLogString−Format: <Name of Trace File>;<Trace Options> −Example:

MSFTOLAP.LOG;1,2,3,4,10,11,12,13,14,15,16,17−See

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsql2k/html/sql2k_anservregsettings.asp

Agenda• Architecture and Components• SQL Server • IIS• Tools

Page 21: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 21

IIS• All client connections go through IIS• Hosts the PDS and WSS• Project’s Server virtual root:

C:\Program Files\Microsoft Office Project Server 2003\IIS Virtual Root

• Project Server uses its own application pool MSPS2003AppPool which uses recycling−Demo

IIS• Error message: “Could not create a Disk Cache

Sub-directory for the Application Pool”−Whenever the process gets recycled, all of ASP pages

have to get recompiled− IIS6 will keep the compiled code on the hard disk so it

don't have to recompile every time%systemRoot%\system32\inetsrv\ASP Compiled Templates

− IIS user account needs access to this directory

Page 22: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 22

Agenda• Architecture and Components• SQL Server • IIS• Tools

WSSWIZ• Configures Windows SharePoint Services for Project

Server 2003 by applying the custom templates− \Program Files\Common Files\Microsoft Shared\Web Server

Extensions\60\TEMPLATE − Creates the MS_ProjectServer_PublicDocuments site

• From the Project Server CD in folder \SUPPORT\WSSWIZ

• WSSWIZ.EXE does not have sufficient privileges to run from a network share

Page 23: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 23

Tools: WSSWIZ• WSSWIZ -?

WSSWiz.exe [(-q|-p) param1=value1 param2=value2][-l logFileName][-a][-d|-D][-f][-opath]…

Tools: WSSWIZ -d

Page 24: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 24

Tools: SmokeTest.exe• The SmokeTest tool

− Runs a series of tests to verify the basic functionality of a Project Server 2003 installation and reports the results and performance timings for each test

− Project Server 2003 should run in enterprise mode − Project Professional 2003 should be installed− the .NET Framework Version 1.1 and Office Web Components

2003 must be installed− http://go.microsoft.com/fwlink/?LinkId=20890

Tools: SmokeTest.exe

Page 25: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 25

Tools: SmokeTest.exe

Tools: PSCleaner• Project Server Cleaner tool−To bulk delete unwanted enterprise projects and

enterprise resources−Calls the PDS

• ProjectDelete• ResourcesDelete

− http://go.microsoft.com/fwlink/?LinkId=20899

Page 26: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 26

Tools: PSCleaner

Tools: DupeProj.exe• Delete Duplicate Projects tool

− Command-line tool to detect and remove duplicate projects from the Project Server database

− http://go.microsoft.com/fwlink/?LinkId=20893C:\> DupeProj.exe –l –cs:”server=(local);Integrated

Security=SSPI;database=ProjectServerC:\> DupeProj.exe –d:456,457,459 –cs:”server=(local);Integrated

Security=SSPI;database=ProjectServer”

Page 27: Microsoft Project Server 2003: Architecture and ... · Microsoft Project Server 2003: Architecture and ... available in the Resource Center and projects will ...

IT-Symposium 2005

www.decus.de 27

Tools: ProjRenamer.exe• Rename Project tool −Requires a PDS extension dll to be registered

• regsvr32 ProjectRenamer.dll−Required modification of the registry

• \HKEY_LOCAL_MACHINE\Software\Microsoft\Office\11.0\MS Project\WebClient Server\ProjectServer\PDSExtensionExN

− http://go.microsoft.com/fwlink/?LinkId=21541

Tools: ProjRenamer.exe