An "Unable to cast object of type 'System.Security.Principal.GenericIdentity' to type 'System.Security.Principal.WindowsIdentity'" Error Occurs When Logging In To Web Access.

March 2, 2009 | KB: 1012161
Web Access 8

Summary

When trying to log into Web Access through Windows authentication, you may receive the following error message:

    Unable to cast object of type 'System.Security.Principal.GenericIdentity' to type 'System.Security.Principal.WindowsIdentity'

Cause

This error can occur in IIS 7 if both the Forms Authentication option and the Windows Authentication option are enabled for Web Access.

Resolution

If you are using Windows authentication to log in to Laserfiche, please make sure only ASP.NET Impersonation and Windows Authentication are enabled in the IIS 7 authentication options for Web Access.