We have had a good response to the free 8 module Silverlight Training Kit we released on Channel 9 back at MIX and that Scott Guthrie announced. We have since updated at the Silverlight 4 Launch with some new content and fixes. We’ve also found 2 issues since then that you might run across. I’ve corrected these in the source and will update them on the Channel 9 site in our next round (which I hope to include VB version of the courseware, too!)
In the meantime, here are the fixes to the 2 problems you likely will encounter if you have tried the courseware. These are easy fixes and should make your life much easier :)
When creating the feature to allow users to unregister for an event, the courseware left out a key line of code. You should remove the following line of code:
And replace it with this line of code:
Your UnregisterCurrentUserForEvent method should look like this when you are done:
This step only needs to be done if you notice that when you try to register a user some of the TextBox controls are disabled in the RIA Services login form. If you are not seeing this behavior, you can skip this step. The problem with the username being disabled in the registration form is due to a change in how RIA Services worked between when we wrote the code and the RTW. If you write it from scratch you should not see this problem. However, if you do encounter this you can fix the problem in your code by adding the [Editable(true)] attribute to the Email and UserName properties in the RegistrationData.cs model class in the web application (not the Silverlight app). Then rebuild the solution so this change gets sent to the Silverlight client too.
We are sorry for any inconvenience and are happy to see the training kit being used by so many of you!