Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional SharePoint 2010 Development
This is the forum to discuss the Wrox book Professional SharePoint 2010 Development by Tom Rizzo, Reza Alirezaei, Jeff Fried, Paul Swider, Scot Hillier, Kenneth Schafer; ISBN: 9780470529423
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional SharePoint 2010 Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 15th, 2010, 04:48 AM
Registered User
 
Join Date: Jun 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Chap 10 : Error in sample Code

Hello,

First of all, I have appreciated a lot the content of this book. It has gave me a good overview on MOSS 2010 possibilities (with sometime a lot of details).

But , I found a very small bug in the sample code in the book (chap 10).
In fact, in the example for the creation of a customer Document ID provide, you proposed a sample to deploy the feature in Sharepoint with a EventReceiver.

In the method, "FeatureActivated" :
There is a mistake in the second parameter of function used to register the new provider :

it's not : Documentid.SetProvider(sitecollection, typeof(CustomerDocumentIdProvider));

it's : Documentid.SetProvider(sitecollection, new CustomerDocumentIdProvider());

Regards,
Haziz

Last edited by Haziz; June 15th, 2010 at 06:03 AM.. Reason: more details in my description




Similar Threads
Thread Thread Starter Forum Replies Last Post
How to run the chapter 10 (acegi) sample code? dleal BOOK: Professional Java Development with the Spring Framework 0 June 28th, 2006 10:50 AM
Chapter 10 Sample Code jramkawsky BOOK: Professional Java Development with the Spring Framework 0 December 3rd, 2005 08:44 AM
ListView Sample code - error? Mithrandir VB.NET 2002/2003 Basics 0 August 10th, 2003 12:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.