I tried by copying the code that comes with book. No use? What could be problem. Also System.Web.Security doesnt lists MembershipCreateUserException and MembershipCreateStatus inside intellisense: screen shot:
http://img819.imageshack.us/img819/2320/87002166.png
This is for programmatically adding the user.