Technical Errata for "ASP.NET Distributed data Applications"

(2003 Wrox Press Limited, UK and US -- ISBN: 1-861004-92-3 )

Unzipping the Sample Files

Page 61, paragraph 3 says that the sample pages will be extracted into a folder called 4923-basic (or 4923-csharp, if you choose the C# samples). Correction: Neither C# nor the VB .zip archives extracts to a single directory. Each archive is comprised of several different directories and files. A new directory should be created on the file system before extracting the files from either of the code archives.

Error in the C# Sample Files Download

In the C# version of the samples, there is an incorrect file in the folder for the Web Services version of the "Customer Orders" application. The error appears when you click the "view updated diffgram" link when updating orders. To correct this error, copy the file named view-diffgram.aspx from the folder \update-orders\ie5\ into the folder \update-orders\webservices\, and replacing the existing copy of the file with the same name.

Chapter 2, Page 64

The declaration of the OleDbDataReader is not actually required in the second code section.

The code just returns the result of the ExecuteReader method.

Running the Sample Files on ASP.NET 1.1

If you install the sample pages on ASP.NET 1.1 (i.e. Windows 2003 Server), the new request validation feature will prevent the "Customer Orders" example pages that use Web Services to transmit data back to the server from working properly by default. To solve this, you can turn off automatic input validation for the pages or for the complete application or site. For simplicity while testing the samples, add the following to the <system.web> section of the web.config file in the root folder of the examples:

 

<pages validateRequest="false" />

 

Also, due to an internal change in the Web Services classes in version 1.1, one of the C# examples no longer works correctly. If you run the C# sample for the "Customer Orders" application, and choose the version that uses Web Services, you will get an error when you try to update an existing order. It is caused by the way that the diffgram is handled during a form post. There is no workaround at the moment for this. The VB version of this sample page is not affected by the same problem, and the C# sample works perfectly under version 1.0 of ASP.NET.