A
adupuis
Hello, I'm currently working on a web application that normally works
fine. Times to times I have the following error:
'
Unable to cast object of type
'System.Security.Principal.GenericIdentity' to type
'System.Web.Security.FormsIdentity'.
'
Have you an idea where it could come from ?
I think it's linked to the line:
Private formId As FormsIdentity = User.Identity
My web.config has the line:
<authentication mode="Forms"/>
Regards
fine. Times to times I have the following error:
'
Unable to cast object of type
'System.Security.Principal.GenericIdentity' to type
'System.Web.Security.FormsIdentity'.
'
Have you an idea where it could come from ?
I think it's linked to the line:
Private formId As FormsIdentity = User.Identity
My web.config has the line:
<authentication mode="Forms"/>
Regards