Book Image

Enhancing Microsoft Content Management Server with ASP.NET 2.0

Book Image

Enhancing Microsoft Content Management Server with ASP.NET 2.0

Overview of this book

The release of Microsoft Content Management Server (MCMS) Service Pack 2 opens up the world of ASP.NET 2.0 to MCMS developers. Written by the masters of MCMS, this book shows you how to use the new features of ASP.NET 2.0 that everyone is talking about in your MCMS development. You will first learn how to install and configure MCMS SP2. There are two approaches to setting up a development environment for SP2: an upgrade from a previous SP1a installation or starting from scratch and building a fresh installation including SP2. Of course, both approaches are covered. You will become familiar with the MCMS Service Pack 2 development environment, and create custom Visual Studio 2005 templates to overcome some of the issues which are present with the templates shipped with MCMS SP2. After that, its time to look at some of the most exciting features of ASP.NET 2.0, and how you can make use of them in MCMS: master pages, site navigation, themes, and the membership provider model. One of the coolest features introduced with ASP.NET 2.0 is master pages, which allow developers to enforce common layout and behaviour across pages within an application. You will learn about the benefits of using master pages and see a step-by-step guide for implementing them in your MCMS applications, where they become master templates! ASP.NET 2.0 introduces a whole new way of implementing site navigation, driven by site maps. By programmatically adding channels and postings to a site map you will see how to smoothly integrate these controls to any MCMS site. To customize the look of your site, we will see how a common look and feel can be applied efficiently to a MCMS site by using ASP.NET 2.0 themes. An essential customization required for themes to work correctly in an MCMS site is a must-read feature of this chapter. MCMS has its own role based authorization and user management system which cannot be extended. However, the new ASP.NET 2.0 Membership Provider Model and the shipped controls can be used within MCMS applications to improve the implementation of Forms Authentication and provide a more elegant solution for authenticating against an external store. A collection of tips and tricks round off the book, including using the Provider Model design pattern to ease migration to Office SharePoint Portal Server
Table of Contents (12 chapters)
Enhancing Microsoft Content Management Server with ASP.NET 2.0
Credits
About the Authors
About the Reviewers
Preface

Upgrading to Microsoft Content Management Server 2002 Service Pack 2


This section details the steps required to upgrade an existing installation of MCMS SP1a, which includes the Developer Tools for Visual Studio.NET 2003 component. The outline process for an upgrade is as follows:

  1. 1. Install Visual Studio 2005.

  2. 2. Install MCMS 2002 Service Pack 2.

  3. 3. Configure the development environment.

  4. 4. (Optional) Prepare the MCMS database for SQL Server 2005.

  5. 5. (Optional) Upgrade SQL Server.

  6. 6. (Optional) Install SQL Server 2005 Service Pack 1.

We will perform all steps while logged on as a local machine administrator.

Installing Visual Studio 2005

Visual Studio 2005 can be installed side by side with Visual Studio.NET 2003. Once we have completed the upgrade, we can remove Visual Studio.NET 2003 if we wish to only develop MCMS applications using SP2 and ASP.NET 2.0.

  1. 1. Insert the Visual Studio 2005 DVD, and on the splash screen, click Install Visual Studio 2005.

  2. 2. On the Welcome to the Microsoft Visual Studio 2005 installation wizard page, click Next.

  3. 3. On the Start Page, select the I accept the terms of the License Agreement checkbox, enter your Product Key and Name, and click Next.

  4. 4. On the Options Page, select the Custom radio button, enter your desired Product install path, and click Next.

  5. 5. On the second Options page, select the Visual C# and Visual Web Developer checkboxes within the Language Tools section, and the Tools checkbox within the .NET Framework SDK section. Click Install.

    Note

    Feel free to install any additional features you may wish to use. The above selections are all that's required to follow the examples in this book.

  6. 6. Wait (or take a coffee break) while Visual Studio 2005 is installed. When the Finish Page appears, click Finish.

  7. 7. From the Visual Studio 2005 Setup dialog, you can choose to install the Product Documentation (MSDN Library) if desired.

  8. 8. From the Visual Studio 2005 Setup dialog, click Check for Visual Studio Service Releases to install any updates that may be available.

  9. 9. Click Exit.

Installing MCMS 2002 Service Pack 2

Next, we will install MCMS Service Pack 2.

  1. 1. From the Start Menu, click Run…

  2. 2. In the Open textbox, enter IISRESET /STOP and click OK. Wait while the IIS Services are stopped.

  3. 3. Double-click the SP2 installation package.

  4. 4. On the Welcome to Microsoft Content Management Server 2002 SP2 Installation Wizard page, click Next.

  5. 5. Select the I accept the terms of this license agreement radio button, and click Next.

  6. 6. On the ready to begin the installation page, click Next.

    • Wait while Service Pack 2 is installed.

  7. 7. During installation you may be prompted for the MCMS 2002 SP1a CD-ROM.

  8. 8. Once The Installation Wizard has completed page, click Finish.

  9. 9. If prompted, click Yes on the dialog to restart your computer, which will complete the installation.

  10. 10. Otherwise, from the Start Menu, click Run…

  11. 11. In the Open textbox, enter IISRESET /START and click OK to restart the IIS services.

Note

Stopping IIS prior to the installation of SP2 avoids potential problems with replacing locked files during the installation, and can prevent the requirement to reboot.