Essential Silverlight 2 Up-to-Date

Errata for Essential Silverlight 2 Up-to-Date

Submit your own errata for this product.


The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question Note Update



Version Location Description Submitted By Date Submitted Date Corrected
Printed
Page 2.1.2 - 2.1.5
Page 2.1.2, Example 2.1-1

I created a WEBSITE for the Text1 example as the book recommends. I typed example 2.1-1 into the .xaml file; <UserControl x:Class="Text1.Page" xmlns="http://schemas.microsoft.com/cilent/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="400" Height="300"> <Grid x:Name="LayoutRoot" Background="White"> <Canvas> <TextBlock>Silverlight</TextBlock> </Canvas> </Grid> </UserControl> Running the website produces the following error; ParserError- AG_E_PARSER_NAMESPACE_NOT_SUPPORTED File: Scene.xaml, line 4 character 29 I generated the same .xaml in Expression Belend 2.5 beta and it used the following namespace; xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" instead of the following namespace used in the book; xmlns="http://schemas.microsoft.com/cilent/2007". This produces the following error; ParserError- XamlReader.Load() does not support x:Class. File: Scene.xaml, line 4 character 29 At this point I downloaded the source code for the book and found that it implemented the code for this example as a project rather than a website. Emulating the downloaded code, I recreated the example as a project and everything worked just fine. I'm a profesional programmer but a Silverlight and WPF newbie so I don't really have much in the way of intuition as to what is happening here save to say the technology is probably changing quickly. I would recommend, however, that the source code download for the book be consistent with the examples in the book. Bill

Note from the Author or Editor:
Correct; Microsoft changed the namespace for beta 2, unfortunately. Recent builds of the plugins complain here. Please refer to the first "Hello World" example right after the installation for the correct namespaces.

Anonymous  Jun 21, 2008