SAML SSO - IDP to SP - NullReference Exeption

Hi all,

We are trying to implement ComponentSpace SAML 2.0 based SSO using ADFS. And its IDP to SP.

Receiving the below error while calling the below code
samlAssertion = new SAMLAssertion(samlAssertionXML);

The SAML response seems to be good.

NullReferenceException: ObjectReference Not set to an instance of an object

attached file got more inner stack details

Have you confirmed that samlAssertionXML is not null?

The SAMLAssertion class is part of the SAML low-level API. Our recommendation is to use the SAML high-level API as this is much easier to use and requires much less code in your application. The SAMLServiceProvider.ReceiveSSO call receives and processes the SAML response from the IdP.

I suggest taking a look at the ExampleServiceProvider project under the Examples\SSO\WebForms folder to see how SAMLServiceProvider.ReceiveSSO is called. The Examples Guide and Developer Guide in the documentation folder provide more information.