December 2005 - Posts

Regarding Sample Code
13 December 05 10:44 AM | despos | 3 comment(s)

For "obvious" time constraints, the source code of Programming ASP.NET 2.0--Core Reference couldn't be tested under RTM. On the other hand, the book shipped Nov 2th at the same as the RTM, but a book normally takes 6 weeks from final PDF review to printers. Sure, online source code is a slightly different story, but ...

However, as a matter of fact, if you download the source code of the book and run under RTM it fails with tons of errors and warnings. As you should know, the more messages you get from VS, the less severe the problem is. There are basically two things to fix:

1) Implement ICallbackEventHandler differently to take into account the new member GetCallbackResult

You just add a private string variable and store there the value that now is being returned by RaiseCallbackEvent. Next, you return that string from GetCallbackResult.

2) In the web.config, the <protectedData> section has been renamed (and reworked, but that's not an issue for the source code). Just remove it from web.config

Due to a bug in VS 2005, you should also remove the xmlns attribute from <configuration>.

I do have updated code that I'll post today or tomorrow but still don't know where :) I'll post soon about it. In a matter of days (?) updated code should be anyway online through the MS Press Web site.

Sorry about that ...

More Posts