For those of you working through the exercises, here are a few small things that have been sent to me by the community:
If you get the following error when working through the Excel sample:
Also, I tried to note this throughout the book, but be sure to add additional references. For example, System.Xml.Linq is required for one of the samples in Chapter 9—if you get a compile error this may be the reason why.
On page 374-375, you’re working with services and you consume a service within a BDC Metadata model template. I left out the instructions on adding the service reference to the BDC project. Just remember right before step # 17 to right-click the project, select Add Service Reference, click Advanced, Add Web Reference, add the ASMX service reference that you created in the earlier part of the exercise. Note that when you name the service, in the code it is named SPSalesWebService (as can be seen in the SPSalesWebService.Service1 myWSProxy = new Service1(); line of code).
On page 424, it looks like there is a small editing error. The following line of code
for (int I = 1l I < returnData.Length; i++)
for (int i = 1; i < returnData.Length; i++)
I’ve added the code samples here to make sure you have the right project code: http://cid-40a717fc7fcd7e40.office.live.com/browse.aspx/Beginning%5E_SP%5E_Supplements/Chapter%5E_11.
Special thanks to Lee, Dan and Boris for sending these along to me. I’ll continue to review anything you send, and if appropriate will post to this blog!