Partner identity provider not configured exception

I get a ComponentSpace.SAML2.Exceptions.SAMLException: The partner identity provider idpname is not configured exception when I call SAMLServiceProvider.ReceiveSSO.

However, I definitely have it configured in the saml.config:

<PartnerIdentityProvider Name=“idpname” … />

Here’s the stack trace:

[SAMLException: The partner identity provider idpname is not configured.] ComponentSpace.SAML2.Configuration.SAMLConfiguration.GetPartnerIdentityProvider(String name) in c:\Sandboxes\ComponentSpace\SAMLv20\Library\Configuration\SAMLConfiguration.cs:260 ComponentSpace.SAML2.SAMLServiceProvider.ReceiveSSO(HttpRequest httpRequest, Boolean& isInResponseTo, String& partnerIdP, String& userName, SAMLAttribute[]& attributes, String& relayState) in c:\Sandboxes\ComponentSpace\SAMLv20\Library\SAMLServiceProvider.cs:661 ComponentSpace.SAML2.SAMLServiceProvider.ReceiveSSO(HttpRequest httpRequest, Boolean& isInResponseTo, String& partnerIdP, String& userName, IDictionary& attributes, String& relayState) in c:\Sandboxes\ComponentSpace\SAMLv20\Library\SAMLServiceProvider.cs:636 AssertionConsumerService.ProcessRequest(HttpContext context) in d:\Inetpub\WWWroot\disasternew\SAML\AssertionConsumerService.ashx:24 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Thanks.<br/>

Please check that you call SAMLConfiguration.Load() to load the configuration.
A future release will make this call automatically but for the time being you need to explicitly make this call.

Yes I have made that call. To make sure, I just updated the ACS to call ComponentSpace.SAML2.Configuration.SAMLConfiguration.Load(); again, but it still throws the same exception.

Tuan

Please enable SAML trace and either attach the generated log file to this post or send it to support@componentspace.com as an email attachment. Thanks.

http://www.componentspace.com/Forums/17/Enabing-SAML-Trace

I just sent the log file to that email. Thanks.

Thank you. I replied to your email rather than posting details here in case some of the configuration information is sensitive.
You need to modify your SAML configuration as per my email.

I am also getting same error:
ComponentSpace.SAML2.Exceptions.SAMLConfigurationException: The partner identity provider http://localhost/ExampleIdentityProvider is not configured.
I already made changes in Saml and web config file.
Do we need to made chnges in some other file?

In my case, the PartnerIdp value I had in the Web.config didn’t match what I had in the saml.config file, so have you double-checked your configs?

I agree. Please double check that the partner IdP name you are supplying matches a entry in your saml.config.
In our ExampleServiceProvider we use the partnerIdP app setting to specify the partner IdP. This name must match with a name in saml.config.