What's wrong with this? It is not throwing the message out! (VS2008)
This works for me. did you setup the ASP.NET Membership APi on your web.config?
If you are using ASP.NET Membership API and the <roleManager enabled="true" /> is not in your web.config, this one won't throw the exception.