I believe you get this error:
Unable to cast object of type 'System.Security.Principal.GenericIdentity' to type 'System.Web.ClientServices.ClientFormsIdentity'
This will occur as long as you are not authenticated. To get the
FormsIdentity
you need to have been authenticated.
Refer:
http://forums.asp.net/t/1114649.aspx/1[
^]