ComponentSpace.SAML2.Exceptions.SAMLSchemaValidationException: 'One or more configuration XML schema validation errors occurred.'

We are using your service as IDP in our earlier project .Its working great . Now we have SAML service provider setup in another project and trying to send the signed SAML request to IDP with with intiateSSO method in asp.net 4.0 environment with ComponentSpace.SAML2.dll (file version 2.8.6.0). I am getting the error.

Please advice.

SAMLServiceProvider.InitiateSSO(Response, returnUrl, partnerIdP);

saml configuration

<?xml version="1.0"?>

<ServiceProvider
Name=“<a href=“https://www.bastest.com””>https://www.bastest.com"
Description=“Example Service Provider”
AssertionConsumerServiceUrl=“~/SAML/AssertionConsumerService.aspx”>







<PartnerIdentityProvider
Name=“<a href=“https://LocalTestSSO-Application””>https://LocalTestSSO-Application"
Description=“Example Identity Provider”
SingleSignOnServiceUrl=“SAML/SSOService.aspx”
SingleLogoutServiceUrl=“”>https://localhost:44390/SAML/SLOService.aspx">







Version 2.8.6 is six years old. In version 3.5.0 we made a breaking change to SAML configuration syntax to make the specification of certificates more flexible.

The SAML configuration you’ve specified follows the new syntax. You need to use the old syntax associated with v2.8.6 or, better yet, upgrade to the latest version.

You’ll find examples of the old syntax with the example projects that ship with v2.8.6. Also, the syntax is documented in the Developer Guide.

Below is part of the saml.config for the v2.8.6 ExampleServiceProvider project.



<ServiceProvider Name=“<a href=“http://localhost/ExampleServiceProvider””>http://localhost/ExampleServiceProvider"
Description=“Example Service Provider”
AssertionConsumerServiceUrl=“~/SAML/AssertionConsumerService.aspx”
LocalCertificateFile=“Certificates\sp.pfx”
LocalCertificatePassword=“password”/>



<PartnerIdentityProvider Name=“<a href=“http://localhost/ExampleIdentityProvider””>http://localhost/ExampleIdentityProvider"
Description=“Example Identity Provider”
SignAuthnRequest=“true”
SingleSignOnServiceUrl=“<a href=“http://localhost/ExampleIdentityProvider/SAML/SSOService.aspx””>http://localhost/ExampleIdentityProvider/SAML/SSOService.aspx"
SingleLogoutServiceUrl=“<a href=“http://localhost/ExampleIdentityProvider/SAML/SLOService.aspx””>http://localhost/ExampleIdentityProvider/SAML/SLOService.aspx"
PartnerCertificateFile=“Certificates\idp.cer”/>





[quote]
ComponentSpace - 10/2/2023
Version 2.8.6 is six years old. In version 3.5.0 we made a breaking change to SAML configuration syntax to make the specification of certificates more flexible.

The SAML configuration you've specified follows the new syntax. You need to use the old syntax associated with v2.8.6 or, better yet, upgrade to the latest version.

You'll find examples of the old syntax with the example projects that ship with v2.8.6. Also, the syntax is documented in the Developer Guide.

Below is part of the saml.config for the v2.8.6 ExampleServiceProvider project.



http://localhost/ExampleServiceProvider"
Description="Example Service Provider"
AssertionConsumerServiceUrl="~/SAML/AssertionConsumerService.aspx"
LocalCertificateFile="Certificates\sp.pfx"
LocalCertificatePassword="password"/>



http://localhost/ExampleIdentityProvider"
Description="Example Identity Provider"
SignAuthnRequest="true"
SingleSignOnServiceUrl="http://localhost/ExampleIdentityProvider/SAML/SSOService.aspx"
SingleLogoutServiceUrl="http://localhost/ExampleIdentityProvider/SAML/SLOService.aspx"
PartnerCertificateFile="Certificates\idp.cer"/>





[/quote]

Thank you very much for your quick reply. I will check the syntax. I am interested to use the new version . Could you able to send the instruction for how to do I get the new version 3.5.0 .That will be really great.

You’re welcome. I’ve replied to you via email.