Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Advanced Microsoft Content Management Server Development

You're reading from   Advanced Microsoft Content Management Server Development Working with the Publishing API, Placeholders, Search, Web Services, RSS, and Sharepoint Integration

Arrow left icon
Product type Paperback
Published in Nov 2005
Publisher Packt
ISBN-13 9781904811534
Length 544 pages
Edition 1st Edition
Concepts
Arrow right icon
Toc

Table of Contents (21) Chapters Close

Advanced Microsoft Content Management Server Development
Credits
About the Authors
About the Reviewers
1. Building CMS Explorer FREE CHAPTER 2. Managing Channels and Postings with the PAPI 3. Managing Templates, Template Galleries, and Resources 4. Preparing Postings for Search Indexing 5. Searching MCMS with SharePoint 6. Publishing Content Between MCMS and SharePoint 7. Building SharePoint Web Parts 8. Useful Placeholder Controls 9. Validating Placeholder Controls 10. Staging Static Pages 11. InfoPath with MCMS Web Services 12. MCMS and RSS 13. Essential How-Tos, Tips, and Tricks 1. Setting up MCMS and SPS on the Same Virtual Server 2. MCMS Connector for SharePoint Technologies 3. Installing the Tropical Green Website Index

Debugging the Web Part


As our Web Part is now running via WSS/SPS, we cannot debug the Web Part directly by using the Visual Studio .NET Start Debugging option.

Note

By default WSS/SPS has debugging turned off. To turn on debugging, edit the Web.config for the IIS Virtual Server and set the debug attribute to true.

To debug our Web Part from the SPS/WSS server using Visual Studio .NET, we must add the Web Part to a Web Part Page and perform the following actions:

  1. 1. Open the ExtensibleMCMSPageListingWebPart project in Visual Studio .NET.

  2. 2. Set a breakpoint on the RenderWebPart() method in NavigationWebPart.cs.

  3. 3. From the Tools menu, select Debug Processes (or hit Alt + Ctrl + P).

  4. 4. Select the w3wp.exe process and click Attach.

  5. 5. Verify that the Common Language Runtime is checked and click OK:

  6. 6. Click Close on the Processes dialog and refresh the Web Part Page.

  7. 7. Your breakpoint should now be selected and you should be able to step through the code.

Note

Your Web Part must be compiled in Debug...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image