Writing a custom FAM/SAM that inherits from the base Microsoft IMPL's. Every thing works great
until FAM attempts to read security token. Specifically, I get an AccessViolationException when attempting to read the xml token from message:
System.AccessViolationException occurred_HResult=-2147467261
_message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
HResult=-2147467261
IsTransient=false
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source=System.IdentityModel.Services
StackTrace:
at System.IdentityModel.Services.WSFederationAuthenticationModule.GetSecurityToken(SignInResponseMessage message)
InnerException:
What might cause an AccessViolation when attempting to read the Xml token?
.NET 4.51
Win2012
IIS 7.5