Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SharePoint > SharePoint 2010 > BOOK: Professional SharePoint 2010 Development
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 07:44 AM
ListView Sample code - error? Mithrandir VB.NET 2002/2003 Basics 0 August 10th, 2003 12:33 PM



All times are GMT -4. The time now is 03:36 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.